/* ===== SuperCosts homepage (redesign Oct 2026) ===== */
.hp {
  --hp-teal: #2ec4b6;
  --hp-teal-dark: #0f8f84;
  --hp-ink: #1b2333;
  --hp-muted: #5d6677;
  --hp-line: #e6ebef;
  --hp-soft: #f3faf9;
  --hp-amber: #ffb547;
  --hp-radius: 16px;
  color: var(--hp-ink);
  overflow: hidden;
}
.hp a {
  text-decoration: none;
}
.hp .container {
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Hero ---------- */
.hp-hero {
  position: relative;
  padding: 120px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.10) 0, rgba(255, 255, 255, 0) 35%),
    linear-gradient(135deg, #0b7f76 0%, #16a99c 45%, #2ec4b6 75%, #5fd9cd 100%);
}
.hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}
.hp-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.hp-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.hp-hl {
  color: #fff6d6;
  background: linear-gradient(transparent 62%, rgba(255, 181, 71, 0.55) 62%);
  white-space: nowrap;
}
.hp-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
  margin: 0 0 26px;
}

/* Search */
.hp-search {
  position: relative;
  max-width: 580px;
  z-index: 20;
}
.hp-search form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 18px 40px rgba(6, 60, 55, 0.28);
}
.hp-search-icon {
  color: #8a94a6;
  flex: 0 0 auto;
}
.hp-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 12px 12px;
  font-size: 1rem;
  color: var(--hp-ink);
  background: transparent;
}
.hp-search input::-webkit-search-cancel-button {
  display: none;
}
.hp-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--hp-ink);
  cursor: pointer;
  transition: background 0.2s ease;
}
.hp-search button:hover {
  background: #000;
}
.hp-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(15, 30, 45, 0.18);
  overflow: hidden;
  color: var(--hp-ink);
}
.hp-search-results ul {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.hp-search-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--hp-ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.hp-search-results a small {
  color: var(--hp-teal-dark);
  font-weight: 600;
  font-size: 0.8rem;
}
.hp-search-results a.is-active,
.hp-search-results a:hover {
  background: var(--hp-soft);
}
.hp-search-note {
  margin: 0;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--hp-muted);
}
.hp-search-note a {
  color: var(--hp-teal-dark);
  font-weight: 600;
}

.hp-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.88rem;
}
.hp-quick span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.hp-quick a {
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 500;
  transition: background 0.2s ease;
}
.hp-quick a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Hero art */
.hp-hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 8px 0;
}
.hp-ticket {
  position: relative;
  transform: rotate(-4deg);
  width: 250px;
  padding: 26px 20px;
  text-align: center;
  background: #fff;
  color: var(--hp-ink);
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(6, 60, 55, 0.3);
  border: 2px dashed var(--hp-teal);
}
.hp-ticket::before,
.hp-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: #3fcbbe;
}
.hp-ticket::before {
  left: -15px;
}
.hp-ticket::after {
  right: -15px;
}
.hp-ticket span {
  display: block;
}
.hp-ticket-top,
.hp-ticket-bottom {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hp-muted);
}
.hp-ticket-big {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--hp-teal-dark);
  line-height: 1.15;
  margin: 4px 0;
}
.hp-float {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(6, 60, 55, 0.22);
  color: var(--hp-ink);
  min-width: 0;
  animation: hp-bob 6s ease-in-out infinite;
}
.hp-float-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 460px;
}
.hp-float:nth-child(2) { animation-delay: -1.5s; }
.hp-float:nth-child(3) { animation-delay: -3s; }
.hp-float:nth-child(4) { animation-delay: -4.5s; }
.hp-float img,
.hp-float .hp-logo-fallback {
  border-radius: 10px;
  background: #fff;
  flex: 0 0 auto;
}
.hp-float strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hp-teal-dark);
}
.hp-float span {
  display: block;
  font-size: 0.78rem;
  color: var(--hp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-float > div {
  min-width: 0;
}
@keyframes hp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hp-float { animation: none; }
}

/* Stats */
.hp-stats {
  list-style: none;
  margin: 46px 0 0;
  padding: 22px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--hp-radius) var(--hp-radius) 0 0;
  box-shadow: 0 -8px 30px rgba(6, 60, 55, 0.08);
}
.hp-stats li {
  text-align: center;
  padding: 4px 10px;
  border-right: 1px solid var(--hp-line);
}
.hp-stats li:last-child {
  border-right: 0;
}
.hp-stats strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hp-ink);
}
.hp-stats span {
  font-size: 0.85rem;
  color: var(--hp-muted);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.hp-section {
  padding: 64px 0;
}
.hp-soft {
  background: var(--hp-soft);
}
.hp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.hp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hp-teal-dark);
  margin-bottom: 6px;
}
.hp h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--hp-ink);
  letter-spacing: -0.3px;
}
.hp-head-link {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hp-teal-dark);
  white-space: nowrap;
}
.hp-head-link:hover {
  color: var(--hp-ink);
}

