html {
  scroll-behavior: auto !important;
}

/* Parkrunner Info Stat Bar */
.parkrunner-info {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem auto 2rem auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.parkrunner-info h3 {
  margin: 0 0 1.5rem 0;
  color: var(--black-color);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.parkrunner-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.parkrunner-info .info-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.parkrunner-info .info-label {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.parkrunner-info .info-value {
  font-size: 1.2rem;
  color: var(--black-color);
  font-weight: 700;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
  .hero-section {
    padding: 1rem 2rem 0.5rem 2rem;
  }

  .hero-text {
    font-size: 3rem;
    line-height: 3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 4;
  }

  .parkrunner-info {
    margin: 0.5rem auto 1rem auto;
    padding: 1rem;
  }

  .parkrunner-info .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .parkrunner-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
}

.hero-section {
  width: 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='25' height='25' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.15)' id='pattern-circle' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e");
  background-repeat: repeat;
  background-size: 20px 20px;
  background-position: 0 0;
  opacity: 1;
  z-index: 3;
  padding: 7rem 4rem 1rem 4rem;
  position: relative;
  min-height: auto;
}

.hero-section::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 80%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  opacity: 1;
  z-index: 2;
}

.hero-text {
  font-size: 5rem;
  line-height: 5rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--black-color);
  font-weight: 600;
  text-align: center;
  width: 100%;
  z-index: 3;
  position: relative;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.hero-subtext {
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--black-color);
  font-weight: 400;
  text-align: center;
  width: 100%;
  z-index: 4;
  position: relative;
  margin-top: 2rem;
}

.giant-search-wrapper {
  width: 100%;
  display: flex;
  padding: 3rem 3rem 0;
  z-index: 3;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.giant-search {
  --giant-search-accent: var(--color);
  --giant-search-accent-rgb: var(--color-rgb);
  width: 100%;
  max-width: 500px;
  border-radius: 50px;
  height: 6rem;
  background: #fff;
  outline: none;
  border: 3px solid #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
  position: relative;
  transition: 0.3s;
  display: flex;
  align-content: center;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 2px;
  gap: 2px;
}

.giant-search input {
  text-align: center;
  letter-spacing: 1rem;
  font-size: 2.5rem;
  font-weight: 500;
  color: #000;
  height: 100%;
  border-radius: 25px 0 0 25px;
  width: 100%;
  border: 0px;
  outline: none;
  text-transform: uppercase;
}

.giant-search-button {
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--giant-search-accent) !important;
  color: var(--white-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.3rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  position: relative;
}

.giant-search-button #search-ico,
.giant-search-button #load-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.giant-search-button #search-ico[style*='display:none'],
.giant-search-button #search-ico[style*='display: none'],
.giant-search-button #load-ico[style*='display:none'],
.giant-search-button #load-ico[style*='display: none'] {
  display: none !important;
}

.giant-search-button:hover {
  font-weight: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  font-size: 1.6rem;
}

.giant-search:hover input {
  color: var(--giant-search-accent);
  font-weight: 600;
}

.giant-search input:focus {
  color: var(--giant-search-accent);
}

