:root {
  color-scheme: light;
  --slate: #0f172a;
  --slate-raised: #18263e;
  --emerald: #10b981;
  --green: #047857;
  --mint: #f0fdf4;
  --border: #dbe5df;
  --muted: #425369;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--slate);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #08765d; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.visually-hidden, .hp, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 3; padding: 10px; background: white; }
.topbar { background: var(--slate); color: white; position: sticky; top: 0; z-index: 2; }
.nav { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; padding: 4px 8px; background: #f6fcf8; border-radius: 6px; }
.brand img { width: auto; height: 37px; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 34px); align-items: center; margin-left: auto; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; color: white; text-decoration: none; font-size: .92rem; font-weight: 700; }
.nav nav a:hover { color: var(--emerald); }
.topbar :focus-visible, .tools :focus-visible, .site-footer :focus-visible { outline-color: #6ee7b7; }
.tools .tool :focus-visible { outline-color: var(--green); }
.icon-button { border: 0; background: none; padding: 12px; }
.icon-button img, .social img { width: 20px; filter: invert(1); }
.hero {
  background-color: #e5f4e9;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  grid-template-areas:
    "copy photo"
    "copy quiz";
  column-gap: clamp(28px, 6vw, 82px);
  row-gap: 20px;
  align-items: start;
  padding-block: 62px;
}
.hero-copy { grid-area: copy; max-width: 610px; }
.hero-photo { grid-area: photo; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
h1, h2, h3, p { margin: 0; }
h1, .section-head h2 { line-height: 1.1; text-transform: uppercase; font-weight: 800; letter-spacing: -.012em; word-spacing: .1em; }
h1 { font-size: clamp(2.2rem, 3.7vw, 3.55rem); }
h1 span { display: block; }
.hero-copy > p { max-width: 460px; margin-top: 18px; font-size: clamp(1rem, 1.45vw, 1.2rem); color: #293b49; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pills span { background: #ecfdf5; border: 1px solid #bde5cd; color: #07513c; padding: 4px 11px; border-radius: 99px; font-size: .78rem; font-weight: 800; }
.wizard { grid-area: quiz; width: 100%; background: white; padding: clamp(18px, 2.7vw, 32px); border-radius: 15px; box-shadow: 0 20px 25px -5px #0f172a29; }
.eyebrow { color: var(--green); text-transform: uppercase; font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.wizard h2 { font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.2; margin: 5px 0 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
#match-options { display: grid; gap: 8px; }
#match-options label { display: flex; align-items: center; gap: 9px; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 7px; padding: 8px 11px; font-size: .88rem; font-weight: 700; cursor: pointer; }
#match-options label:has(:checked) { border-color: var(--green); background: #ecfdf5; }
input[type=radio], input[type=range] { accent-color: var(--green); }
#match-options input { margin: 0; flex-shrink: 0; }
.wizard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block: 16px 12px; }
.wizard-actions button, .secondary, #btn { min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 7px 12px; background: var(--emerald); color: var(--slate); font-weight: 800; }
.wizard-actions .secondary, .secondary { background: #f1f5f9; border-color: #cbd5e1; }
.privacy-note { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.privacy-note img { width: 14px; }
#match-result { padding: 14px; background: #ecfdf5; border-radius: 8px; }
#match-result p { margin-block: 6px; }
.section { padding-block: clamp(48px, 6vw, 82px); }
.section-head { text-align: center; margin: 0 auto 29px; max-width: 760px; }
.section-head h2 { font-size: clamp(1.7rem, 3.3vw, 2.75rem); margin: 7px 0; }
.section-head > p:last-child { color: var(--muted); }
.powertrains {
  background: url('/assets/images/plug.svg') -26px 92px / 112px no-repeat;
}
@media (max-width: 1180px) { .powertrains { background-image: none; } }
.matrix { max-width: 950px; margin-inline: auto; }
.matrix table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: center; font-size: .94rem; }
.matrix th, .matrix td { padding: 13px 10px; overflow-wrap: anywhere; }
.matrix thead th { background: #a7dfb7; }
.matrix thead th:nth-child(2) { border-radius: 10px 0 0; }
.matrix thead th:last-child { border-radius: 0 10px 0 0; }
.matrix thead img { width: 25px; margin: 0 auto 4px; }
.matrix small { display: block; font-weight: 600; }
.matrix tbody th { background: var(--slate); color: white; text-align: left; border-bottom: 1px solid #3d4b62; }
.matrix tbody tr:first-child th { border-radius: 9px 0 0; }
.matrix tbody tr:last-child th { border-radius: 0 0 0 9px; }
.matrix tbody td { border: solid var(--border); border-width: 0 1px 1px 0; }
.matrix tbody tr:nth-child(even) td { background: #f8fbf9; }
.charging { background: #e7f5e9; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; max-width: 950px; margin-inline: auto; text-align: center; }
.levels article { border-radius: 12px; overflow: hidden; background: #c0e8c7; box-shadow: 0 8px 18px #0f172a15; }
.levels article:nth-child(2) { background: #a8dbb6; }
.levels article:nth-child(3) { background: #8fcda2; }
.levels h3 { background: #146b4b; color: white; padding: 10px; font-size: .95rem; text-transform: uppercase; }
.levels article > div { padding: 21px 8px; font-weight: 700; }
.levels img { width: 54px; height: 54px; margin: 0 auto 9px; }
.levels footer { background: var(--slate); color: white; padding: 12px 8px; }
.levels footer span { display: block; font-size: .84rem; }
.charging-note { max-width: 950px; margin: 18px auto 0; color: var(--muted); font-size: .84rem; }
.charging-note span { display: inline-block; margin: 0 3px 4px 0; background: white; color: var(--green); padding: 2px 8px; border-radius: 5px; font-weight: 800; }
.tools, .site-footer { background: var(--slate); color: white; }
.tools .section-head > p:last-child { color: #d5e2ec; }
.tools .section-head .eyebrow { color: #6ee7b7; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; max-width: 950px; margin-inline: auto; }
.tool { color: var(--slate); background: white; padding: clamp(18px, 3vw, 32px); border-radius: 12px; }
.incentive { background: #a7dfb7; }
.tool h3 { margin-bottom: 15px; line-height: 1.2; }
.country { display: flex; gap: 8px; margin-bottom: 14px; }
.country label { border: 1px solid #48886a; border-radius: 20px; padding: 7px 12px; cursor: pointer; }
.country label:has(:checked) { background: #fff; }
.tool select, #search-query, #email { width: 100%; min-height: 44px; padding: 8px 10px; color: var(--slate); border: 1px solid #789589; border-radius: 6px; background: white; }
.tool > label { display: block; font-weight: 800; font-size: .88rem; margin-block: 7px 3px; }
.tool input[type=range] { width: 100%; margin: 5px 0 9px; }
.tool output { float: right; color: var(--green); }
#incentive-result, .assumptions { font-size: .82rem; margin: 9px 0; }
.savings { margin-top: 6px; font-weight: 800; color: var(--green); }
.incentive a { color: #064e3b; font-weight: 800; }
.tool-links { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: .86rem; font-weight: 800; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.guide-grid a { display: flex; justify-content: space-between; gap: 10px; padding: 15px; border: 1px solid var(--border); border-radius: 8px; font-weight: 800; }
.about { background: var(--mint); }
.about-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.about h2 { line-height: 1.2; margin-bottom: 8px; }
.about a { display: inline-block; margin-top: 8px; }
#f .row { display: flex; gap: 8px; margin-block: 10px; }
#email { min-width: 0; }
#btn { white-space: nowrap; }
.consent { font-size: .8rem; }
#msg { color: #8b1820; }
.footer-row { display: flex; gap: 16px; align-items: center; min-height: 72px; font-size: .86rem; }
.site-footer a { color: white; }
.social { display: flex; gap: 12px; margin-left: auto; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; }
dialog { width: min(460px, calc(100% - 32px)); padding: 22px; border: 0; border-radius: 12px; color: var(--slate); }
dialog::backdrop { background: #0f172a90; }
dialog form { float: right; }
dialog h2 { margin: 5px 0 14px; }
dialog ul { padding-left: 21px; }
dialog li { margin: 7px 0; }
section[id], article[id] { scroll-margin-top: 100px; }
@media (max-width: 880px) {
  .hero-grid { column-gap: 24px; padding-block: 45px; }
  .hero-copy { background: #e5f4e9; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .nav { min-height: 0; gap: 6px 10px; flex-wrap: wrap; padding-block: 9px; }
  .brand img { height: 30px; }
  .nav nav { order: 3; width: 100%; justify-content: space-between; gap: 6px; }
  .nav nav a { padding: 0; }
  .search { margin-left: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "photo"
      "quiz";
    padding-block: 35px;
    gap: 24px;
  }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-photo img {
    height: 180px;
    aspect-ratio: 12 / 5;
  }
  .wizard { width: 100%; }
  .matrix table { font-size: .73rem; }
  .matrix th, .matrix td { padding: 8px 4px; }
  .levels { gap: 7px; font-size: .76rem; }
  .levels h3, .levels footer span { font-size: .73rem; }
  .levels img { width: 32px; height: 32px; }
  .levels article > div { padding: 12px 4px; }
  .tool-grid, .guide-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-row { flex-wrap: wrap; padding-block: 12px; gap: 8px 12px; }
}

.featured-comparison { background: var(--mint); }
.featured-comparison-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(20px, 5vw, 56px); }
.featured-comparison h2 { margin: 6px 0 10px; line-height: 1.15; }
.featured-comparison-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 18px; padding: .75rem 1rem; border-radius: 8px; background: #116148; color: white; font-weight: 800; text-decoration: none; }
.featured-comparison-link:hover { background: #084c37; }
.featured-comparison-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.featured-comparison-pair > div { display: grid; align-content: start; gap: 5px; padding: clamp(12px, 2.5vw, 24px); border: 1px solid var(--border); border-radius: 12px; background: white; }
.featured-comparison-pair span { color: var(--green); font-size: .8rem; font-weight: 800; }
.featured-comparison-pair small { color: var(--muted); }
@media (max-width: 650px) {
  .featured-comparison-layout { grid-template-columns: 1fr; }
}

/* Featured comparisons */
.featured-comparison-count { margin-top: 12px; color: #0b4f3a; font-weight: 700; }
.matchups { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.matchup { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid var(--border); border-radius: 12px; background: white; color: inherit; text-decoration: none; }
.matchup:hover { border-color: #8fcda2; box-shadow: 0 8px 18px #0f172a12; }
.matchup-images { display: flex; align-items: center; gap: 2px; }
.matchup-images img { width: clamp(74px, 11vw, 108px); height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.matchup-vs { color: var(--green); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.matchup-text strong { display: block; line-height: 1.3; }
.matchup-text small { display: block; color: var(--muted); }
@media (max-width: 650px) {
  .matchup { grid-template-columns: 1fr; gap: 8px; }
  .matchup-images { justify-content: center; }
  .matchup-images img { width: min(40vw, 150px); }
}

/* Footer */
.footer-row { flex-wrap: wrap; }
.footer-row > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; padding-block: 40px 16px; border-bottom: 1px solid #ffffff2b; }
.footer-title { margin: 0 0 6px; color: #6ee7b7; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
.footer-cols p { margin: 0 0 6px; color: #cbd5e1; font-size: .86rem; line-height: 1.6; }
.footer-cols p a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
@media (max-width: 880px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .footer-cols { grid-template-columns: 1fr; padding-block: 28px 8px; } }

/* Comfortable tap targets for stand-alone links */
.week-signup-link, #incentive-link, .about-grid > div > p + a { display: inline-flex; align-items: center; min-height: 44px; }
.tool-links a { display: inline-flex; align-items: center; min-height: 44px; }
