.prices-page {
  overflow: hidden;
}

.prices-hero {
  position: relative;
  isolation: isolate;
  padding-bottom: 4.5rem;
}

.prices-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  right: 5%;
  top: -15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .2), transparent 68%);
  filter: blur(10px);
}

.prices-hero .page-hero-tag {
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prices-tools {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-kicker {
  display: block;
  margin-bottom: .55rem;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-heading h2,
.prices-about h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.tool-count {
  padding: .4rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.price-tool-card {
  --price-accent: #fbbf24;
  --price-accent-rgb: 251, 191, 36;
  position: relative;
  grid-column: span 4;
  display: flex;
  min-width: 0;
  min-height: 265px;
  flex-direction: column;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--price-accent) 25%, var(--border));
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(var(--price-accent-rgb), .08), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), var(--surface));
  box-shadow: 0 16px 45px rgba(2, 6, 23, .12);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.price-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--price-accent), transparent 85%);
}

.price-tool-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--price-accent) 58%, var(--border));
  box-shadow: 0 22px 55px rgba(2, 6, 23, .18), 0 0 0 1px rgba(var(--price-accent-rgb), .08);
}

.price-tool-card:focus-visible {
  outline: 3px solid rgba(var(--price-accent-rgb), .32);
  outline-offset: 3px;
}

.price-tool-featured {
  grid-column: span 6;
  min-height: 315px;
  padding: 1.6rem;
}

.price-card-petrol {
  --price-accent: #34d399;
  --price-accent-rgb: 52, 211, 153;
}

.price-card-currency {
  --price-accent: #fbbf24;
  --price-accent-rgb: 251, 191, 36;
}

.price-card-diesel {
  --price-accent: #a78bfa;
  --price-accent-rgb: 167, 139, 250;
}

.price-card-lpg {
  --price-accent: #60a5fa;
  --price-accent-rgb: 96, 165, 250;
}

.price-card-electricity {
  --price-accent: #fb923c;
  --price-accent-rgb: 251, 146, 60;
}

.price-card-glow {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--price-accent-rgb), .2), transparent 68%);
  transition: transform .35s ease;
  pointer-events: none;
}

.price-tool-card:hover .price-card-glow {
  transform: scale(1.18);
}

.price-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.price-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(var(--price-accent-rgb), .28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--price-accent-rgb), .2), rgba(var(--price-accent-rgb), .06));
  color: var(--price-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.price-card-icon svg {
  width: 25px;
  height: 25px;
}

.price-card-badge {
  padding: .32rem .58rem;
  border: 1px solid rgba(var(--price-accent-rgb), .24);
  border-radius: 999px;
  background: rgba(var(--price-accent-rgb), .08);
  color: var(--price-accent);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .04em;
  white-space: nowrap;
}

.price-card-kicker {
  position: relative;
  z-index: 1;
  color: var(--price-accent);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.price-tool-card h3 {
  position: relative;
  z-index: 1;
  margin: .38rem 0 .55rem;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.price-tool-featured h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.price-tool-card p {
  position: relative;
  z-index: 1;
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.7;
}

.price-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}

.price-card-meta span {
  padding: .28rem .5rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface2);
  color: var(--muted);
  font-size: .61rem;
}

.price-card-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.15rem;
  color: var(--price-accent);
  font-size: .75rem;
  font-weight: 750;
}

.price-card-action span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(var(--price-accent-rgb), .25);
  border-radius: 50%;
  background: rgba(var(--price-accent-rgb), .08);
  transition: transform .25s ease, background .25s ease;
}

.price-tool-card:hover .price-card-action span {
  transform: translate(2px, -2px);
  background: rgba(var(--price-accent-rgb), .16);
}

.prices-about {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) 1.25fr;
  gap: 3rem;
  align-items: start;
  padding-top: 3.2rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border);
}

.prices-about p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

html.theme-light .price-tool-card {
  background:
    linear-gradient(145deg, rgba(var(--price-accent-rgb), .09), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

html.theme-light .price-tool-card:hover {
  box-shadow: 0 22px 52px rgba(15, 23, 42, .12), 0 0 0 1px rgba(var(--price-accent-rgb), .08);
}

@media (max-width: 900px) {
  .price-tool-card,
  .price-tool-featured {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .prices-hero {
    padding-bottom: 3.4rem;
  }

  .prices-tools {
    padding-top: 2.5rem;
  }

  .section-heading {
    align-items: start;
  }

  .price-tool-card,
  .price-tool-featured {
    grid-column: 1 / -1;
    min-height: 255px;
    padding: 1.25rem;
  }

  .prices-about {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-tool-card,
  .price-card-glow,
  .price-card-action span {
    transition: none;
  }
}