.giant-search:focus-within {
  color: var(--giant-search-accent);
  font-weight: 600;
  outline: 2px solid var(--giant-search-accent);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.giant-search.giant-search--invalid {
  --giant-search-accent: var(--error-color);
  --giant-search-accent-rgb: var(--error-color-rgb);
  outline: 2px solid var(--error-color);
  border-color: rgba(var(--error-color-rgb), 0.45);
  box-shadow:
    0 0 0 3px rgba(var(--error-color-rgb), 0.12),
    0 0 16px rgba(var(--error-color-rgb), 0.18);
}

.giant-search-button.giant-search-button--invalid {
  background: var(--error-color) !important;
  color: var(--white-color);
}

@-moz-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

.arrow {
  width: 40px;
  height: 40px;
  color: var(--black-color);
  font-size: 3rem;
}

.bounce {
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

/* Total searches line (count from cached Searches aggregate; see utils/searchCountCache.js) */
/* 20px below the search input: wrapper has no bottom padding, so margin-top is the gap */
.parkrun-search-counter {
  margin: 10px auto 0;
  padding: 0 1rem 10px;
  max-width: min(36rem, 100%);
  text-align: center;
  font-size: clamp(0.78rem, 1.85vw, 0.92rem);
  line-height: 1.45;
  color: var(--black-color, #1a1a1a);
  position: relative;
  z-index: 4;
}

.parkrun-search-counter__suffix {
  font-weight: 600;
}

.parkrun-search-counter__num--gradient {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.02em;
  background-image: linear-gradient(
    90deg,
    var(--color) 0%,
    var(--color-alt) 22%,
    var(--color) 44%,
    var(--color-alt) 66%,
    var(--color) 88%,
    var(--color-alt) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: parkrun-search-counter-gradient 7s linear infinite;
}

@keyframes parkrun-search-counter-gradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

.recent-searches-wrapper {
  width: 100%;
  display: flex;
  /* padding: 2rem; */
  position: relative;
  z-index: 4;
  flex-direction: column;
  gap: 0.35rem;
  /* margin-top: 2rem; */
  align-items: center;
}

/* No layout row when there are no badges — keeps empty CTA same distance from counter as the heading row */
.recent-searches-badges:empty {
  display: none;
}

.recent-searches-title {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: var(--black-color);
  font-weight: 600;
}

/* Shown only when localStorage has at least one saved ID (class toggled in landing.js) */
.recent-searches-wrapper:not(.recent-searches-wrapper--has-history) > .recent-searches-title {
  display: none;
}

.recent-searches-badges {
  padding: 0 2rem 1rem 2rem;
  width: 100vw;
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
}

@media (max-width: 600px) {
  .recent-searches-badges {
    justify-content: flex-start;
  }
}

.recent-searches-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem 0.5rem 1.25rem;
  min-width: 0;
  max-width: min(100vw - 2rem, 28rem);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1rem;
  border-radius: 25px;
  background-color: var(--black-color);
  color: var(--white-color);
  cursor: default;
  transition: 0.3s;
}

.recent-searches-badge__link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.recent-searches-badge__link:hover {
  text-decoration: none;
  opacity: 0.95;
}

.recent-searches-badge__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-searches-badge__name--loading {
  display: inline-block;
  background: linear-gradient(90deg, #4a4a4a 0%, #9a9a9a 50%, #4a4a4a 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: recent-searches-name-shimmer 1.25s ease-in-out infinite;
}

.active-badge .recent-searches-badge__name--loading {
  background: linear-gradient(90deg, #2a2a2a 0%, #6e6e6e 50%, #2a2a2a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes recent-searches-name-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.recent-searches-badge__name--not-found {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.active-badge .recent-searches-badge__name--not-found {
  color: rgba(17, 17, 17, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .recent-searches-badge__name--loading {
    animation: none;
    color: #6e6e6e;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

.recent-searches-badge .remove-badge {
  flex-shrink: 0;
  margin-left: auto;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1;
}

.recent-searches-badge .remove-badge:hover,
.recent-searches-badge .remove-badge:focus-visible {
  opacity: 0.85;
  outline: none;
}

.recent-searches-badge .remove-badge i {
  font-size: 1.1rem;
}

.recent-searches-badge:hover {
  transform: scale(1.05);
}

.active-badge {
  background-color: var(--color);
  color: var(--black-color);
  transform: scale(1) !important;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  justify-content: center;
  align-items: start;
  position: relative;
  z-index: 9;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  /* Remove any forcing width if necessary */
  /* max-width: 100%; */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Force consolidated grid to always have two columns */
.consolidated-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: center;
  align-items: center;
}

.product-text {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.product-title {
  width: 100%;
  text-align: left;
  color: var(--black-color);
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: 900;
}

.product-subtitle {
  font-size: 1rem;
  line-height: 1rem;
  color: var(--black-color);
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.product-button {
  width: 100%;
  background-color: var(--color);
  text-align: center;
  color: var(--black-color);
  font-weight: 700;
  padding: 1rem;
  border-radius: 50px;
  cursor: pointer;
  border: 4px solid rgba(0, 0, 0, 0);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.product-button:hover {
  border: 4px solid rgba(0, 0, 0, 0.05);
  transform: scale(1.025);
}

.product-button:active {
  border: 4px solid rgba(0, 0, 0, 0.05);
  transform: scale(0.95);
}

.skeleton-card {
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  animation: pulseskel 2s infinite;
}

.skeleton-box {
  background: #ddd;
  height: 169px;
  width: 100%;
}

.skeleton-line {
  height: 20px;
  margin: 10px 0;
  background: #ddd;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 50%;
}

.skeleton-button {
  height: 40px;
  background: #ccc;
  border-radius: 50px;
  margin-top: 1rem;
}

@keyframes pulseskel {
  0% {
    background-color: #f0f0f0;
  }

  50% {
    background-color: #e0e0e0;
  }

  100% {
    background-color: #f0f0f0;
  }
}

.remove-badge {
  font-size: 1rem;
  cursor: pointer;
  font-weight: 900;
  color: var(--white-color);
  transition: 0.1s;
}

.active-badge .remove-badge {
  color: var(--black-color);
}

.remove-badge:hover {
  font-weight: 900;
}

.first-time-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  font-size: 1.5rem;
  color: var(--black-color);
  font-weight: 800;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 99;
}

.parkrunner-details {
  width: 100%;
  max-width: 100%;
  display: flex;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  padding-bottom: 0;
  flex-direction: column;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  overflow: hidden;
}

.parkrunner-name {
  width: 100%;
  font-size: 3rem;
  font-weight: 800;
  line-height: 3rem;
  color: var(--black-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  align-content: center;
  gap: 0rem;
  margin-bottom: 0.5rem;
  flex-direction: column;
  justify-content: center;
}

.runner-flag {
  height: 3rem;
  border: 8px;
  box-shadow: 0 0 10 rgba(0, 0, 0, 0.1);
}

.parkrunner-stats {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--black-color);
  text-transform: uppercase;
}

/* Segmented stats use flex + shine from challengeTracker.css; values skip uppercase clip issues */
.parkrunner-stats--segmented .stat-value--shine {
  text-transform: none;
}

/* Award Product Cards - Lazy Loading Grid */
.awards-grid-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.awards-grid-skeleton-wrapper {
  margin-top: 1.5rem;
}

.awards-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 768px) {
  .awards-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .awards-grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem;
    padding-bottom: 4rem;
  }
}

/* Award grid cards - compact: light grey card, portrait image 50% centered, price → title → type */
.award-grid-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--foreground);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.award-grid-card:hover,
.award-grid-card.award-grid-card-visible:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.award-grid-card--feature-promo {
  border-color: rgba(255, 143, 51, 0.45);
}

/* Promo headline sits over the image; does not affect card layout flow */
.award-grid-card-image--promo-header {
  position: relative;
}

.award-grid-card-promo-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.45rem 0.75rem 0.75rem;
  text-align: left;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--foreground) 0%,
    color-mix(in srgb, var(--foreground) 82%, transparent) 65%,
    transparent 100%
  );
}

.award-grid-card-promo-header-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color);
}

.award-grid-card-promo-header-sub {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
}

.award-grid-card--feature-promo .award-grid-card-title {
  color: var(--color);
}

/* Pull promo text block up over bottom of image; image aspect unchanged. */
.award-grid-card-content--promo-overlap {
  margin-top: -60px;
  position: relative;
  z-index: 1;
  padding-top: 0.65rem;
  border-radius: 12px 12px 0 0;
  background: var(--foreground);
}

.award-grid-card--feature-promo .award-grid-card-content.award-grid-card-content--promo-overlap {
  gap: 0.35rem;
}

/* Same stack as product cards: image, then content (no overlap). Shared utility bar from progress.css */
.award-grid-card-type--promo-tracker b {
  font-weight: 700;
}

.award-grid-card--feature-promo .progress-wrapper.challenge-progress {
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  width: 100%;
  min-width: 0;
}

.award-grid-card--feature-promo .progress-title {
  font-size: 0.78rem;
}

.award-grid-card--feature-promo .progress-bar {
  min-width: 0;
}

.award-grid-card--feature-promo .award-grid-card-promo-stat {
  margin: 0.12rem 0 0;
  font-size: 0.72rem;
}

.award-grid-card-promo-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.12rem 0 0;
  width: 100%;
  min-width: 0;
}

.award-grid-card-promo-stats-row .award-grid-card-promo-stat {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  min-width: 0;
}

.award-grid-card-promo-stat--end {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

.award-grid-card--feature-promo .award-grid-card-promo-progress {
  margin: 0.2rem 0 0.05rem;
}

.award-grid-card-promo-status {
  margin: 0 0 0.35rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.award-grid-card-promo-progress--text-only {
  margin: 0.35rem 0 0.15rem;
}

.award-grid-card-promo-progress--text-only .award-grid-card-promo-stat:first-child {
  margin-top: 0;
}

.award-grid-card-feature-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color);
}

.award-grid-card-feature-subline {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.award-grid-card-feature-body {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.award-grid-card-promo-progress {
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  text-align: left;
}

.award-grid-card-promo-stat {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.award-grid-card-skeleton,
.award-grid-card-skeleton:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Image preview area - portrait aspect, image 50% size and centered, no border */
.award-grid-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.award-grid-card-image img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.award-grid-card-skeleton-image {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.award-grid-card-skeleton .award-grid-card-content {
  gap: 0.5rem;
}

.award-grid-card-skeleton .skeleton-line {
  margin: 0;
}

.award-grid-card-skeleton-price {
  width: 35%;
  height: 14px;
}

.award-grid-card-skeleton-title {
  width: 78%;
  height: 18px;
}

.award-grid-card-skeleton-type {
  width: 48%;
  height: 14px;
}

.award-grid-card-skeleton-button {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  margin-top: 0.25rem;
}

/* No image state – same-size container, centered text */
.award-grid-card-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--background-light);
}

/* Carousel – same aspect area, overflow hidden */
.award-grid-card-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.award-grid-card-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.award-grid-card-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 17%;
  box-sizing: border-box;
}

.award-grid-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  z-index: 2;
}

.award-grid-card-nav.prev {
  left: 0.75rem;
}

.award-grid-card-nav.next {
  right: 0.75rem;
}

.award-grid-card-nav:hover,
.award-grid-card-nav:focus-visible {
  background: rgba(17, 17, 17, 0.9);
}

.award-grid-card:hover .award-grid-card-nav,
.award-grid-card:focus-within .award-grid-card-nav {
  opacity: 1;
  pointer-events: auto;
}

.award-grid-card:hover .award-grid-card-nav.prev,
.award-grid-card:focus-within .award-grid-card-nav.prev {
  transform: translateY(-50%) translateX(0);
}

.award-grid-card:hover .award-grid-card-nav.next,
.award-grid-card:focus-within .award-grid-card-nav.next {
  transform: translateY(-50%) translateX(0);
}

.award-grid-card-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.6rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.award-grid-card .award-grid-card-title {
  margin: 0;
}

.award-grid-card .award-grid-card-button {
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

/* Price: "from" muted, amount bold black */
.award-grid-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 0.1rem 0;
  line-height: 1.3;
}

.award-grid-card-from {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-right: 0.25em;
}

.award-grid-card-price-now {
  margin-right: 0.35em;
}

.award-grid-card-price-was {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c62828;
  text-decoration: line-through;
  margin-left: 0.15em;
}

/* Title in accent (orange) */
.award-grid-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color);
  margin: 0;
  line-height: 1.3;
}

