/* Clean, photographic homepage direction tested first on /uk-fuel-prices/. */
.homepage-editorial {
  --cream: #fff;
  --paper: #f7f8f6;
  --card: #fff;
  --ink: #111512;
  --muted: #626c66;
  --line: #dfe5e1;
  --line-soft: #edf1ee;
  --radius: 4px;
  --radius-lg: 5px;
  --shadow: 0 20px 55px rgba(18, 35, 27, .17);
  --shadow-sm: 0 8px 25px rgba(18, 35, 27, .08);
  background: #fff;
  color: var(--ink);
}

.homepage-editorial header {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
}

.homepage-editorial .nav {
  height: 68px;
}

.homepage-editorial .btn {
  border-radius: 3px;
  box-shadow: none;
}

.homepage-editorial .hero {
  min-height: 650px;
  padding: 72px 0 88px;
  display: flex;
  align-items: flex-start;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .91) 38%, rgba(255, 255, 255, .20) 72%, rgba(255, 255, 255, .05) 100%),
    url('/assets/article-previews/car-running-costs.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.homepage-editorial .hero::before {
  display: none;
}

.homepage-editorial .hero .grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: end;
}

.homepage-editorial .hero h1 {
  max-width: 11.5ch;
  margin-bottom: 24px;
  color: #111;
  font-family: Inter, sans-serif;
  font-size: clamp(3rem, 6vw, 5.15rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.048em;
}

.homepage-editorial .hero h1 strong {
  display: block;
  font-family: Archivo, sans-serif;
  font-weight: 800;
}

.homepage-editorial .hero p.lead {
  max-width: 47ch;
  color: #344139;
  font-size: 1.08rem;
  line-height: 1.7;
}

.homepage-editorial .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #435048;
  font-size: .93rem;
}

.homepage-editorial .hero-proof > * {
  white-space: nowrap;
}

.homepage-editorial .hero-proof strong,
.homepage-editorial .hero-proof span {
  color: #19251e;
  font-weight: 600;
}

.homepage-editorial .hero-proof a {
  color: var(--green);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.homepage-editorial .dl-card {
  width: 280px;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.homepage-editorial .dl-qr {
  width: 184px;
  height: 184px;
  margin-bottom: 18px;
  padding: 10px;
  box-sizing: content-box;
  background: rgba(255, 255, 255, .82);
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, .18));
}

.homepage-editorial .dl-h {
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.homepage-editorial .dl-card .share-airdrop {
  color: #fff;
  border-color: #fff;
  background: rgba(11, 61, 46, .55);
  backdrop-filter: blur(8px);
}

.homepage-editorial section:not(.hero):not(.strip):not(.cta-band) {
  padding: 88px 0;
}

.homepage-editorial .section-head {
  max-width: 58ch;
}

.homepage-editorial .section-head h2,
.homepage-editorial .cta-band h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.45rem);
  letter-spacing: -.04em;
}

.homepage-editorial #problem,
.homepage-editorial .compare-teaser,
.homepage-editorial .contact {
  background: #fff;
}

.homepage-editorial .showcase,
.homepage-editorial .faq,
.homepage-editorial .latest-guides {
  background: var(--paper);
  border-color: var(--line);
}

/* The hero already draws the dividing line, so avoid a doubled 2px border now the proof strip is gone. */
.homepage-editorial .hero + .latest-guides {
  border-top: 0;
}

.homepage-editorial .outcome-list li,
.homepage-editorial .feature,
.homepage-editorial .tier,
.homepage-editorial .faq details,
.homepage-editorial .vs-card {
  border-radius: 4px;
  box-shadow: none;
}

.homepage-editorial .feature:hover,
.homepage-editorial .vs-card:hover {
  box-shadow: var(--shadow-sm);
}

.homepage-editorial .row-feature {
  max-width: 1020px;
  gap: 84px;
}

.homepage-editorial .rf-text h3 {
  font-size: 2rem;
  letter-spacing: -.035em;
}

