/* Ecolane EV — shared styles
   Light theme, mid-dark blue and white */

:root {
  --blue: #1e4d8c;        /* mid-dark blue */
  --blue-dark: #163a6b;
  --blue-pale: #eaf1f9;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --grey-label: #6b7280;
  --line: #d9e2ec;
  --white: #ffffff;
  --max-w: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.62rem;
  letter-spacing: -0.01em;
}

.brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.site-nav a {
  text-decoration: none;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav-btn a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-nav a.active { text-decoration: underline; text-underline-offset: 4px; }

.site-nav-btn a:hover { color: var(--white); }

.site-nav-btn a.active { color: var(--white); font-weight: 700; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid var(--blue);
  cursor: pointer;
}

.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
}

.btn-secondary:hover { background: var(--blue-pale); color: var(--blue); }

.site-nav .btn { padding: 9px 18px; }

.site-nav a.btn,
.site-nav a.btn:hover,
.site-nav a.btn:active,
.site-nav a.btn:visited {
  color: var(--white);
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }

section + section { border-top: 1px solid var(--line); }

section.closing-band { padding-bottom: 28px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 7px;
}

h1 { font-size: 2.3rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 18px; color: var(--blue); }
h2 { font-size: 1.7rem; line-height: 1.25; margin-bottom: 16px; color: var(--blue); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { margin-bottom: 14px; color: var(--ink); }

p:last-child { margin-bottom: 0; }

.cta-spaced { margin-top: 28px; }

.muted { color: var(--ink-soft); }

/* Two-column section with image */

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.split.reverse { grid-template-columns: 0.8fr 1.2fr; }

.split.split-form { grid-template-columns: 1fr 50%; }

.img-placeholder {
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 240px;
  min-width: 456px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.hero-image-col { align-self: start; margin-top: 28px; }

.col-top { align-self: start; }

.hero-image-col a.hero-download-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin: 24px 0 0;
}

/* Hero */

.hero { padding: 72px 0; }

.hero.hero-tight { padding-bottom: 36px; }

.hero .btn { margin-right: 12px; margin-bottom: 10px; }

.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 26px; }

/* Proof strip */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.proof-item {
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  font-size: 0.94rem;
}

.proof-item .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.864rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

/* Cede band */

.cede-band {
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  padding: 40px;
}

.cede-band .eyebrow { color: #bcd2ee; }

.cede-band h2 { color: var(--white); }

.cede-band p { color: #dbe7f6; }

.cede-band ul.features li { border-bottom-color: rgba(255, 255, 255, 0.2); }

.cede-band ul.features li::before { color: var(--white); }

.cede-band-tight { padding-bottom: 22px; }

.cede-band-tight ul.features { margin-bottom: 10px; }

/* Two-step schematic */

.schematic {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 26px 0;
}

.schematic .step {
  border: 2px solid var(--blue);
  border-radius: 10px;
  padding: 20px;
  background: var(--white);
  font-size: 0.95rem;
}

.schematic .step strong { color: var(--blue); display: block; margin-bottom: 6px; }

.schematic .arrow {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Lists */

ul.features { list-style: none; margin: 18px 0; }

ul.features li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

ul.features li:last-child { border-bottom: none; }

ul.features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Pricing */

.price-card {
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 32px;
  padding-top: 25px;
  padding-bottom: 16px;
}

.price-card p:last-of-type { margin-bottom: 4px; }

.price-card ul.features { margin: 0; }

.price-card ul.features li:first-child { padding-top: 0; }

.price-card ul.features li:last-child { padding-bottom: 10.5px; }

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-top: 8px;
}

.price small { font-size: 0.95rem; font-weight: 700; }

/* Worked-example ledger schematic (CRP sample) */

.ledger-box {
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 456px;
  padding: 20px;
}

.raised-col { margin-top: 8px; }

.portrait-box {
  width: 319px;
  min-width: 0;
  margin-left: auto;
}

.ledger-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.ledger-title .logo-mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
}

.ledger-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.lrow {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.lrow .vid { font-size: 0.72rem; color: var(--ink-soft); }

.lbar-track {
  background: var(--white);
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
}

.lbar { height: 100%; border-radius: 2px; }

.lbar.diesel { background: #b5651d; }
.lbar.petrol { background: #cf924a; }
.lbar.electric { background: #2f7e78; }

.lval {
  font-size: 0.74rem;
  color: var(--ink-soft);
  min-width: 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.ledger-brand {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.81rem;
  letter-spacing: -0.01em;
}

.ledger-brand .logo-mark {
  width: 19px;
  height: 19px;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1;
}

.ledger-legend i.diesel,
.ledger-legend i.petrol,
.ledger-legend i.electric {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}

.ledger-legend i.diesel { background: #b5651d; }
.ledger-legend i.petrol { background: #cf924a; }
.ledger-legend i.electric { background: #2f7e78; }

.ledger-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ledger-stats .n { font-weight: 800; color: var(--blue); font-size: 1.15rem; }

.ledger-stats .l {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* FAQs */

.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }

details.faq-item:first-of-type { padding-top: 10px; }

.faq-item h3 { color: var(--blue); margin-bottom: 0; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-arrow {
  flex: none;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--blue);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-arrow { transform: rotate(180deg); }

.faq-item[open] summary { margin-bottom: 10px; }

/* Forms */

.form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  background: var(--blue-pale);
  min-width: 456px;
}

.form-title { font-size: 1.3rem; margin-bottom: 4px; }

.form-field { margin-bottom: 15px; }

.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }

.form-field .helper { font-size: 0.8rem; color: var(--ink-soft); margin-top: 5px; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

/* Selectable option boxes */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }

.opt { position: relative; }

.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }

.opt span {
  display: block;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.opt input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.opt input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.privacy-line { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

.thanks-message {
  display: none;
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 28px;
  background: var(--white);
  max-width: 720px;
}

/* Phone strip */

.phone-strip {
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 24px;
  margin: 22px 0;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-dark);
  color: #dbe7f6;
  margin-top: 64px;
  padding: 48px 0 32px;
  font-size: 0.95rem;
}

.footer-tight { margin-top: 32px; }

.site-footer p { color: #dbe7f6; }

.site-footer .small-print {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 26px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #b7c9e2;
}

.site-footer .small-print p { color: #b7c9e2; margin-bottom: 0; }

.site-footer a { color: #b7c9e2; text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .split, .split.reverse, .split.split-form { grid-template-columns: 1fr; gap: 28px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .schematic { grid-template-columns: 1fr; }
  .schematic .arrow { text-align: center; }
  .img-placeholder, .ledger-box, .form-card { min-width: 0; }
  .raised-col { margin-top: 0; }
  h1 { font-size: 1.8rem; }
}

@media (max-width: 540px) {
  .proof-strip { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; }
}