/* Product type: smaller black (may wrap for tagline) */
.award-grid-card-type {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
  line-height: 1.35;
}

/* Secondary: variations */
.award-grid-card-variations {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.2rem 0 0 0;
}

.award-grid-card-variation-pill {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--background-light);
  border-radius: 6px;
}

.award-grid-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.4rem 0.75rem;
  background: #fff;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.award-grid-card-button-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.award-grid-card:hover .award-grid-card-button {
  background: var(--color);
  color: var(--white-color);
  border-color: var(--color);
}

.award-grid-card:hover .award-grid-card-button-icon,
.award-grid-card:focus-within .award-grid-card-button-icon {
  transform: translateX(4px);
}

/* Lazy-load fade-in animation */
.award-grid-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.3s ease;
}

.award-grid-card-skeleton,
.award-grid-card-skeleton:hover {
  opacity: 1;
  transform: none;
}

.award-grid-card.award-grid-card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Challenge + tracker promo: persistent “hover” lift + filled CTA (must follow .award-grid-card-visible) */
.award-grid-card.award-grid-card-visible[data-award-type='challenge'],
.award-grid-card.award-grid-card-visible.award-grid-card--feature-promo {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.award-grid-card.award-grid-card-visible.award-grid-card--feature-promo {
  box-shadow: 0 8px 28px rgba(255, 143, 51, 0.22);
}

.award-grid-card.award-grid-card-visible[data-award-type='challenge'] .award-grid-card-button,
.award-grid-card.award-grid-card-visible.award-grid-card--feature-promo .award-grid-card-button {
  background: var(--color);
  color: var(--white-color);
  border-color: var(--color);
}

.award-grid-card.award-grid-card-visible[data-award-type='challenge'] .award-grid-card-button-icon,
.award-grid-card.award-grid-card-visible.award-grid-card--feature-promo
  .award-grid-card-button-icon {
  transform: translateX(4px);
}

.award-grid-empty-state {
  grid-column: 1 / -1;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  background: var(--foreground);
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.award-grid-empty-state p {
  margin: 0 0 1rem;
}

.award-grid-empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: 0.25rem;
}

/* Award Chips */
.awards-chips-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-top: 1rem;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.awards-chips-container::-webkit-scrollbar {
  display: none;
}

.award-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--foreground);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  font-family: inherit;
}

.award-chip i {
  color: inherit;
}

.award-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Filter chip active state */
.award-chip.filter-chip.active {
  background: var(--color);
  color: var(--white-color);
  box-shadow: 0 4px 12px rgba(var(--color-rgb), 0.4);
}

.award-chip.filter-chip.active i {
  color: var(--white-color);
}

/* Unselected filter chips use light styling; type-specific dark styles apply only when not filter chips */
.award-chip.filter-chip:not(.active) {
  background-color: var(--foreground);
  color: var(--text-color);
}

.award-chip.filter-chip:not(.active) i {
  color: var(--text-color);
}

.award-chip i {
  font-size: 1rem;
}

.challenge-chip:not(.filter-chip),
.milestone-chip:not(.filter-chip),
.legend-chip:not(.filter-chip) {
  background-color: var(--color);
  color: var(--black-color);
}

.challenge-chip:not(.filter-chip) i,
.legend-chip:not(.filter-chip) i {
  color: var(--black-color);
}

/* Custom shine effect for award chips with animation delay support */
.award-chip.shine:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 40px;
  height: 100%;
  opacity: 1;
  background: rgba(255, 255, 255, 0);
  filter: blur(10px);
  transform: skewX(-30deg);
  animation-name: chipShine;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-delay: var(--shine-delay, 0s);
  animation-iteration-count: infinite;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.13) 77%,
    rgba(255, 255, 255, 0.5) 92%,
    rgba(255, 255, 255, 0) 100%
  );
}

@keyframes chipShine {
  0% {
    left: -100px;
    top: 0;
  }
  30% {
    left: 100%;
    top: 0;
  }
  100% {
    left: 100%;
    top: 0;
  }
}

