/* Page styles. Home hero first, then the rest of the site by page. */

/* ---------- Hero: the dusk main street ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--night-text);
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(255, 170, 70, 0.22), transparent 60%),
    linear-gradient(180deg, #0A111F 0%, #121C33 45%, #24304F 82%, #2E3755 100%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #F4F6FB;
  box-shadow: 0 0 6px rgba(244, 246, 251, 0.8);
  opacity: 0.7;
  animation: twinkle 4.8s ease-in-out infinite;
}
.star:nth-child(1) { top: 9%; left: 7%; animation-delay: -1s; }
.star:nth-child(2) { top: 18%; left: 22%; animation-delay: -3s; width: 2px; height: 2px; }
.star:nth-child(3) { top: 6%; left: 38%; animation-delay: -2s; }
.star:nth-child(4) { top: 24%; left: 52%; animation-delay: -4s; width: 2px; height: 2px; }
.star:nth-child(5) { top: 11%; left: 64%; animation-delay: -0.5s; }
.star:nth-child(6) { top: 30%; left: 78%; animation-delay: -2.6s; width: 2px; height: 2px; }
.star:nth-child(7) { top: 7%; left: 88%; animation-delay: -3.6s; }
.star:nth-child(8) { top: 40%; left: 94%; animation-delay: -1.8s; width: 2px; height: 2px; }
.star:nth-child(9) { top: 36%; left: 4%; animation-delay: -4.2s; width: 2px; height: 2px; }
.star:nth-child(10) { top: 15%; left: 46%; animation-delay: -1.2s; width: 2px; height: 2px; }
.star:nth-child(11) { top: 4%; left: 74%; animation-delay: -2.2s; width: 2px; height: 2px; }
.star:nth-child(12) { top: 28%; left: 31%; animation-delay: -3.1s; width: 2px; height: 2px; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }

.hero__copy {
  position: relative;
  z-index: 2;
  padding-block: 28px 8px;
}
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 19ch;
  margin-bottom: var(--s-3);
}
.hero__title span { display: inline; }
.hero__accent { color: var(--amber); text-shadow: 0 0 28px rgba(255, 182, 39, 0.35); }
.hero__sub { font-size: var(--fs-md); color: var(--night-text); max-width: 34rem; margin-bottom: var(--s-5); }
.hero__alt { margin-top: var(--s-4); }
.hero__alt a { color: #fff; }
.hero__alt a span { color: var(--amber); }

/* Audience switch: two pill tabs that swap the hero copy and form. */
.aud {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  background: rgba(13, 21, 36, 0.55);
  border: 1px solid var(--dusk-2);
}
.aud__tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--night-text);
  font: 600 var(--fs-sm)/1 var(--font-text);
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.aud__tab:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.aud__tab[aria-selected="true"] { background: var(--amber); color: var(--ink); }
[data-aud-fade] { transition: opacity 160ms var(--ease-out); }
[data-aud-fade].is-fading { opacity: 0; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-4); }
.hero__meta .hero__alt, .hero__meta .hero__trust { margin: 0; }
.hero__panel:focus-visible { outline-offset: 6px; border-radius: 8px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--night-muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 16px; height: 16px; flex: none; color: var(--amber); }
.hero__climate { margin: var(--s-2) 0 0; font-size: var(--fs-xs); }
.hero__climate a { color: var(--night-text); text-underline-offset: 3px; }
@media (max-width: 719px) {
  .hero__copy { padding-top: 20px; }
  .aud { margin-bottom: var(--s-3); }
  .hero__sub { margin-bottom: var(--s-4); }
  .hero__meta { margin-top: var(--s-3); }
  .hero .scene { height: 220px; }
}
@media (min-width: 720px) {
  .aud { margin-bottom: var(--s-3); }
  .hero .scene { flex: 1 1 0; min-height: 230px; }
  .hero .scene__svg { position: absolute; inset: 0; }
}

/* Reserved video slot (off until data-video-src is set). Absolutely placed, so it never moves
   the layout; wide screens only, so it never covers the headline or the form on phones. */
