/* The homepage ("Your home, mapped"). Built on the design system in
   /assets/ds/styles.css: every colour, size, space and easing is a token or a
   color-mix() of tokens (no hex values here). Mobile first; the site's one
   breakpoint is 980px, with fine-tuning at 768px. The hero labels switch
   between "labels on the scene" and "numbered list" by the scene's own width
   (container query), not the viewport's. Every class is prefixed hp-. */

/* The hidden attribute always wins (the cookie bar and dialog rely on it). */
[hidden] { display: none !important; }

/* ── Shared band furniture ──────────────────────────────────────────────── */
.hp-band-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 64ch; }
.hp-band-head h2 { max-width: 22ch; }
.hp-band-lead { font-size: var(--text-lead); line-height: 1.55; color: var(--color-muted); max-width: 60ch; }
.night .hp-band-lead { color: var(--color-on-night-muted); }
.hp-band-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); max-width: none; }
.hp-band-head--art { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: var(--space-6); max-width: none; }
.hp-band-head--art > div { display: grid; gap: var(--space-3); max-width: 64ch; }
.hp-band-art { display: none; width: 132px; height: 132px; object-fit: contain; }
@media (min-width: 600px) {
  .hp-band-head--art { grid-template-columns: minmax(0, 1fr) auto; }
  .hp-band-art { display: block; }
}
@media (min-width: 981px) { .hp-band-art { width: 184px; height: 184px; margin-bottom: calc(var(--space-6) * -1); } }

.hp-mini-h { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; color: var(--color-text); margin-bottom: var(--space-3); }
.night .hp-mini-h { color: var(--color-surface); }

.hp-chiplinks { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.hp-chiplink {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--target); padding: 0 var(--space-4);
  border: 1px solid var(--color-divider-strong); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-text-2);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  transition: border-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
}
.hp-chiplink:hover { border-color: var(--color-accent-ink); color: var(--color-accent-ink); background: var(--color-accent-100); }
.hp-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-surface-2); font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hp-chiplink:hover .hp-count { background: var(--color-surface); color: var(--color-accent-ink); }

.link-arrow { min-height: var(--target); }
.hp-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--color-surface-2); font-size: var(--text-xs); font-weight: 700; color: var(--color-text-2); white-space: nowrap; }
.hp-tag--news { background: var(--color-rose-100); color: var(--color-rose-700); }

/* ── Hero: the house, mapped ────────────────────────────────────────────── */
/* The design system's AI buttons are 40px; the project floor is 44px. */
.hp-hero .ai-btn { min-height: var(--target); }
.hp-hero { padding-block: var(--space-8) var(--space-10); overflow: hidden; }
.hp-hero-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "more" "ai"; }
.hp-hero-ai { grid-area: ai; min-width: 0; }
.hp-hero-head { grid-area: head; display: grid; gap: var(--space-3); }
.hp-hero-head h1 { font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem); max-width: 14ch; }
.hp-hero-more { grid-area: more; display: grid; gap: var(--space-6); justify-items: start; }
.hp-answer { font-size: var(--text-lead); line-height: 1.6; color: var(--color-on-night); max-width: 58ch; }
.hp-answer strong { color: var(--color-surface); }
.hp-hero-more .btn-row { gap: var(--space-2) var(--space-6); }

.hp-stage { grid-area: stage; position: relative; container: stage / inline-size; }
/* The soft edges are baked into the image as transparency (build.mjs). No CSS
   mask here on purpose: Chromium drops masked elements at some phone sizes. */
.hp-scene { position: relative; aspect-ratio: 5 / 3; }
.hp-scene picture, .hp-scene img { display: block; width: 100%; height: 100%; }
/* Edge to edge on phones and tablets, where the hero is one column. */
@media (max-width: 980px) { .hp-scene { margin-inline: calc(var(--gutter) * -1); } }
.hp-scene img { object-fit: cover; }

/* Pins: numbered on the narrow layout, glowing points on the wide one. */
.hp-pin {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-accent-2); color: var(--color-night);
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-night-deep) 60%, transparent);
  transition: scale var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
}
.hp-leaders { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; overflow: visible; }
.hp-leader { stroke: color-mix(in oklch, var(--color-on-night) 50%, transparent); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; transition: stroke var(--dur-state) var(--ease-out); }