/* Awards carousel navigation buttons */
.awards-carousel .swiper-button-prev.awards-prev,
.awards-carousel .swiper-button-next.awards-next {
  background: var(--color) !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  color: white !important;
  margin-top: -20px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute;
  flex-shrink: 0;
  top: 50%;
  z-index: 10;
}

.awards-carousel .swiper-button-prev.awards-prev {
  left: 10px;
}

.awards-carousel .swiper-button-next.awards-next {
  right: 10px;
}

.awards-carousel .swiper-button-prev.awards-prev::after,
.awards-carousel .swiper-button-next.awards-next::after {
  display: none !important;
  content: none !important;
  font-size: 0 !important;
}

.awards-carousel .swiper-button-prev.awards-prev i,
.awards-carousel .swiper-button-next.awards-next i {
  font-size: 20px;
  color: white;
  display: block;
  line-height: 1;
  margin: 0;
}

.awards-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 1.5rem;
  text-align: center;
}

.awards-pagination .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
  margin: 0 4px;
}

.awards-pagination .swiper-pagination-bullet-active {
  background: var(--color);
  opacity: 1;
}

.award-product-card {
  display: flex;
  flex-direction: column;
  background: var(--background-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  background: #fff;
  animation: cardFadeIn 0.6s ease-out backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.award-product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.award-product-card:nth-child(2) {
  animation-delay: 0.2s;
}
.award-product-card:nth-child(3) {
  animation-delay: 0.3s;
}
.award-product-card:nth-child(4) {
  animation-delay: 0.4s;
}
.award-product-card:nth-child(5) {
  animation-delay: 0.5s;
}
.award-product-card:nth-child(6) {
  animation-delay: 0.6s;
}
.award-product-card:nth-child(n + 7) {
  animation-delay: 0.7s;
}

.award-product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color);
}

.award-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
}

.award-card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.award-product-card:hover .award-card-image-wrapper::after {
  left: 100%;
}

.award-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.award-product-card:hover .award-card-image {
  transform: scale(1.1);
}

.award-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.award-product-card:hover .award-card-overlay {
  opacity: 1;
}

.award-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: all 0.3s ease;
}

.award-product-card:hover .award-card-badge {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.award-card-badge i {
  font-size: 1.5rem;
  color: var(--color);
}

.milestone-card .award-card-badge i {
  color: var(--black-color);
}

.challenge-card .award-card-badge {
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
}

.challenge-card .award-card-badge i {
  color: white;
}

.legend-card .award-card-badge {
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
}

.legend-card .award-card-badge i {
  color: white;
}

.award-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.award-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.award-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.award-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.award-card-cta::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  transition: width 0.3s ease;
}

.award-product-card:hover .award-card-cta::before {
  width: 100%;
}

.award-product-card:hover .award-card-cta {
  color: var(--color-alt);
  transform: translateX(4px);
}

.award-card-cta i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.award-product-card:hover .award-card-cta i {
  transform: translateX(4px);
}

/* Responsive adjustments for awards carousel */
@media (max-width: 768px) {
  .awards-carousel {
    padding: 1.5rem 1rem;
  }

  .awards-container .product-card-image {
    height: 180px;
  }

  .awards-container .product-card-content {
    padding: 1.25rem;
  }

  .awards-container .product-card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .awards-carousel {
    padding: 1rem 0.5rem;
  }

  .awards-container .product-card-image {
    height: 200px;
  }

  .awards-container .product-card-content {
    padding: 1rem;
  }
}

.rotating-text {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px var(--background);

  p {
    display: inline-flex;
    margin: 0;
    width: 100%;
    vertical-align: top;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;

    .word {
      position: absolute;
      display: flex;
      opacity: 0;

      .letter {
        transform-origin: center center 25px;

        &.out {
          transform: rotateX(90deg);
          transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
        }
        &.in {
          transition: 0.38s ease;
        }
        &.behind {
          transform: rotateX(-90deg);
        }
      }
    }
  }
}

.alizarin {
  color: #e74c3c;
}

.wisteria {
  color: #8e44ad;
}

.peter-river {
  color: #3498db;
}

.emerald {
  color: #2ecc71;
}

.sun-flower {
  color: #f1c40f;
}

