:root {
  --ink: #16201b;
  --ink-soft: #46524c;
  --paper: #f7f4ee;
  --sand: #ece5d8;
  --forest: #1d3a2e;
  --volt: #2fbf71;
  --volt-dark: #1f8f53;
  --line: #d9d1c2;
  --radius: 14px;
  --wrap: 1180px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(64px, 9vw, 112px); }

.eyebrow {
  font: 700 .8rem/1 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--volt-dark); }
.note { color: var(--ink-soft); font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-block;
  font: 700 1rem/1 var(--head);
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--volt);
  background: var(--volt);
  color: #08140d;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #45d486; border-color: #45d486; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--volt); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-small { padding: .65rem 1.1rem; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: .4rem; }
.brand-main { font: 800 1.45rem/1 var(--head); letter-spacing: -.02em; }
.brand-main sup { font-size: .45em; font-weight: 700; }
.brand-sub { font: 700 .8rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 60%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,14,.78) 0%, rgba(10,18,14,.5) 45%, rgba(10,18,14,0) 75%),
    linear-gradient(180deg, rgba(10,18,14,.1) 50%, rgba(10,18,14,.6) 100%);
}
.hero-content { position: relative; padding-block: 96px clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; max-width: 15ch; margin-bottom: 1.2rem; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .eyebrow { display: inline-block; padding: .5rem .8rem; border-radius: 999px; background: rgba(10,18,14,.6); color: #fff; letter-spacing: .1em; }
.hero h1 span { color: var(--volt); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Stats */
.stats { background: var(--forest); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1rem; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 800 clamp(2rem, 4vw, 2.9rem)/1 var(--head); color: var(--volt); }
.stat-text { display: flex; align-items: center; justify-content: center; }
.stat-text strong { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; }
.stat span { display: block; margin-top: .5rem; font-size: .9rem; color: rgba(255,255,255,.8); }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo.tall img { aspect-ratio: 3 / 4; max-height: 640px; }
.photo figcaption { padding: .7rem 1rem; font-size: .88rem; color: var(--ink-soft); background: #fff; }

/* How */
.how { background: #fff; }
.how .intro { max-width: 70ch; font-size: 1.1rem; color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 3rem; }
.feature p { color: var(--ink-soft); }
.feature .photo { border: 1px solid var(--line); }

/* Compare */
.compare { background: var(--forest); color: #fff; }
.compare h2 { max-width: 26ch; }
.table-scroll { overflow-x: auto; margin-top: 2rem; border-radius: var(--radius); }
table { width: 100%; min-width: 560px; border-collapse: collapse; background: rgba(255,255,255,.04); }
th, td { text-align: left; padding: 1rem 1.25rem; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.1); }
th { font: 700 1rem/1.3 var(--head); background: rgba(0,0,0,.2); }
th small { font-weight: 500; opacity: .7; }
td:first-child { color: rgba(255,255,255,.6); width: 42%; }
td:last-child { color: #fff; }
th:last-child { color: var(--volt); }
tbody tr:last-child td { border-bottom: 0; }

/* Proven */
.proven-split { margin-top: 2rem; align-items: start; }
.specs { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--ink-soft); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 3rem; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
[data-lightbox] img { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8,12,10,.96); }
.lightbox:focus { outline: none; }
.lightbox figure { margin: 0; padding: 56px 72px; display: grid; justify-items: center; gap: .9rem; max-width: 100%; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 8px; object-fit: contain; user-select: none; }
.lightbox figcaption { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; font-size: .95rem; color: rgba(255,255,255,.85); text-align: center; max-width: 70ch; }
.lb-count { color: rgba(255,255,255,.55); white-space: nowrap; }
.lb-btn {
  position: fixed; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn[hidden] { display: none; }
.lightbox img { cursor: zoom-in; }
.lightbox.zoomed { overflow: auto; }
.lightbox.zoomed[open] { align-items: flex-start; }
.lightbox.zoomed img { max-height: none; max-width: none; width: min(96vw, 1600px); cursor: zoom-out; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox figure { padding: 64px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* The car */
.car { background: var(--sand); }
.car h2 { max-width: none; text-wrap: balance; }
.photo.wide { margin-top: 2rem; }
.photo.wide img { aspect-ratio: 16 / 7; object-position: 50% 62%; }
.car-text { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 64px); margin-top: 2.5rem; align-items: start; }
.car-text p { margin: 0; }
.car-lede { font: 700 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--head); letter-spacing: -.01em; }
.car-text p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 3rem; }

/* FAQ */
.faq { background: var(--sand); }
.faq-list { margin-top: 2rem; display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.1rem 3.2rem 1.1rem 1.25rem; font: 700 1.08rem/1.35 var(--head);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font: 500 1.6rem/1 var(--body); color: var(--volt-dark); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--ink-soft); }
.faq-item a { color: var(--volt-dark); font-weight: 600; }

/* Contact */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-form { display: grid; gap: 1rem; background: var(--paper); padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; font-size: 1rem; width: 100%;
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--volt-dark); }
.form-status.err { color: #b3261e; }

/* Privacy + 404 pages */
.legal { min-height: 60vh; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .6rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; max-width: none; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal p { color: var(--ink-soft); }
.legal .btn { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 40px; font-size: .9rem; }
.site-footer .brand-main { color: #fff; font-size: 1.2rem; }
.site-footer .brand-sub { color: rgba(255,255,255,.6); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: end; }
.footer-inner p { margin: .5rem 0 0; }
.site-footer a { color: rgba(255,255,255,.85); }

/* Responsive */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .car-text { grid-template-columns: 1fr; gap: 1rem; }
  .features { grid-template-columns: 1fr; max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .photo.wide img { aspect-ratio: 4 / 3; }
  .photo.tall { max-width: 480px; width: 100%; justify-self: center; }
  .photo.tall img { max-height: none; }

  .nav-toggle {
    display: grid; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(16px, 4vw, 32px) 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
}
@media (max-width: 640px) {
  table, tbody, tr, td { display: block; min-width: 0; width: auto; }
  thead { display: none; }
  table { background: none; }
  tr { background: rgba(255,255,255,.05); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 12px; }
  td { padding: 0; border: 0; }
  td:first-child { width: auto; font-size: .9rem; margin-bottom: .4rem; }
  td:first-child::before { content: "Regular: "; font-weight: 600; }
  td:last-child::before { content: "eSherpa: "; font-weight: 700; color: var(--volt); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: .15rem; }
  .stat-text strong { font-size: 1.12rem; }
  .hero { min-height: 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,18,14,.35) 0%, rgba(10,18,14,.6) 45%, rgba(10,18,14,.85) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