/* The routes: a list of six rows under the scene (narrow) ... */
.hp-routes { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
@container stage (min-width: 520px) { .hp-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp-route a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  min-height: 58px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-night-line); border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--color-night-2) 88%, transparent);
  color: var(--color-on-night); text-decoration: none;
  transition: border-color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
}
.hp-route a:hover { border-color: var(--color-glow); background: var(--color-night-raise); color: var(--color-on-night); }
.hp-route-art { position: relative; width: 40px; height: 40px; }
.hp-route-art img { width: 40px; height: 40px; object-fit: contain; }
.hp-route-n {
  position: absolute; top: -6px; left: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-accent-2); color: var(--color-night); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; line-height: 1;
}
.hp-route-text { display: grid; gap: 1px; min-width: 0; }
.hp-route-name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; color: var(--color-surface); }
.hp-route-fig { font-size: var(--text-xs); line-height: 1.35; color: var(--color-on-night-muted); }
.hp-route-go { width: 16px; height: 16px; color: var(--color-accent-2); }

/* ... and labels around the house once the scene is wide enough. */
@container stage (min-width: 600px) {
  .hp-scene { margin-inline: 0; }
  .hp-leaders { display: block; }
  .hp-pin { width: 12px; height: 12px; font-size: 0; color: transparent; box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-accent-2) 30%, transparent), 0 0 12px color-mix(in oklch, var(--color-glow) 55%, transparent); }
  .hp-routes { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
  .hp-route { position: absolute; left: var(--lx); top: var(--ly); pointer-events: auto; max-width: 32%; }
  .hp-route a {
    grid-template-columns: minmax(0, 1fr); min-height: var(--target); gap: 0; padding: 7px var(--space-4) 8px;
    border-radius: 12px; border-color: color-mix(in oklch, var(--color-on-night) 22%, transparent);
    background: color-mix(in oklch, var(--color-night-deep) 82%, transparent);
    box-shadow: 0 10px 24px -14px var(--color-night-deep);
  }
  .hp-route-art, .hp-route-go { display: none; }
  .hp-route-name { font-size: 0.9375rem; }
  .hp-route-fig { font-size: 0.8125rem; white-space: nowrap; }
}
@container stage (min-width: 600px) and (max-width: 720px) {
  .hp-route-fig { font-size: 0.75rem; }
  .hp-route a { padding: 6px var(--space-3) 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  @container stage (min-width: 600px) {
    .hp-pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--color-glow); opacity: 0; animation: hp-ping 3.2s var(--ease-out) infinite; }
  }
}
@keyframes hp-ping { 0% { scale: 0.6; opacity: 0.8; } 70%, 100% { scale: 2.4; opacity: 0; } }

@media (min-width: 981px) {
  .hp-hero { padding-block: var(--space-12) var(--space-16); }
  .hp-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; grid-template-areas: "head stage" "more stage" "more ai"; column-gap: var(--space-10); row-gap: var(--space-6); align-items: start; }
  .hp-stage { margin-right: calc(var(--space-6) * -1); }
  .hp-hero-ai { justify-self: center; }
}