.split-text {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.center-lock {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.glow-an {
  -webkit-animation: glow 2s infinite;
  animation: glow 2s infinite;
}

@-webkit-keyframes glow {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(var(--giant-search-accent-rgb), 0.7);
    box-shadow: 0 0 0 0 rgba(var(--giant-search-accent-rgb), 0.7);
  }

  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--giant-search-accent-rgb), 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.no-completions {
  max-width: 1000px;
  margin-left: 50%;
  position: relative;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  font-size: 3rem;
  line-height: 4rem;
  color: #000;
  font-weight: 600;
  opacity: 0.6;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.product-image {
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 100%;
  min-height: 376px;
  /* overflow: hidden; */
  animation: pulseskel 1.5s infinite;
}

.product-grid-container {
  position: relative;
}

@keyframes vibe {
  0% {
    opacity: 0.15;
    left: -100%;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.15;
    left: 0;
  }
}

.hero-spice-wrapper {
  width: 100%;
  position: absolute;
  top: 0;
  aspect-ratio: 1/1;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-content: center;
}

.hero-enhance {
  width: 100%;
  opacity: 0.05;
  z-index: 3;
  position: absolute;
  top: 0;
  left: 0;
  /* Initial transform is now handled by animation */
}

.hero-enhance-also {
  width: 100%;
  opacity: 0.1;
  z-index: 3;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-centerer {
  position: relative;
  width: 50%;
}

/* Apply the constant animation */
.hero-enhance {
  transition: transform 0.1s ease-out;
  will-change: transform;
  animation: rotateScale 100s linear infinite;
}
/* Apply the constant animation */
.hero-enhance-also {
  transition: transform 0.1s ease-out;
  will-change: transform;
  animation: rotateScale 120s linear infinite;
}

/* Keyframes for continuous rotation and scaling */
@keyframes rotateScale {
  0% {
    transform: scale(1.2) rotate(0deg);
  }

  50% {
    transform: scale(1.3) rotate(180deg);
  }

  100% {
    transform: scale(1.2) rotate(360deg);
  }
}

.product-grid-filters {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  position: relative;
  z-index: 9;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
}

.product-grid-filter {
  padding: 0.5rem 2rem;
  display: flex;
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--black-color);
  color: var(--white-color);
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  transition: 0.1s;
}

.product-grid-filter:hover {
  opacity: 0.9;
}

.product-grid-filter-active {
  background-color: var(--color);
  color: var(--black-color);
}

.product-grid-container {
  position: relative;
  z-index: 9;
}

.product-grid-placeholder {
  position: relative;
  z-index: 9;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 2rem;
}

.product-grid-placeholder p {
  font-size: 2rem;
}

.breathing-icon {
  display: inline-block;
  background-color: var(--color);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  font-size: 2rem;
  font-weight: 1000;
  animation: breathing 2s infiniteease-in-out;
  justify-content: center;
  align-items: center;
}

.breathing-icon i {
  color: black;
  font-size: 2rem;
}

/* Keyframes for breathing animation */
@keyframes breathing {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.pulse {
  animation: pulseAnimation 1s ease;
}

.toast-message.error {
  background: var(--error-color);
  color: var(--white-color);
  border: 1px solid rgba(var(--error-color-rgb), 0.35);
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.loading-parkrunner-name-flag-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#flag-container {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.skelton-flag {
  width: 3.4rem;
  height: 2.4rem;
  border-radius: 8px;
}

/* Small devices (phones, less than 600px) */
@media only screen and (max-width: 599px) {
  .giant-search-wrapper {
    width: 100%;
    display: flex;
    padding: 0rem;
    z-index: 3;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  .recent-searches-wrapper {
    width: 100%;
    display: flex;
    padding: 0rem;
    position: relative;
    z-index: 4;
    flex-direction: column;
    gap: 0.5rem;
    /* Spacing from hero search is handled by .parkrun-search-counter padding */
    margin-top: 0;
  }
}

/* Medium devices (tablets, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 1023px) {
}

/* Large devices (desktops, 1024px and up) */
@media only screen and (min-width: 1024px) {
}

.skele-flag-wrap {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.skele-stat-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.logo-page-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/run-anim-white.gif');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 300px;
  z-index: 999;
  display: none;
}

.rotating-text p {
  gap: 1rem;
}

.linear-wipe div {
  text-align: center;
  background: linear-gradient(
    to right,
    var(--color-alt) 20%,
    var(--color) 40%,
    var(--color) 60%,
    var(--color-alt) 80%
  );
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-animation: textshiner 3s linear infinite;
  animation: textshiner 3s linear infinite;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

@-webkit-keyframes textshiner {
  to {
    background-position: 200% center;
  }
}

@keyframes textshiner {
  to {
    background-position: 200% center;
  }
}

#animation-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  z-index: 999;
}

.box {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  will-change: transform;
  z-index: 10;
  background-size: contain;
  background-image: url(/assets/images/machine.png);
}

.item,
.rect,
.particle {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.item {
  width: 40px;
  height: 60px;
  background: #000;
  z-index: 9;
  border-radius: 4px;
}

.rect {
  width: 100px;
  height: 125px;
  background: var(--color);
  border-radius: 4px;
  z-index: 9;
  opacity: 0;
  background-image: url(/assets/images/default-image.png);
  background-size: cover;
}

.particle {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  z-index: 15;
}

/* Image Reveal Section */
.image-reveal-section {
  padding: 4rem 0;
  background: var(--background);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-reveal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.image-reveal-card {
  background: var(--background-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  overflow: clip;
}

.image-reveal-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.image-reveal-animation {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-image-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-image {
  position: relative;
  width: 100%;
  max-height: 350px;
  border-radius: 10px;
  overflow: hidden;
  will-change: clip-path;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Initial state - clipped from right with visible wave edge */
  /* Wave will be animated via JavaScript */
  clip-path: polygon(
    100% 0%,
    90% 0%,
    88% 2%,
    85% 5%,
    88% 10%,
    90% 15%,
    88% 20%,
    85% 25%,
    88% 30%,
    90% 35%,
    88% 40%,
    85% 45%,
    88% 50%,
    90% 55%,
    88% 60%,
    85% 65%,
    88% 70%,
    90% 75%,
    88% 80%,
    85% 85%,
    88% 90%,
    90% 95%,
    88% 98%,
    90% 100%,
    100% 100%
  );
}

.cover-image img {
  width: 100%;
  height: auto;
  min-height: 250px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.image-reveal-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.image-reveal-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.image-reveal-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.image-reveal-description code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--text-color);
}

/* Responsive adjustments for image reveal section */
@media (max-width: 968px) {
  .image-reveal-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .image-reveal-text {
    text-align: left;
  }

  .image-reveal-heading {
    text-align: left;
  }

  .image-reveal-description {
    text-align: justify;
  }

  .image-reveal-card {
    min-height: auto;
  }
}

@media (min-width: 769px) and (max-width: 968px) {
  .cover-image img {
    width: 100%;
    height: auto;
    min-height: 250px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .image-reveal-section {
    padding: 2rem 0;
  }

  .image-reveal-container {
    padding: 0 1rem;
  }

  .image-reveal-card {
    padding: 2rem 1.5rem;
  }

  .image-reveal-heading {
    font-size: 2rem;
  }

  .image-reveal-description {
    font-size: 1rem;
  }

  .cover-image img {
    width: 100%;
    height: 100px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }
}

/* 3D Product Carousel Section */
.product-3d-carousel-section {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  min-height: 450px;
  overflow: hidden;
  background: transparent;
  margin: 0;
  cursor: default;
  z-index: 0;
  pointer-events: none; /* Always disabled - no interaction needed */
}

@media (max-width: 768px) {
  .product-3d-carousel-section {
    height: 50vh !important;
    opacity: 0.8;
    min-height: 600px;
  }
}

.product-3d-carousel-section.move {
  cursor: grabbing;
}

.viewport-3d {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80vh;
  will-change: transform;
  opacity: 0.6;
}

.wrapper-3d {
  position: relative;
  height: 100%;
  width: 100%;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.wrapper-3d:not(.is-ready) {
  opacity: 0.55;
}

.wrapper-3d.is-ready {
  opacity: 1;
}

.media-3d {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform;
  opacity: 1;
  transition: opacity 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
  color: inherit;
  text-decoration: none;
}

.media-3d.media-hidden {
  opacity: 0;
}

.media-3d .bg-3d {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  /* overflow: hidden; */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-3d picture,
.media-3d img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.media-3d img {
  object-fit: contain;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.15));
  -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.15));
}

.media-3d--alphabeteer-tracker .bg-3d {
  position: relative;
}

.media-3d-alphabeteer-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.65rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
  border-radius: 0 0 20px 20px;
}

.media-3d-alphabeteer-pct {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Ensure search wrapper appears above carousel */
.giant-search-wrapper {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  .product-3d-carousel-section {
    height: 100vh;
    min-height: 600px;
  }

  .viewport-3d {
    height: 80vh;
  }

  .media-3d .title-3d {
    font-size: 2.5em;
  }

  .media-3d .description-3d {
    font-size: 0.8em;
    right: 1em;
    bottom: 1em;
    padding: 0.4em 0.6em;
  }
}

/* How It Works Section */
.how-it-works-section {
  padding: 2rem 0;
  background: var(--background);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 600px; */
}

.how-it-works-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.how-it-works-card {
  background: var(--background-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  /* overflow: hidden; */
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.how-it-works-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.how-it-works-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.how-it-works-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how-it-works-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.how-it-works-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.how-it-works-animation {
  position: absolute;
  height: 50vh;
  /* overflow: hidden; */
  clip-path: polygon(-50% -50%, 150% -50%, 150% 100%, -50% 100%);
  margin-inline: auto;
  margin-block-start: -5%;
  width: min(100%, 450px); /* Reduced width for less space between cards */
  bottom: -3rem;
  right: 0;
}

.animated-cards-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-card {
  position: absolute;
  width: 100%;
  max-width: 280px; /* Increased from 200px */
  height: 320px; /* Increased from 250px */
  background: var(--background-light); /* Solid background */
  border: 2px solid rgba(255, 162, 92, 0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  /* Start below - will be animated by GSAP */
  transform: translate(0, 50%) rotate(0deg);
  transform-origin: bottom center; /* Rotate around bottom center */
  will-change: transform, opacity;
  pointer-events: auto; /* Ensure cards can be interacted with if needed */
  cursor: pointer; /* Show pointer cursor to indicate interactivity */
  transition: box-shadow 0.3s ease; /* Smooth shadow transition on hover */
}

.animated-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Increased gap for better spacing */
  text-align: center;
  width: 100%;
  padding: 0.5rem; /* Add padding for better text spacing */
}

.card-icon {
  width: 70px; /* Increased from 60px */
  height: 70px; /* Increased from 60px */
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem; /* Increased from 1.75rem */
  box-shadow: 0 4px 12px rgba(255, 162, 92, 0.3);
}

.animated-card h4 {
  font-size: 1.35rem; /* Increased for better readability */
  font-weight: 700; /* Bolder for better contrast */
  color: var(--text-color);
  margin: 0 0 0.5rem 0; /* Add margin below heading */
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* Subtle shadow for readability */
}

.animated-card p {
  font-size: 1rem; /* Increased for better readability */
  color: var(--text-color); /* Changed from muted to full color for better contrast */
  margin: 0;
  line-height: 1.6;
  font-weight: 500; /* Slightly bolder */
}

/* Cards are all stacked in the same position and will rotate around bottom center */
.animated-card {
  left: 50%;
  /* GSAP will handle centering with xPercent: -50 */
  /* Cards will all be at the same position and rotate around bottom center */
}

.card-1 {
  z-index: 1;
}
.card-2 {
  z-index: 2;
}
.card-3 {
  z-index: 4;
}
.card-4 {
  z-index: 2;
}

/* Responsive adjustments for how it works section */

/* Mobile Responsive for How It Works */
@media (max-width: 968px) {
  .how-it-works-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Hide cards animation on tablet and mobile */
  .how-it-works-animation {
    display: none;
  }
}

@media (max-width: 768px) {
  .how-it-works-section {
    padding: 2rem 0;
    min-height: auto;
  }

  .how-it-works-container {
    padding: 0 1rem;
  }

  .how-it-works-card {
    padding: 2rem 1.5rem;
  }

  .how-it-works-heading {
    font-size: 2rem;
  }

  .how-it-works-description {
    font-size: 1rem;
  }

  /* Hide cards animation on mobile */
  .how-it-works-animation {
    display: none;
  }

  .feature-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .feature-text h3 {
    font-size: 1rem;
  }

  .feature-text p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .how-it-works-steps {
    gap: 1rem;
  }

  .step-card {
    padding: 1.25rem;
  }
}

/* Product Carousel Section — panel + dot grid (FAQ-style treatment) */
.product-carousel-section {
  padding: 4rem 0;
  background: linear-gradient(
    180deg,
    var(--background) 0%,
    var(--background-light) 90%,
    var(--background) 100%
  );
  margin: 4rem clamp(0.75rem, 3vw, 2rem) 0;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  z-index: 1;
}

.product-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='25' height='25' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.15)' id='pattern-circle' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e");

  background-repeat: repeat;
  background-size: 20px 20px;
  background-position: 0 0;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.product-carousel-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 100%);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .product-carousel-section.is-head-reveal-pending .carousel-title,
  .product-carousel-section.is-head-reveal-pending .carousel-subtitle {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}

.carousel-container {
  max-width: 100%;
  margin: 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .carousel-container {
    padding: 0;
  }
}

/* Landing FAQ (below challenges carousel — panel matches product-carousel / FAQ export style) */
.landing-faq-section {
  margin: 3rem clamp(0.75rem, 3vw, 2rem) 2rem;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--background) 0%,
    var(--background-light) 88%,
    var(--background) 100%
  );
  z-index: 1;
}

.landing-faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='25' height='25' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.12)' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e");
  background-repeat: repeat;
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.landing-faq-section::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 100%);
  pointer-events: none;
  z-index: 0;
}

.landing-faq-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
}