.hero__video {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 5vh, 56px);
  right: clamp(16px, 3.5vw, 56px);
  width: clamp(240px, 27vw, 400px);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--dusk-2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.hero__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__video-sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-pill);
  background: rgba(13, 21, 36, 0.78);
  color: #fff;
  font: 600 var(--fs-xs)/1 var(--font-text);
  cursor: pointer;
}
.hero__video-sound:hover { background: var(--ink); }
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .hero:has(> .hero__video[data-video-src]:not([data-video-src=""])) .hero__copy { padding-right: calc(clamp(240px, 27vw, 400px) + 40px); }
}
@media (max-width: 959px) { .hero__video { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none !important; }
  [data-aud-fade], .aud__tab { transition: none; }
}

.scene {
  position: relative;
  z-index: 1;
  height: 240px;
  margin-top: -6px;
  pointer-events: none;
}
.scene__svg { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 720px) {
  .hero { min-height: min(calc(100svh - var(--header-h)), 800px); }
  .hero__copy { padding-block: clamp(32px, 5vh, 56px) 0; }
  .hero__title { max-width: 21ch; }
  .scene { flex: 1 1 auto; min-height: 260px; height: auto; margin-top: -30px; }
}
@media (min-width: 1100px) {
  .hero__title { font-size: clamp(3rem, 1.6rem + 2.4vw, 3.9rem); max-width: none; }
  .hero__title span:first-child { display: block; }
}