/* ── Tonight ────────────────────────────────────────────────────────────── */
.hp-tonight-grid { display: grid; gap: var(--space-8); }
.hp-tonight-copy { display: grid; gap: var(--space-4); justify-items: start; align-content: start; }
.hp-tonight-best { display: grid; gap: var(--space-2); margin-block: var(--space-2); }
.hp-tonight-best .reading { color: var(--color-accent-2); }
.hp-tonight-best-l { color: var(--color-on-night-muted); max-width: 34ch; }
.hp-tonight-board { display: grid; gap: var(--space-3); min-width: 0; padding: var(--space-4) var(--space-4) var(--space-5); border: 1px solid var(--color-night-line); border-radius: var(--radius-xl); background: color-mix(in oklch, var(--color-night-deep) 55%, transparent); }
.hp-tn-head { display: none; }
.hp-tn-rows { list-style: none; display: grid; }
.hp-tn-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name cost" "strip strip" "note rate";
  gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-4) var(--space-2); border-bottom: 1px solid var(--color-night-line);
}
.hp-tn-row:last-child { border-bottom: 0; }
.hp-tn-row.is-best { border-radius: var(--radius-md); background: color-mix(in oklch, var(--color-accent-2) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-accent-2) 45%, transparent); }
.hp-tn-name { grid-area: name; display: grid; gap: 1px; min-height: var(--target); align-content: center; text-decoration: none; }
.night .hp-tn-name { color: var(--color-surface); }
.hp-tn-sup { font-size: var(--text-xs); color: var(--color-on-night-muted); }
.hp-tn-tariff { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 0.2em; }
.hp-tn-name:hover .hp-tn-tariff { color: var(--color-accent-2); }
.hp-tn-strip { grid-area: strip; }
.hp-tn-strip svg { height: 14px; }
.hp-tn-note { grid-area: note; font-size: var(--text-xs); color: var(--color-on-night-muted); }
.hp-tn-rate { grid-area: rate; display: flex; align-items: baseline; justify-content: end; gap: 2px; }
.hp-tn-unit { font-size: var(--text-xs); color: var(--color-on-night-muted); }
.hp-tn-cost { grid-area: cost; display: grid; justify-items: end; gap: 4px; }
.hp-tn-best { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--color-accent-2); color: var(--color-night); font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.hp-tn-key { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-xs); color: var(--color-on-night-muted); padding-inline: var(--space-2); }
.hp-tn-key span { display: inline-flex; align-items: center; gap: 6px; }
.hp-tn-key i { display: inline-block; width: 18px; height: 8px; border-radius: 2px; }
.hp-tn-key .k-window { background: color-mix(in oklch, var(--color-glow) 32%, transparent); box-shadow: inset 0 0 0 1px var(--color-glow); }
.hp-tn-key .k-charge { background: var(--color-accent-2); }
.hp-tn-more, .hp-tonight-board .fine { padding-inline: var(--space-2); }
.hp-tn-more { font-size: var(--text-sm); color: var(--color-on-night-muted); line-height: 1.6; max-width: 70ch; }
.hp-tonight-board .fine { max-width: 70ch; }
.hp-costs-line { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-2); max-width: 60ch; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--color-night-raise); color: var(--color-on-night); }
.hp-costs-line .i { width: 24px; height: 24px; color: var(--color-glow); margin-top: 2px; }
.hp-costs-line strong { color: var(--color-surface); }
@media (min-width: 768px) {
  .hp-tonight-board { padding: var(--space-5) var(--space-6) var(--space-6); }
  .hp-tn-head { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 4.5rem 6.5rem; gap: var(--space-4); padding: 0 var(--space-2) var(--space-2); border-bottom: 1px solid var(--color-night-line); font-size: var(--text-xs); font-weight: 600; color: var(--color-on-night-muted); }
  .hp-tn-head > span:nth-child(3), .hp-tn-head > span:nth-child(4) { text-align: right; }
  .hp-tn-axis { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
  .hp-tn-row { grid-template-columns: 11rem minmax(0, 1fr) 4.5rem 6.5rem; grid-template-areas: "name strip rate cost" "name note rate cost"; row-gap: 4px; }
  .hp-tn-strip { align-self: end; }
  .hp-tn-note { align-self: start; }
}
@media (min-width: 981px) {
  .hp-tonight-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--space-12); align-items: start; }
}