.landing-faq-section .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-faq-title {
  width: 100%;
  text-align: center;
  font-size: clamp(2.25rem, 8vw, 4rem);
  font-weight: 800;
  margin: 0;
  padding: 0 1.5rem 0.5rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
}

.landing-faq-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  margin-top: 1rem;
}

.landing-faq-search {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-faq-searcher {
  flex: 1 1 240px;
  max-width: 480px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  background: rgba(244, 244, 244, 0.45);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-faq-searcher:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 162, 92, 0.28);
}

.landing-faq-search-button {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-color);
  background: var(--color);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.landing-faq-search-button:hover {
  filter: brightness(1.04);
}

mark.landing-faq-search-highlight {
  background: transparent;
  color: var(--error-color);
  font-weight: 700;
  padding: 0 0.05em;
}

.landing-faq-questions {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.landing-faq-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.landing-faq-item[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .landing-faq-reveal:not(.landing-faq-reveal--visible) {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
}

.landing-faq-reveal--visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.landing-faq-panel {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-faq-panel.is-open {
  border-color: rgba(255, 162, 92, 0.45);
  box-shadow: 0 8px 32px rgba(255, 162, 92, 0.12);
}

.landing-faq-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
}

.landing-faq-question {
  flex: 1;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  background: none;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  line-height: 1.35;
}

.landing-faq-panel.is-open .landing-faq-question {
  color: var(--color-alt);
}

.landing-faq-toggle-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-faq-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.landing-faq-toggle:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.landing-faq-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  transition: transform 0.3s ease;
}

.landing-faq-panel.is-open .landing-faq-toggle svg {
  transform: rotate(180deg);
}

.landing-faq-answer {
  padding: 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease, padding 0.45s ease;
}

.landing-faq-answer p {
  margin: 0 0 1rem;
}

.landing-faq-answer p:last-child {
  margin-bottom: 0;
}

.landing-faq-panel.is-open .landing-faq-answer {
  max-height: 480px;
  opacity: 1;
  padding: 0 1.25rem 1.25rem;
}

@media (max-width: 850px) {
  .landing-faq-questions {
    flex-direction: column;
  }

  .landing-faq-section {
    margin: 2rem 0.75rem 1.5rem;
    border-radius: 20px;
  }

  .landing-faq-section::before,
  .landing-faq-section::after {
    border-radius: 20px;
  }

  .landing-faq-inner {
    padding: 2rem 0 2.5rem;
  }

  .landing-faq-searcher {
    max-width: none;
  }
}

/* Infinite Scroll Tags Section */
.infinite-tags-section {
  padding: 4rem 0;
  background: var(--background);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: hidden; */
}

.infinite-tags-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.infinite-tags-card {
  background: var(--background-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.infinite-tags-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.infinite-tags-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.infinite-tags-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.infinite-tags-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.landing-tracker-search-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.landing-tracker-search-wrap {
  width: 100%;
  max-width: 28rem;
  align-self: flex-start;
}

.infinite-tags-text .landing-tracker-search-wrap .giant-search {
  width: 100%;
}

.infinite-tags-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-end;
}

.infinite-tags-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-direction: row-reverse;
}

.infinite-tags-features .feature-text {
  text-align: right;
}

.infinite-tags-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  align-self: center;
  margin-top: 1rem;
}