/* Scene parts. Default (no JS, reduced motion) is the finished, lit street. */
.scene .win__dark { fill: #131A2B; }
.scene .win__lit { fill: url(#gLit); opacity: 1; transition: opacity 900ms var(--ease-out); }
.scene .win__lit.door { opacity: 0.85; }
.scene .frame { fill: none; stroke: #0D1524; stroke-width: 3; }
.scene .sil { fill: #2B1E10; opacity: 0.88; }
.scene .spill { opacity: 1; transition: opacity 1100ms var(--ease-out); }
.scene .sign {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  fill: #FFE2A3;
  transition: fill 900ms var(--ease-out);
}
.scene .sign--sm { font-size: 12px; letter-spacing: 0.12em; }
.scene .shop[data-ready="0"] .win__lit, .scene .shop[data-ready="0"] .spill { opacity: 0; }
.scene .shop[data-ready="0"] .sign { fill: #7C869D; }
.scene .beam { opacity: 0; }

/* Animated: everything starts dark and the beam lights ready shops one by one. */
.scene.is-anim .shop:not(.is-lit) .win__lit,
.scene.is-anim .shop:not(.is-lit) .spill { opacity: 0; }
.scene.is-anim .shop:not(.is-lit) .sign { fill: #7C869D; }
.scene.is-anim .shop.is-lit .win__lit { opacity: 1; }
.scene.is-anim .shop.is-lit .win__lit.door { opacity: 0.85; }
.scene.is-anim .beam { opacity: 1; transition: opacity 600ms; }
.scene.is-anim .shop.is-probing[data-ready="0"] .win__lit { opacity: 0.12; transition-duration: 300ms; }
.beam__orb { animation: orb 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes orb { 50% { transform: scale(1.25); } }
.layer-far, .layer-sky, .layer-near { will-change: transform; }

/* ---------- Home: steps ---------- */
.steps {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.step { --step-hue: var(--teal); --step-tint: var(--teal-tint); display: flex; flex-direction: column; gap: var(--s-2); border-top: 4px solid var(--step-hue); }
.step:nth-child(2) { --step-hue: var(--blue); --step-tint: var(--blue-tint); }
.step:nth-child(3) { --step-hue: var(--amber); --step-tint: var(--amber-tint); }
.step h3 { margin: 0; font-size: var(--fs-xl); }
.step p { margin: 0; }
.step .link-arrow { margin-top: auto; padding-top: var(--s-3); }
.step__art { height: 112px; margin-bottom: var(--s-2); padding: 6px; border-radius: var(--r-md); background: var(--step-tint); display: flex; align-items: center; }
.step__art svg { height: 100px; width: auto; }
.step__num { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); }
.step__num .pill { background: var(--step-hue); color: var(--ink); }
.step:nth-child(2) .step__num .pill { color: #fff; }
.art-check__lens { animation: lens 4.5s var(--ease-in-out) infinite; }
@keyframes lens { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-46px, -10px); } 66% { transform: translate(-24px, 14px); } }
.art-fix rect[class^="art-fix__l"] { transform-box: fill-box; transform-origin: left center; animation: typeline 4s var(--ease-out) infinite; }
.art-fix__l2 { animation-delay: 0.3s !important; }
.art-fix__l3 { animation-delay: 0.6s !important; }
.art-fix__l4 { animation-delay: 0.9s !important; }
@keyframes typeline { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
.art-list__win { animation: winlight 3.6s ease-in-out infinite; }
@keyframes winlight { 0%, 20% { fill: #2A3858; } 35%, 100% { fill: #FFB627; } }
.art-list__ping { transform-box: fill-box; transform-origin: center; animation: ping 3.6s ease-out infinite; }
@keyframes ping { 0%, 25% { opacity: 0; transform: scale(0.4); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }

/* ---------- Home: example result ---------- */
.example { position: relative; margin: 0; padding: var(--s-5); }
.example__tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--slate-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--slate-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.example__top { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); }
.example__name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--ink); margin: 0; }
.dial--sm { width: 128px; margin: 0; flex: none; }
.dial--sm .dial__num { font-size: 2.2rem; }
.dial--sm .dial__grade { margin-top: 4px; font-size: var(--fs-xs); }
.bars { display: grid; gap: 10px; margin-bottom: var(--s-5) !important; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.bar { height: 8px; border-radius: var(--r-pill); background: var(--sand); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--amber); transform-origin: left; }
.bar__fill--100 { width: 100%; } .bar__fill--70 { width: 70%; } .bar__fill--60 { width: 60%; } .bar__fill--50 { width: 50%; } .bar__fill--40 { width: 40%; }
.rv-in .bar__fill { animation: barfill 1.1s var(--ease-out) both; }
@keyframes barfill { from { transform: scaleX(0); } }
.fixes { display: grid; gap: 10px; font-size: var(--fs-sm); }
.fixes li { display: flex; gap: 10px; align-items: baseline; }
.fixes .pill { flex: none; }
@media (max-width: 420px) { .bars li { grid-template-columns: minmax(0, 1fr) 60px 40px; } }

/* ---------- Home: data strip ---------- */
.stats {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.stat {
  margin: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dusk-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem);
  line-height: 1;
  color: var(--amber);
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.stat__num--words { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.05; }
.stat figcaption { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.stat figcaption p { margin: 0; }
.stat__src { font-weight: 600; }
.stat__cav { color: var(--night-muted); font-size: var(--fs-xs); }
.data-strip__more { margin-top: var(--s-6); }

/* ---------- Home: feed ---------- */
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-5) 0 0; }
.counters div { padding: var(--s-4); border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--sand); box-shadow: var(--shadow-1); }
.counters dt { font-size: var(--fs-xs); color: var(--slate-2); }
.counters dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.counters div:nth-child(1) { border-top: 3px solid var(--teal); }
.counters div:nth-child(2) { border-top: 3px solid var(--blue); }
.counters div:nth-child(3) { border-top: 3px solid var(--amber); }
:is(.band--night, .band--dusk) .counters div { background: rgba(255, 255, 255, 0.04); border-color: var(--dusk-2); box-shadow: none; }
:is(.band--night, .band--dusk) .counters dt { color: var(--night-muted); }
:is(.band--night, .band--dusk) .counters dd { color: #fff; }
@media (max-width: 480px) { .counters { grid-template-columns: 1fr; } .counters div { display: flex; justify-content: space-between; align-items: center; } .counters dd { margin: 0; font-size: 1.5rem; } }

/* ---------- Home: shopper calculator ---------- */
.ticks { display: grid; gap: 10px; margin-bottom: var(--s-5) !important; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--amber);
  box-shadow: inset 0 0 0 4px var(--amber-soft);
}
.calc h3 { margin-bottom: 4px; }
.calc__grid { margin-top: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.calc__out {
  display: grid;
  gap: 2px;
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--night-text);
}
.calc__verdict { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; color: var(--green); }
.calc__out.is-loss .calc__verdict { color: #FF8A73; }
.calc__amount { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #fff; line-height: 1.1; }
.calc__math { color: var(--night-muted); overflow-wrap: anywhere; }

/* ---------- Pricing cards ---------- */
.plans {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
}
.plan { display: flex; flex-direction: column; gap: var(--s-3); position: relative; }
.plan h3 { margin: 0; }
.plan__price { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.plan__per { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-sm); color: var(--slate-2); }
.plan ul { display: grid; gap: 8px; font-size: var(--fs-sm); margin-bottom: var(--s-3) !important; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); }
.plan .btn { margin-top: auto; }
.plan--lit { border-color: var(--amber); box-shadow: var(--glow-amber); }
.plan__flag {
  position: absolute;
  top: -12px; left: var(--s-5);
  margin: 0;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.plans__note { margin-top: var(--s-5); }

/* ---------- Final CTA ---------- */
.final-cta__inner { display: grid; justify-items: center; text-align: center; gap: var(--s-3); }
.final-cta__inner .urlbar { margin-top: var(--s-3); }
.final-cta__lamp { width: 64px; height: 64px; }
.final-cta__glow { animation: glowpulse 3.2s ease-in-out infinite; }
@keyframes glowpulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; filter: drop-shadow(0 0 6px #FFB627); } }

/* ---------- Shared inner-page bits ---------- */
.h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
.page-hero--compact { padding-block: var(--s-6); }
.page-hero .field label { color: #fff; }
.page-hero .cluster { margin-top: var(--s-5); }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.results-head h2, .results-head h3 { margin: 0; }
.load-more { display: flex; justify-content: center; margin-top: var(--s-5); }
.share-row { display: flex; gap: 8px; align-items: center; }
.share-row .input { min-width: 0; flex: 1; font-size: var(--fs-sm); }
.plain-list { display: grid; gap: 6px; margin-bottom: var(--s-3) !important; }
.next-steps { padding-left: 1.2rem; display: grid; gap: 8px; margin: 0 0 var(--s-4); }
.code-input { font-family: var(--font-mono); font-size: var(--fs-xs); margin-bottom: var(--s-3); }
.stack > .card + .card { margin-top: var(--s-4); }
.pricing-legal { margin-top: var(--s-5); }

/* Search bars inside the dark title band */
.search-bar {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
  grid-template-columns: 1fr;
  align-items: end;
  max-width: 900px;
}
@media (min-width: 760px) {
  .search-bar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; }
  .search-bar--gas { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1fr) auto; }
}
.search-bar .btn { min-height: 46px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--sand); margin-bottom: var(--s-3); }
.tab {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--slate-2);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-mono);
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.tab:hover { color: var(--ink); }
.code-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tabpanel pre { max-height: 420px; }

/* ---------- Check ---------- */
.check-form { margin-top: var(--s-5); }
.check-help { margin-top: var(--s-3); color: var(--night-muted); max-width: 40rem; }
.check-progress { display: flex; gap: 14px; align-items: center; margin-bottom: var(--s-5); }
.check-progress .spinner { width: 22px; height: 22px; color: var(--amber-ink); flex: none; }
.result {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 960px) { .result { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
.result__side, .result__main { display: grid; gap: var(--s-4); min-width: 0; }
.result__score { display: grid; gap: var(--s-4); text-align: center; }
.result__score .dial { width: 180px; }
.result__url { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; margin: 0; }
.result__summary { margin: 0; }
.yourshop { margin: 0; }
.yourshop svg { width: 100%; height: auto; border-radius: var(--r-md); }
.yourshop .zl { opacity: 0; }
.yourshop .ys-spill { opacity: 0; }
.ys-sign { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; fill: #FFE2A3; }
.yourshop__cap { font-size: var(--fs-xs); color: var(--slate-2); margin-top: 6px; }
.found { display: grid; gap: 10px; margin: 0; font-size: var(--fs-sm); }
.found div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; }
.found dt { font-weight: 600; color: var(--ink); }
.found dd { margin: 0; overflow-wrap: anywhere; }
.result__found h3, .result__share h3 { margin-bottom: var(--s-3); }
.result__share .btn--ghost { margin-top: var(--s-3); }
.upsell {
  display: grid;
  gap: var(--s-4);
  background: var(--ink);
  border-color: var(--dusk-2);
  color: var(--night-text);
}
.upsell h3 { color: #fff; }
.upsell .eyebrow { color: var(--amber); }
.upsell__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.upsell .btn--ghost { --btn-fg: #fff; border-color: rgba(233, 237, 245, 0.35); }
@media (min-width: 760px) { .upsell { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.groups { display: grid; gap: var(--s-3); }
.group { padding: 0; overflow: hidden; }
.group__head {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: var(--s-4) var(--s-5);
}
.group__head::-webkit-details-marker { display: none; }
.group__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.group__meta { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); }
.group__bar { grid-column: 1 / -1; }
.group__bar .bar__fill { width: 0; transition: width 1s var(--ease-out); }
.items { padding: 0 var(--s-5) var(--s-4) !important; display: grid; gap: 0; }
.item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--sand); }
.item .pill { justify-self: start; align-self: start; }
.item__body h4 { margin: 0 0 4px; font-family: var(--font-text); font-weight: 600; font-size: var(--fs-md); }
.item__body p { margin: 0 0 6px; font-size: var(--fs-sm); }
.item__fix { background: var(--amber-tint); border-radius: var(--r-sm); padding: 8px 10px; }
.item__ev summary { cursor: pointer; font-size: var(--fs-xs); color: var(--slate-2); text-decoration: underline; }
.item__ev pre { margin-top: 6px; font-size: 0.75rem; max-height: 220px; }
@media (max-width: 480px) { .item { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.check-result.is-loading .result__side .dial { opacity: 0.5; }
.score-key { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: var(--s-5) !important; }
.score-key li { display: grid; gap: 6px; align-content: start; }
.score-key h3 { font-size: var(--fs-md); margin: 0; }
.score-key p { font-size: var(--fs-sm); margin: 0; }
.score-key__pts { font-family: var(--font-display); font-weight: 800; color: var(--amber-ink); }

/* ---------- Fix Kit and listing forms ---------- */
.kit-files { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.kit-files li { display: grid; gap: 4px; align-content: start; }
.kit-files code { justify-self: start; font-size: var(--fs-xs); }
.kit-files h3 { font-size: var(--fs-md); margin: 4px 0 0; }
.kit-files p { font-size: var(--fs-sm); margin: 0; }
.kit-layout { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .kit-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } .kit-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.kit-side { display: grid; gap: var(--s-4); min-width: 0; }
.kit-form h2 { margin-bottom: 4px; }
.kit-form > p { margin-bottom: var(--s-5); }
.repeat { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.repeat legend { margin-bottom: var(--s-3); }
.repeat__rows { display: grid; gap: var(--s-3); }
.repeat__row {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--sand);
}
.repeat__row .span-all { grid-column: 1 / -1; }
.repeat__remove { justify-self: start; }
.repeat > .btn { justify-self: start; }
.kit-preview__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.kit-preview__head h2 { margin: 0; }
.locked { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); border: 1px dashed #B8C2D1; }
.locked ul { display: grid; gap: 4px; font-size: var(--fs-sm); }
.locked li { padding-left: 18px; position: relative; }
.locked li::after { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 2px; border: 2px solid var(--slate-2); }
.kit-buy { display: grid; gap: var(--s-3); }
.kit-buy h2 { margin: 0; }
.list-form__h { margin-top: var(--s-6); margin-bottom: 4px; }
.list-form__buy { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.plan-pick { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: var(--s-3); }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick label {
  display: grid;
  gap: 4px;
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 2px solid var(--sand);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.plan-pick label .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.plan-pick input:checked + label { border-color: var(--amber); box-shadow: var(--glow-amber); }
.plan-pick input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Marketplace ---------- */
.listing { display: grid; gap: 6px; align-content: start; }
.listing__top { display: flex; flex-wrap: wrap; gap: 6px; }
.listing__name { margin: 4px 0 0; font-size: var(--fs-lg); }
.listing p { margin: 0; }
.listing__offers { display: grid; gap: 4px; margin-top: 6px !important; font-size: var(--fs-sm); border-top: 1px solid var(--sand); padding-top: 8px !important; }
.listing__offers li { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Deals and gas ---------- */
.deal-form h2 { margin-bottom: var(--s-4); }
.scan-btn { cursor: pointer; }
#d-photo:focus-visible + .scan-btn { outline: 3px solid var(--amber); outline-offset: 2px; }
.deal, .station { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; }
.deal__title, .station__name { margin: 4px 0; font-size: var(--fs-md); font-family: var(--font-text); font-weight: 600; }
.deal__main p, .station__main p, .deal__side p { margin: 0; }
.deal__side { display: grid; gap: 6px; justify-items: end; text-align: right; }
.deal__price, .station__price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); margin: 0; }
.station__main p + p { margin-top: 6px; }
@media (max-width: 480px) { .deal { grid-template-columns: minmax(0, 1fr); } .deal__side { justify-items: start; text-align: left; } }
.rules { display: grid; gap: 8px; margin-bottom: var(--s-3) !important; }
.rules li { display: grid; padding: 8px 10px; background: var(--bg-alt); border-radius: var(--r-sm); }
.calc__note { margin-top: var(--s-3); }

/* ---------- Ask page ---------- */
.ask-page { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ask-page { grid-template-columns: minmax(0, 1fr) 320px; } }
.ask-page__box { padding: 0; overflow: hidden; display: flex; min-height: min(70vh, 640px); }
.ask-page__box .ask { flex: 1; }
.ask-page__box .ask__log { max-height: 60vh; }

/* ---------- For business ---------- */
.desk-callout { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.desk-callout h3 { margin-bottom: 4px; }
.desk-callout p { margin: 0; }
@media (min-width: 760px) { .desk-callout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.badge-demo { position: relative; display: grid; place-items: center; min-height: 220px; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid var(--sand); }
.badge-demo__tag { position: absolute; top: 12px; left: 12px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-2); border: 1px dashed var(--slate-2); border-radius: var(--r-pill); padding: 2px 10px; }
.badge-demo__badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: var(--r-pill); background: var(--ink); color: #fff; box-shadow: var(--shadow-2); }
.badge-demo__badge svg { width: 36px; height: 36px; }
.badge-demo__badge > span { display: grid; line-height: 1.2; }
.badge-demo__badge strong { color: #fff; }
.badge-demo__badge > span > span { font-size: var(--fs-xs); color: var(--night-muted); }
.card--night .muted { color: var(--night-muted); }
.card--night a { color: var(--amber-soft); }

/* ---------- Shoppers ---------- */
.tool { display: grid; gap: var(--s-2); align-content: start; }
.tool__icon { width: 48px; height: 48px; }
.tool h3 { margin: 4px 0 0; }
.tool p { margin: 0; }

/* ---------- Proof ---------- */
.studies { display: grid; gap: var(--s-5); }
.study { display: grid; gap: var(--s-3); }
.study h3, .study p { margin: 0; }
.study__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.study__num--words { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.study blockquote { margin: 0; padding: var(--s-3) var(--s-4); border-left: 4px solid var(--amber); background: var(--amber-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-lg); color: var(--ink); }
.study__cav { font-size: var(--fs-sm); color: var(--slate-2); }

/* ---------- Developer docs ---------- */
.docs { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs__toc { position: sticky; top: calc(var(--header-h) + 16px); } }
.docs__toc ul { display: grid; gap: 6px; font-size: var(--fs-sm); }
.docs__body h2:first-child { margin-top: 0; }
.docs__body pre { margin: var(--s-3) 0 var(--s-5); }
.docs__body td code { overflow-wrap: anywhere; }

/* ---------- Dashboard and admin ---------- */
.dash-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--ink); margin: 4px 0 0; line-height: 1; }
.dash-split { margin-top: var(--s-5); }
.quotes { display: grid; gap: var(--s-3); }
.quotes li { padding: var(--s-3); background: var(--bg-alt); border-radius: var(--r-sm); }
.admin-login { max-width: 560px; display: grid; gap: var(--s-3); }
.admin-login h2 { margin: 0; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.admin-bar .tabs { margin: 0; border: 0; }
[role="tabpanel"] > .card + .card { margin-top: var(--s-4); }
td.cluster { gap: 6px; }

/* ---------- 404 ---------- */
.notfound { padding-block: var(--s-8); }
.notfound__inner { display: grid; justify-items: center; text-align: center; gap: var(--s-3); }
.notfound__art { width: min(260px, 70vw); }
.notfound__sign { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; fill: #7C869D; }
.notfound h1 { max-width: 18ch; }
.notfound__links { justify-content: center; }

/* ---------- Bright bands: tweaks for components that sit on them ---------- */
.band--sky .ticks li::before { background: var(--amber); box-shadow: inset 0 0 0 4px var(--amber-soft); }
.band--sky .btn:not(.btn--ghost):not(.btn--amber) { --btn-bg: #fff; --btn-fg: var(--ink); }
.band--sky .card .btn:not(.btn--ghost):not(.btn--amber) { --btn-bg: var(--ink); --btn-fg: #fff; }
.final-cta.band--amber .final-cta__lamp { filter: drop-shadow(0 6px 14px rgba(13, 21, 36, 0.25)); }
.final-cta.band--amber .lede { margin-inline: auto; }
.final-cta.band--amber .urlbar { border-color: transparent; box-shadow: 0 10px 30px rgba(122, 77, 0, 0.25); }

/* Long "through <date>" notes sit on their own line instead of wrapping mid-phrase. */
.plan__price .plan__per:has(time) { display: block; }

/* Deals: honest source status, empty-state next steps, phone-friendly form */
.deal-sources, .deal-next { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.deal-sources li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.deal-next { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.deal-next .btn { width: 100%; justify-content: center; }
[data-results-wrap] { scroll-margin-top: 84px; }
@media (max-width: 600px) {
  .deal-form .form-actions { flex-direction: column; align-items: stretch; }
  .deal-form .form-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
}

/* ---------- How it works ---------- */
.audience { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); max-width: 46rem; }
.audience li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); color: var(--night-text); font-weight: 500; }
.audience .pill--plain { background: var(--dusk-2); color: #fff; }
.tour .step h3 { font-size: var(--fs-lg); }
.tour__note { margin-top: var(--s-4); }
.tour__shopper { margin-top: var(--s-4); }
.tour__shopper p { margin: 0; }
.demo { margin: 0; }
.demo .term__bar { flex-wrap: wrap; }
.demo__tag {
  margin-left: auto;
  padding: 2px 10px;
  border: 1px dashed var(--amber);
  border-radius: var(--r-pill);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo__lines .feed__item { grid-template-columns: auto minmax(0, 1fr); }
.demo__lines.is-typing::after { display: none; }
.demo__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 16px 14px; border-top: 1px solid var(--term-line); color: var(--term-dim); font-size: 0.8rem; }
.demo__foot .btn--ghost { --btn-fg: var(--term-text); border-color: var(--term-line); }
.how-cta { justify-content: center; }
@media (max-width: 480px) { .demo__tag { margin-left: 0; } .how-cta .btn { width: 100%; justify-content: center; } }