/* ── Chargers: the wall ─────────────────────────────────────────────────── */
.hp-wall {
  list-style: none; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 40%;
  gap: var(--space-5) var(--space-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: var(--space-1) var(--gutter) var(--space-3); scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.hp-wall > li { scroll-snap-align: start; min-width: 0; }
.hp-wall-item { display: grid; gap: 2px; color: var(--color-text); text-decoration: none; }
.hp-wall-plate { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: var(--space-2); border-radius: var(--radius-md); background: var(--plate); overflow: hidden; transition: translate var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out); }
.hp-wall-plate img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 12px 10px color-mix(in oklch, var(--color-night) 22%, transparent)); }
.hp-wall-brand { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.hp-wall-model { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; color: var(--color-text); }
.hp-wall-facts { font-size: var(--text-xs); color: var(--color-muted); }
.hp-wall-item:hover .hp-wall-plate { translate: 0 -3px; box-shadow: var(--shadow-md); }
.hp-wall-item:hover .hp-wall-model { color: var(--color-accent-ink); }
.hp-wall-hint { margin-top: var(--space-1); font-size: var(--text-xs); color: var(--color-muted); }
@media (min-width: 600px) { .hp-wall { grid-auto-columns: 26%; } }
@media (min-width: 768px) {
  .hp-wall { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
  .hp-wall-hint { display: none; }
}
.hp-chargers-foot { display: grid; gap: var(--space-6); margin-top: var(--space-10); }
.hp-tools { list-style: none; display: grid; gap: var(--space-1); align-content: start; }
@media (min-width: 981px) { .hp-chargers-foot { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--space-10); } .hp-tools { padding-top: calc(1.0625rem * 1.6 + var(--space-3)); } }

.hp-makers { margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); }
/* A typographic index that flows like a line of text: maker, then its chargers. */
.hp-makers-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.hp-makers-list li { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-3); }
.hp-maker { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; color: var(--color-text); }
.hp-makers-list a { display: inline-flex; align-items: center; min-height: var(--target); font-size: var(--text-sm); font-weight: 600; }

/* ── Electric cars ──────────────────────────────────────────────────────── */
.hp-ranks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--color-divider); }
.hp-ranks > li { border-bottom: 1px solid var(--color-divider); min-width: 0; }
.hp-ranks > li:nth-child(even) { border-left: 1px solid var(--color-divider); }
.hp-rank { display: grid; gap: var(--space-2); align-content: start; height: 100%; padding: var(--space-5) var(--space-4); color: var(--color-text); text-decoration: none; transition: background-color var(--dur-state) var(--ease-out); }
.hp-rank:hover { background: var(--color-accent-100); color: var(--color-text); }
.hp-rank-label { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-ink); text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 0.2em; }
.hp-rank-note { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.4; }
@media (min-width: 768px) {
  .hp-ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-ranks > li:nth-child(even) { border-left: 0; }
  .hp-ranks > li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--color-divider); }
  .hp-rank { padding: var(--space-6); }
}
.hp-cars-foot { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 981px) { .hp-cars-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-10); } }