.infinite-tags-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.infinite-tags-cta:hover::before {
  left: 100%;
}

.infinite-tags-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.infinite-tags-cta:active {
  transform: translateY(0);
}

.cta-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.infinite-tags-cta:hover .cta-icon {
  transform: translateX(4px);
}

.infinite-tags-animation {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.infinite-tags-animation .fade {
  background: linear-gradient(
    90deg,
    var(--background-light) 0%,
    var(--background-light) 10%,
    transparent 20%,
    transparent 80%,
    var(--background-light) 90%,
    var(--background-light) 100%
  );
}

.tag-list {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 1rem 0;
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
}

.tag-list::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--background-light) 0%,
    var(--background-light) 10%,
    transparent 20%,
    transparent 80%,
    var(--background-light) 90%,
    var(--background-light) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.loop-slider {
  width: 100%;
}

.loop-slider .inner {
  display: flex;
  width: fit-content;
  animation-name: loop;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: var(--direction);
  animation-duration: var(--duration);
}

.tag {
  display: flex;
  align-items: center;
  gap: 0 0.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--background-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  padding: 0.7rem 1rem;
  margin-right: 1rem; /* Must use margin-right instead of gap for the loop to be smooth */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.tag-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.tag span {
  font-size: 1.2rem;
  color: var(--color);
  font-weight: 600;
  opacity: 0.8;
}

.fade {
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--background-light) 0%,
    var(--background-light) 10%,
    transparent 20%,
    transparent 80%,
    var(--background-light) 90%,
    var(--background-light) 100%
  );
  position: absolute;
  inset: 0;
  z-index: 10;
}

@keyframes loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 968px) {
  .infinite-tags-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .infinite-tags-text {
    text-align: left;
  }

  .infinite-tags-heading {
    text-align: left;
  }

  .infinite-tags-description {
    text-align: justify;
  }

  .infinite-tags-features {
    align-items: flex-start;
  }

  .infinite-tags-features .feature-item {
    flex-direction: row;
  }

  .infinite-tags-features .feature-text {
    text-align: left;
  }

  .infinite-tags-cta {
    align-self: center;
  }

  /* .infinite-tags-animation {
    height: 400px;
  } */

  .infinite-tags-card {
    min-height: 500px;
  }
}

/* Medium screens: show 3 rows, no rotation */
@media (min-width: 768px) and (max-width: 967px) {
  /* Hide all loop-sliders except the first 3 on medium screens */
  .tag-list .loop-slider:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 768px) {
  .infinite-tags-section {
    padding: 2rem 0;
  }

  .infinite-tags-card {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  /* .infinite-tags-animation {
    height: 300px;
  } */

  .infinite-tags-container {
    padding: 0 1rem;
  }

  .infinite-tags-card {
    padding: 2rem 1.5rem;
  }

  .infinite-tags-heading {
    font-size: 2rem;
  }

  .infinite-tags-description {
    font-size: 1rem;
  }

  .infinite-tags-cta {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .tag-list {
    max-width: 95vw;
    gap: 0.75rem 0;
    padding: 1rem 0;
  }

  /* Hide all loop-sliders except the first 2 on mobile */
  .tag-list .loop-slider:nth-child(n + 3) {
    display: none;
  }

  .tag {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  .tag span {
    font-size: 1rem;
  }
}

.carousel-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.carousel-subtitle {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Swiper Carousel Styles */
.carousel-wrap {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  z-index: 1;
}

#productCarousel {
  display: flex;
  padding: 3rem;
}

/* Full-width card on small screens */
#productCarousel .swiper-slide {
  width: auto;
}

/* Show controls on all screen sizes */
#productCarousel .swiper-button-prev,
#productCarousel .swiper-button-next {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Position pagination dots below the cards */
#productCarousel .swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 1.5rem;
  text-align: center;
}

/* Custom Swiper button and pagination styling */
#productCarousel .swiper-button-prev,
#productCarousel .swiper-button-next {
  background: var(--color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
}

#productCarousel .swiper-button-prev::after,
#productCarousel .swiper-button-next::after {
  font-size: 18px;
}

#productCarousel .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
  margin: 0 4px;
}

#productCarousel .swiper-pagination-bullet-active {
  background: var(--color);
  opacity: 1;
}