/* Buttons */
.hp-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--hp-teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hp-btn:hover {
  background: var(--hp-teal-dark);
  transform: translateY(-1px);
}
.hp-btn-dark {
  background: var(--hp-ink);
  padding: 12px 22px;
}
.hp-btn-dark:hover {
  background: #000;
}

/* Categories */
.hp-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.hp-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px 12px 18px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  color: var(--hp-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hp-cat:hover {
  transform: translateY(-4px);
  border-color: var(--hp-teal);
  box-shadow: 0 14px 28px rgba(15, 30, 45, 0.08);
  color: var(--hp-ink);
}
.hp-cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hp-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.hp-cat-letter {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hp-teal-dark);
}
.hp-cat-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}
.hp-cat-count {
  font-size: 0.8rem;
  color: var(--hp-muted);
}

/* Deals */
.hp-deals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hp-deal {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hp-deal:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 30, 45, 0.08);
}
.hp-deal-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-deal-logo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--hp-line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}
.hp-deal-store {
  min-width: 0;
}
.hp-deal-store a {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--hp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-deal-store a:hover {
  color: var(--hp-teal-dark);
}
.hp-deal-store span {
  display: block;
  font-size: 0.78rem;
  color: var(--hp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-deal-offer {
  margin: 16px 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--hp-teal-dark);
  line-height: 1.2;
}
.hp-deal-desc {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--hp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.hp-deal-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--hp-line);
}
.hp-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1c9a60;
}
.hp-verified em {
  font-style: normal;
  color: var(--hp-muted);
  font-weight: 500;
}

/* Popular stores */
.hp-stores {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.hp-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  color: var(--hp-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hp-store:hover {
  transform: translateY(-4px);
  border-color: var(--hp-teal);
  box-shadow: 0 14px 28px rgba(15, 30, 45, 0.08);
  color: var(--hp-ink);
}
.hp-store-logo {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hp-store-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}
.hp-store-codes {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-teal-dark);
  background: var(--hp-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.hp-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--hp-soft);
  color: var(--hp-teal-dark);
  font-weight: 800;
  font-size: 1.3rem;
}

/* How it works */
.hp-how {
  padding-top: 24px;
}
.hp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}
.hp-steps li {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 26px 24px;
}
.hp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a99c, #2ec4b6);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.hp-steps h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--hp-ink);
}
.hp-steps p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

/* A-Z */
.hp-az {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 22px;
  padding: 36px;
}
.hp-az-text p {
  color: var(--hp-muted);
  margin: 10px 0 20px;
  line-height: 1.6;
}
.hp-az-letters {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}
.hp-az-letters a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  background: var(--hp-soft);
  color: var(--hp-ink);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.hp-az-letters a:hover {
  background: var(--hp-teal);
  color: #fff;
}

/* Blog */
.hp-blogs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.hp-blog {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  overflow: hidden;
  color: var(--hp-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-blog:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 30, 45, 0.08);
  color: var(--hp-ink);
}
.hp-blog-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--hp-soft);
}
.hp-blog-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1 1 auto;
}
.hp-blog-date {
  font-size: 0.78rem;
  color: var(--hp-muted);
  font-weight: 600;
}
.hp-blog-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-blog-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hp-teal-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hp-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .hp-hero-grid { grid-template-columns: 1fr; }
  .hp-hero-art { display: none; }
  .hp-hero { padding-top: 100px; }
  .hp-az { grid-template-columns: 1fr; padding: 28px; }
  .hp-blogs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hp-section { padding: 48px 0; }
  .hp-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hp-deals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hp-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .hp-stats li:nth-child(2) { border-right: 0; }
  .hp-az-letters { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hp-hero { padding-top: 92px; }
  .hp-hero h1 { font-size: 1.85rem; }
  .hp-hl { white-space: normal; }
  .hp-lead { font-size: 0.98rem; }
  .hp-search form { padding-left: 12px; }
  .hp-search button { padding: 11px 14px; }
  .hp-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-deals { grid-template-columns: 1fr; }
  .hp-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-blogs { grid-template-columns: 1fr; }
  .hp-az-letters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hp-stats strong { font-size: 1.3rem; }
}