/* ── Installers ─────────────────────────────────────────────────────────── */
.hp-inst-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "copy"; }
.hp-inst-head { grid-area: head; display: grid; gap: var(--space-3); max-width: 60ch; }
.hp-map { grid-area: map; }
.hp-inst-copy { grid-area: copy; }
.hp-map { margin: 0; display: grid; gap: var(--space-3); justify-items: center; }
.hp-map-svg { width: min(100%, 420px); height: auto; overflow: visible; }
.hp-map-svg .m-uk, .hp-map-svg .m-ie { fill: none; stroke-linecap: round; stroke-width: 3.4; }
.hp-map-svg .m-uk { stroke: color-mix(in oklch, var(--color-on-night) 24%, transparent); }
.hp-map-svg .m-ie { stroke: color-mix(in oklch, var(--color-on-night) 9%, transparent); }
.hp-map-svg .m-halo { fill: color-mix(in oklch, var(--color-accent-2) 20%, transparent); transition: fill var(--dur-state) var(--ease-out); }
.hp-map-svg .m-dot { fill: var(--color-accent-2); transition: fill var(--dur-state) var(--ease-out); }
.hp-map-svg .m-label { font-family: var(--font-body); font-size: 11px; font-weight: 700; fill: var(--color-on-night); paint-order: stroke; stroke: var(--color-night); stroke-width: 3px; stroke-linejoin: round; opacity: 0; transition: opacity var(--dur-state) var(--ease-out); pointer-events: none; }
.hp-map-svg .m-city.is-named .m-label { opacity: 0.8; }
.hp-map-svg .m-city:hover .m-label { opacity: 1; }
.hp-map-svg .m-city:hover .m-dot { fill: var(--color-glow); }
.hp-map-svg .m-city:hover .m-halo { fill: color-mix(in oklch, var(--color-glow) 30%, transparent); }
.hp-map-cap { font-size: var(--text-xs); color: var(--color-on-night-muted); text-align: center; }
.hp-inst-copy { display: grid; gap: var(--space-4); justify-items: start; align-content: start; }
.hp-inst-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-block: var(--space-2); border-top: 1px solid var(--color-night-line); border-bottom: 1px solid var(--color-night-line); }
.hp-inst-readings > div { display: grid; gap: 4px; padding: var(--space-4) var(--space-3) var(--space-4) 0; }
.hp-inst-readings > div + div { padding-left: var(--space-4); border-left: 1px solid var(--color-night-line); }
.hp-inst-readings dt { font-size: var(--text-xs); font-weight: 600; color: var(--color-on-night-muted); }
.hp-inst-copy .hp-mini-h { margin: var(--space-4) 0 0; }
.hp-before { list-style: none; display: grid; gap: 0; }
.hp-cities { width: 100%; margin-top: var(--space-2); border-top: 1px solid var(--color-night-line); }
.hp-cities summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font-weight: 700; color: var(--color-surface); }
.hp-cities summary::-webkit-details-marker { display: none; }
.hp-cities summary::after { content: "+"; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; color: var(--color-accent-2); }
.hp-cities[open] summary::after { content: "\2212"; }
.hp-cities ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); padding-bottom: var(--space-4); }
.hp-cities a { display: flex; align-items: center; min-height: var(--target); }
@media (min-width: 600px) { .hp-cities ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 981px) {
  .hp-inst-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "map head" "map copy"; column-gap: var(--space-12); row-gap: var(--space-4); align-items: start; }
  .hp-map { align-self: center; }
  .hp-map-svg { width: min(100%, 470px); }
}

/* ── Guides and news ────────────────────────────────────────────────────── */
.hp-guides-grid { display: grid; gap: var(--space-10); }
.hp-lead-post { display: grid; gap: var(--space-2); }
.hp-lead-link { display: grid; gap: var(--space-4); color: var(--color-text); text-decoration: none; }
.hp-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-night); }
.hp-cover img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--dur-reveal) var(--ease-out); }
.hp-lead-link:hover .hp-cover img { scale: 1.03; }
.hp-lead-title { font-family: var(--font-heading); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.hp-lead-link:hover .hp-lead-title { color: var(--color-accent-ink); }
.hp-lead-desc { color: var(--color-text-2); max-width: 62ch; }
.hp-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: var(--text-xs); color: var(--color-muted); }
.hp-latest-list { list-style: none; display: grid; margin-top: var(--space-6); border-top: 1px solid var(--color-divider); }
.hp-latest-list li { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-bottom: 1px solid var(--color-divider); }
.hp-latest-list a { display: flex; align-items: center; min-height: var(--target); font-family: var(--font-heading); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--color-text); text-decoration: none; }
.hp-latest-list a:hover { color: var(--color-accent-ink); text-decoration: underline; }
.hp-popular-list { list-style: none; counter-reset: pop; display: grid; border-top: 1px solid var(--color-divider); }
.hp-popular-list li { counter-increment: pop; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); grid-template-areas: "n link" "n tag"; align-items: center; column-gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--color-divider); }
.hp-popular-list li::before { content: counter(pop); grid-area: n; font-family: var(--font-figure); font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.hp-popular-list a { grid-area: link; display: flex; align-items: center; min-height: var(--target); font-weight: 700; line-height: 1.3; color: var(--color-text); text-decoration: none; }
.hp-popular-list a:hover { color: var(--color-accent-ink); text-decoration: underline; }
.hp-popular-list .hp-tag { grid-area: tag; justify-self: start; }
.hp-topics { margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); }
@media (min-width: 981px) { .hp-guides-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-12); } }