.homepage-editorial .rf-visual {
  padding: 42px 0;
  background: #e9efeb;
}

.homepage-editorial .device {
  border-radius: 42px;
  box-shadow: 0 28px 60px rgba(20, 40, 30, .22);
}

.homepage-editorial .privacy {
  background: #0b3d2e;
}

.homepage-editorial .privacy h2,
.homepage-editorial .privacy strong {
  color: #fff;
}

.homepage-editorial .privacy-note {
  color: #d1e1da;
}

.homepage-editorial .tier.best {
  border-color: var(--green);
  box-shadow: none;
}

.homepage-editorial .tier.best .flag {
  border-radius: 2px;
}

.homepage-editorial .peerpush-badge {
  display: block;
  width: 230px;
  max-width: 100%;
  margin: 0;
  border-radius: 14px;
  line-height: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.homepage-editorial .footer-badges {
  margin-top: 22px;
}

@media (min-width: 861px) {
  .homepage-editorial .foot-top {
    grid-template-columns: minmax(380px, 1fr) minmax(0, 1.4fr);
  }

  /* Let the three link columns shrink instead of spilling past the viewport. */
  .homepage-editorial .foot-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .homepage-editorial .foot-nav:has(> .foot-group:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .homepage-editorial .foot-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

.homepage-editorial .peerpush-badge:hover {
  opacity: .94;
  transform: translateY(-1px);
}

.homepage-editorial .peerpush-badge:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.homepage-editorial .peerpush-badge img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
}

.homepage-editorial .guide-teaser {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.homepage-editorial .guide-teasers {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.homepage-editorial .guide-teaser .guide-image {
  aspect-ratio: 4 / 3;
}

.homepage-editorial .guide-teaser .guide-body {
  padding: 17px 18px 18px;
}

.homepage-editorial .guide-teaser h3 {
  min-height: 3.3em;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.1;
}

.homepage-editorial .guide-teaser p {
  display: -webkit-box;
  min-height: 3em;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .86rem;
  line-height: 1.5;
}

.homepage-editorial .guide-category {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  background: #e5f3ec;
  color: #0b3d2e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.homepage-editorial .cta-band {
  background: #0b3d2e;
}

.homepage-editorial .cta-band h2,
.homepage-editorial .cta-band p {
  color: #fff;
}

.homepage-editorial footer {
  background: #101311;
}

.homepage-editorial .dockbar {
  background: rgba(255, 255, 255, .95);
}

.is-ios .homepage-editorial .nav .btn.sm {
  display: none;
}

@media (max-width: 820px) {
  .is-ios .homepage-editorial .nav {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .homepage-editorial .hero {
    background-position: 61% center;
  }

  .homepage-editorial .hero .grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .homepage-editorial .hero-copy {
    max-width: 700px;
  }

  .homepage-editorial .hero-visual {
    justify-content: flex-start;
  }

  .homepage-editorial .dl-card {
    margin: 0;
  }
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .homepage-editorial .dl-qr,
  .homepage-editorial .dl-h {
    display: none;
  }

  .homepage-editorial .hero-visual {
    min-height: 0;
  }

  .homepage-editorial .dl-card {
    max-width: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  .homepage-editorial .dl-card .store-badge {
    display: inline-flex;
    margin: 0;
  }

  .homepage-editorial .dl-card .share-airdrop {
    display: none;
  }
}

@media (max-width: 650px) {
  .homepage-editorial .hero {
    min-height: auto;
    padding: 48px 0 64px;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .80)),
      url('/assets/article-previews/car-running-costs.jpg');
    background-position: 58% center;
  }

  .homepage-editorial .hero h1 {
    font-size: 2.85rem;
  }

  .homepage-editorial section:not(.hero):not(.strip):not(.cta-band) {
    padding: 66px 0;
  }

  .homepage-editorial .row-feature {
    gap: 28px;
  }

  .homepage-editorial .guide-teaser h3,
  .homepage-editorial .guide-teaser p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-editorial * {
    transition: none !important;
  }
}