.product-card {
  flex: 0 0 100vw;
  width: 100%;
  background: var(--background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  z-index: 9;
}

.product-card-image {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.product-card-content {
  width: 50%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

/* Desktop: Make cards smaller with fixed width and vertical layout */
@media (min-width: 768px) {
  .product-card {
    flex: 0 0 300px;
    flex-direction: column;
  }

  .product-card-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
  }

  .product-card-content {
    width: 100%;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

/* Laptop: Make cards slightly larger */
@media (min-width: 1024px) {
  .product-card {
    flex: 0 0 320px;
  }

  .product-card-image {
    height: 220px;
  }
}

/* Desktop: Make cards even larger */
@media (min-width: 1440px) {
  .product-card {
    flex: 0 0 350px;
  }

  .product-card-image {
    height: 240px;
  }
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.product-card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.product-card--interactive:focus-visible {
  outline: 3px solid var(--color);
  outline-offset: 3px;
}

.product-card-cta-hint {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color);
  margin-top: 0.35rem;
}

/* Alphabeteer tracker + product hybrid (landing Swiper) */
.product-card--alphabeteer-tracker {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--background);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.product-card-content--alphabeteer {
  align-items: stretch !important;
  text-align: left !important;
  justify-content: flex-start !important;
  gap: 0.5rem;
}

.product-card-alphabeteer-status {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color);
}

.product-card-alphabeteer-price {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.product-card-alphabeteer-from {
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.25rem;
}

.product-card-alphabeteer-price strong {
  color: var(--text-color);
  font-weight: 800;
}

.product-card-title--alphabeteer {
  color: var(--color) !important;
  margin-bottom: 0.15rem !important;
  text-align: left;
  width: 100%;
}

.product-card-alphabeteer-category {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-color);
  line-height: 1.35;
}

.product-card-alphabeteer-progress {
  width: 100%;
  margin-top: 0.25rem;
}

.product-card-alphabeteer-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.product-card-alphabeteer-progress-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-color);
}

.product-card-alphabeteer-progress-pct {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color);
}

.product-card-alphabeteer-bar {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.product-card-alphabeteer-bar-fill {
  height: 100%;
  border-radius: inherit;
  min-width: 0;
  transition: width 0.35s ease;
  background: repeating-linear-gradient(
    -45deg,
    var(--color),
    var(--color) 5px,
    rgba(255, 255, 255, 0.92) 5px,
    rgba(255, 255, 255, 0.92) 10px
  );
}

.product-card-alphabeteer-stat {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.product-card-alphabeteer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
  background: var(--background);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.product-card--alphabeteer-tracker:hover .product-card-alphabeteer-cta {
  border-color: var(--color);
  color: var(--color);
}

@media (min-width: 768px) {
  .product-card--alphabeteer-tracker .product-card-content--alphabeteer {
    text-align: left;
    align-items: stretch;
  }
}

.product-card-image {
  width: 50%;
  height: 100%;
  /* background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Desktop: Center images horizontally with padding */
@media (min-width: 768px) {
  .product-card-image {
    display: flex;
    width: 60%;
    transform: translateX(-50%);
    margin-left: 50%;
    align-items: center;
    justify-content: center;
    /* padding: 0.75rem; */
  }

  .product-card-image img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }

  .product-card-content {
    padding: 1.5rem;
  }
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.product-card-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.product-card-badge.milestone {
  background: var(--color);
  color: white;
}

.product-card-badge.challenge {
  background: var(--color-alt);
  color: white;
}

.product-card-badge.legend {
  background: var(--color);
  color: white;
}

.product-card-badge.inverted {
  background: var(--color);
  color: white;
  border: 2px solid var(--color);
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.product-card-description {
  font-size: 0.85rem;
  color: #8590a6;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-button {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.product-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 162, 92, 0.4);
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-carousel-section {
    padding: 2rem 0 0 0;
    margin: 2rem 0.75rem 0;
    border-radius: 20px;
  }

  .product-carousel-section::before,
  .product-carousel-section::after {
    border-radius: 20px;
  }

  .carousel-container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .carousel-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    padding: 0 2rem;
  }

  .carousel-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0 1.25rem;
  }

  .carousel-wrapper {
    width: 100%;
    padding: 0;
  }

  .carousel-track {
    gap: 1rem;
  }

  .product-card {
    flex: 0 0 calc(100vw - 2rem);
    min-height: auto;
    border-radius: 20px;
    margin: 0 auto;
    max-width: calc(100vw - 2rem);
  }

  .product-card-image {
    height: 250px;
  }

  .product-card-content {
    padding: 1.5rem;
  }

  .product-card-title {
    font-size: 1.1rem;
  }

  .product-card-subtitle {
    font-size: 0.85rem;
  }

  .product-card-description {
    font-size: 0.8rem;
  }

  .product-card-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .carousel-title {
    font-size: 1.25rem;
    padding: 0 1rem;
  }

  .product-card-image {
    height: 200px;
  }

  .product-card-content {
    padding: 1rem;
  }
}

/* Carousel Tooltip Styles */

.navbar {
  margin: 2%;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px;
  width: max-content;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0);
  position: sticky;
  top: 2rem;
  z-index: 999;
}

/* Inner Animated Radial Gradient */
.navbar-wrapper {
  left: 2px;
  position: absolute;
  top: 2px;
  width: calc(100% - 4px);
  bottom: 2px;
  right: 2px;
  border-radius: inherit;
  padding: 1px;
  z-index: 2;
  background: var(--navbar);
  background: radial-gradient(
    circle at var(--gradient-x) var(--gradient-y),
    var(--bold),
    transparent 50%
  );
  opacity: 0.3;
  transition: background-position 0.1s ease-out;
}

.navbar-wrapper::after {
  content: '';
  background: var(--navbar);
  position: relative;
  width: 100%;
  border-radius: inherit;
  opacity: 1;
}

/* Logo Placeholder */
.logo {
  position: relative;
  width: 4rem;
  margin-right: 1rem;
  margin-left: 1rem;
  border: none;
  transition: opacity 0.2s ease;
}

/* Logo Container */
.logo-container {
  position: relative;
  height: 3.5rem;
  width: 3.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-left: 1rem;
  text-decoration: none; /* Remove underline for the link */
  filter: invert(var(--logo-invert)); /* Invert logo colors based on theme */
}

.logo-container:hover {
  transform: scale(0.9);
}

.logo-container::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
}

/* Lottie Logo */
.nav-logo-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: none; /* Prevent interaction with the lottie */
}

.navbar-container {
  border-radius: inherit;
  background-color: var(--navbar);
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.navbar-item-wrapper {
  display: flex;
  height: 100%;
}