/* ── Quick answers ──────────────────────────────────────────────────────── */
.hp-qa { display: grid; }
.hp-qa-item { display: grid; gap: var(--space-2); align-content: start; padding-block: var(--space-5); border-top: 1px solid var(--color-divider); }
.hp-qa dt { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--color-text); }
.hp-qa dd { display: grid; gap: var(--space-1); justify-items: start; }
.hp-qa dd p { color: var(--color-text-2); max-width: 62ch; }
@media (min-width: 981px) { .hp-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); } }

/* ── How we work ────────────────────────────────────────────────────────── */
.hp-trust { background: var(--color-bg); border-top: 1px solid var(--color-divider); }
.hp-trust-h { font-size: var(--text-h3); margin-bottom: var(--space-6); }
.hp-trust-list { list-style: none; display: grid; gap: var(--space-6); }
.hp-trust-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); }
.hp-trust-i { width: 24px; height: 24px; margin-top: 2px; color: var(--color-accent); }
.hp-trust-list h3 { font-size: 1.0625rem; margin-bottom: var(--space-1); }
.hp-trust-list p { font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.55; max-width: 70ch; }
@media (min-width: 981px) { .hp-trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-10); } }

/* ── Generated: where each pin and label sits (from SPOTS in src/page.mjs) ── */
.hp-pin--chargers { --x: 48.6%; --y: 54.6%; }
.hp-route--chargers { --lx: 36%; --ly: 79%; }
.hp-pin--tariffs { --x: 84.2%; --y: 8.3%; }
.hp-route--tariffs { --lx: 49%; --ly: 3%; }
.hp-pin--cars { --x: 61.5%; --y: 53.3%; }
.hp-route--cars { --lx: 66%; --ly: 66%; }
.hp-pin--installers { --x: 23.8%; --y: 71.5%; }
.hp-route--installers { --lx: 2%; --ly: 82%; }
.hp-pin--costs { --x: 60.6%; --y: 40.2%; }
.hp-route--costs { --lx: 69%; --ly: 23%; }
.hp-pin--solar { --x: 44.5%; --y: 29.6%; }
.hp-route--solar { --lx: 9%; --ly: 11%; }
.hp-stage:has(.hp-route--chargers a:hover, .hp-route--chargers a:focus-visible) .hp-pin--chargers { scale: 1.6; background: var(--color-glow); }
.hp-stage:has(.hp-route--chargers a:hover, .hp-route--chargers a:focus-visible) .hp-leader--chargers { stroke: var(--color-glow); stroke-dasharray: none; }
.hp-stage:has(.hp-route--tariffs a:hover, .hp-route--tariffs a:focus-visible) .hp-pin--tariffs { scale: 1.6; background: var(--color-glow); }
.hp-stage:has(.hp-route--tariffs a:hover, .hp-route--tariffs a:focus-visible) .hp-leader--tariffs { stroke: var(--color-glow); stroke-dasharray: none; }
.hp-stage:has(.hp-route--cars a:hover, .hp-route--cars a:focus-visible) .hp-pin--cars { scale: 1.6; background: var(--color-glow); }
.hp-stage:has(.hp-route--cars a:hover, .hp-route--cars a:focus-visible) .hp-leader--cars { stroke: var(--color-glow); stroke-dasharray: none; }
.hp-stage:has(.hp-route--installers a:hover, .hp-route--installers a:focus-visible) .hp-pin--installers { scale: 1.6; background: var(--color-glow); }
.hp-stage:has(.hp-route--installers a:hover, .hp-route--installers a:focus-visible) .hp-leader--installers { stroke: var(--color-glow); stroke-dasharray: none; }
.hp-stage:has(.hp-route--costs a:hover, .hp-route--costs a:focus-visible) .hp-pin--costs { scale: 1.6; background: var(--color-glow); }
.hp-stage:has(.hp-route--costs a:hover, .hp-route--costs a:focus-visible) .hp-leader--costs { stroke: var(--color-glow); stroke-dasharray: none; }
.hp-stage:has(.hp-route--solar a:hover, .hp-route--solar a:focus-visible) .hp-pin--solar { scale: 1.6; background: var(--color-glow); }
.hp-stage:has(.hp-route--solar a:hover, .hp-route--solar a:focus-visible) .hp-leader--solar { stroke: var(--color-glow); stroke-dasharray: none; }
