.home-react-page {
  --home-band-bg-primary: color-mix(in srgb, var(--theme-primary) 7%, color-mix(in srgb, white 95%, var(--color-surface)));
  --home-band-bg-secondary: color-mix(in srgb, var(--theme-secondary) 8%, color-mix(in srgb, white 94%, var(--color-surface)));
  --home-band-divider: color-mix(in srgb, var(--theme-primary) 10%, transparent);
  padding-bottom: clamp(2.7rem, 4vw, 4.1rem);
}

.home-react-hero {
  position: relative;
  overflow: visible;
  padding-block: clamp(0.9rem, 1.8vw, 1.35rem);
  background: var(--home-band-bg-primary);
  box-shadow: inset 0 -1px 0 var(--home-band-divider);
}

.home-react-hero-shell,
.tpl-cb-sustain-v1 .home-react-hero-shell {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-react-hero-shell::before {
  display: none;
}

.home-react-hero-grid {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 2.2rem);
  align-items: center;
}

.home-react-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  align-content: center;
  padding: clamp(0.45rem, 1.2vw, 0.85rem) 0;
}

.home-react-hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-primary) 10%, var(--ui-surface));
  color: var(--ui-accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-react-hero-badge-dot {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.32rem color-mix(in srgb, currentColor 18%, transparent);
}

.home-react-hero-copy h1 {
  margin: 0;
  max-width: none;
  color: var(--ui-text);
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-react-hero-copy > p {
  margin: 0;
  max-width: 72ch;
  color: var(--ui-text-muted);
  font-size: clamp(0.98rem, 1.25vw, 1.05rem);
  line-height: 1.62;
}

.home-react-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.home-react-hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}

.home-react-hero-shortcuts {
  width: min(100%, 18rem);
  margin-left: auto;
  display: grid;
  gap: 0;
  padding-left: clamp(1rem, 2vw, 1.45rem);
  border-left: 1px solid color-mix(in srgb, var(--theme-primary) 16%, transparent);
}

.home-react-hero-shortcuts-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  color: var(--ui-accent-text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-react-hero-shortcut {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.78rem 0;
  border-top: 1px solid color-mix(in srgb, var(--theme-primary) 18%, transparent);
  color: var(--ui-text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-react-hero-shortcut:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--theme-primary) 18%, transparent);
}

.home-react-hero-shortcut-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-height: 2rem;
  color: var(--ui-accent-text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-react-hero-shortcut-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.home-react-hero-shortcut-copy strong {
  color: var(--ui-text);
  font-size: 1rem;
  line-height: 1.25;
}

.home-react-hero-shortcut-copy span {
  color: var(--ui-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.home-react-hero-shortcut-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-accent-text);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 180ms ease, color 180ms ease;
}

.home-react-hero-shortcut:hover,
.home-react-hero-shortcut:focus-visible {
  border-color: color-mix(in srgb, var(--theme-primary) 34%, transparent);
  transform: translateX(2px);
  outline: 0;
}

.home-react-hero-shortcut:hover .home-react-hero-shortcut-arrow,
.home-react-hero-shortcut:focus-visible .home-react-hero-shortcut-arrow {
  transform: translateX(2px);
  color: var(--ui-secondary-text);
}

.home-react-content {
  display: grid;
  gap: 0;
  background: transparent;
}

.home-react-band {
  padding-block: 0;
}

.home-react-band-tone-primary {
  background: var(--home-band-bg-primary);
}

.home-react-band-tone-secondary {
  background: var(--home-band-bg-secondary);
}

.home-react-band + .home-react-band {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--theme-primary) 7%, transparent);
}

.home-react-band-inner {
  display: grid;
}

.home-react-section {
  padding: clamp(0.95rem, 1.6vw, 1.2rem) 0;
  gap: clamp(0.8rem, 1.4vw, 1rem);
}

.home-react-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-react-section-head > div,
.home-react-subhead {
  display: grid;
  gap: 0.25rem;
}

.home-react-section-head h2,
.home-react-subhead h3 {
  margin: 0;
}

.home-react-section-head p,
.home-react-subhead p {
  margin: 0;
  max-width: 58ch;
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-react-section-head a,
.home-react-subhead a {
  white-space: nowrap;
}

.home-react-category-block + .home-react-category-block {
  margin-top: 1.6rem;
}

.home-react-subhead {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
}

.home-react-coupon-list {
  --coupon-shell-radius: 6px;
  --coupon-card-radius: 6px;
  --coupon-control-radius: 5px;
  --coupon-shadow-soft: 0 10px 24px color-mix(in srgb, var(--ui-text) 8%, transparent);
  --coupon-shadow-card: 0 14px 32px color-mix(in srgb, var(--ui-text) 12%, transparent);
  --coupon-surface: var(--ui-surface);
  --coupon-surface-soft: color-mix(in srgb, var(--theme-primary) 4%, var(--coupon-surface));
  --coupon-surface-soft-strong: color-mix(in srgb, var(--theme-primary) 8%, var(--coupon-surface));
  --coupon-surface-secondary: color-mix(in srgb, var(--theme-secondary) 10%, var(--coupon-surface));
  --coupon-text: var(--ui-text);
  --coupon-text-soft: var(--ui-text);
  --coupon-text-muted: var(--ui-text-soft);
  --coupon-text-faint: var(--ui-text-faint);
  --coupon-accent-text: var(--ui-accent-text);
  --coupon-cta-gradient: var(--theme-accent-fill);
  --coupon-focus-gradient: color-mix(in srgb, var(--theme-secondary) 72%, var(--theme-primary));
  --coupon-warning-bg: color-mix(in srgb, var(--color-warning) 12%, var(--coupon-surface));
  --coupon-warning-border: color-mix(in srgb, var(--color-warning) 24%, var(--coupon-surface));
  --coupon-warning-text: color-mix(in srgb, var(--color-warning) 78%, var(--coupon-text));
  --coupon-error-bg: color-mix(in srgb, var(--color-error) 12%, var(--coupon-surface));
  --coupon-error-border: color-mix(in srgb, var(--color-error) 24%, var(--coupon-surface));
  --coupon-error-text: color-mix(in srgb, var(--color-error) 82%, var(--coupon-text));
  --coupon-border-soft: color-mix(in srgb, var(--cream-border) 74%, var(--coupon-surface));
  display: grid;
  gap: 0.95rem;
}

.home-react-coupon-list .coupons-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-react-coupon-card {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--coupon-card-radius);
  border: 1px solid var(--coupon-border-soft);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 5%, transparent), transparent 58%),
    linear-gradient(0deg, color-mix(in srgb, var(--theme-secondary) 4%, transparent), transparent 40%),
    var(--coupon-surface);
  box-shadow: var(--coupon-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  color: var(--coupon-text);
  overflow: hidden;
}

.home-react-coupon-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: linear-gradient(180deg, var(--theme-primary), color-mix(in srgb, var(--theme-secondary) 45%, transparent));
  opacity: 0.9;
}

.home-react-coupon-card:hover,
.home-react-coupon-card:focus-within {
  transform: translateY(-1px);
  box-shadow: var(--coupon-shadow-card);
  border-color: color-mix(in srgb, var(--theme-primary) 24%, var(--coupon-surface));
}

.home-react-coupon-merchant {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coupon-text);
  text-decoration: none;
}

.home-react-coupon-merchant-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.95rem 0.55rem 0.2rem;
}

.home-react-coupon-merchant-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--cream-border) 70%, transparent);
  background: color-mix(in srgb, var(--coupon-surface) 94%, var(--coupon-surface-soft));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ui-text) 10%, transparent);
  overflow: hidden;
}

.home-react-coupon-merchant-logo img,
.home-react-coupon-merchant-logo .coupons-directory-merchant-fallback {
  width: 100%;
  height: 100%;
}

.home-react-coupon-merchant-logo img {
  object-fit: contain;
  padding: 0.9rem;
}

.home-react-coupon-merchant-logo .coupons-directory-merchant-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--theme-primary) 10%, var(--coupon-surface));
  color: var(--coupon-accent-text);
  font-size: 1.4rem;
  font-weight: 900;
}

.home-react-coupon-merchant-badge {
  position: absolute;
  top: 0;
  right: -0.55rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 5.2rem;
  min-height: 2.15rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.9rem;
  background: var(--coupon-focus-gradient);
  color: var(--coupon-surface);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--theme-secondary) 24%, transparent);
  transform: rotate(12deg);
}

.home-react-coupon-main {
  position: relative;
  display: grid;
  gap: 1rem;
  min-width: 0;
  cursor: pointer;
  z-index: 0;
}

.home-react-coupon-body {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.home-react-coupon-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.home-react-coupon-head h3 {
  margin: 0;
  color: var(--coupon-text);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.home-react-coupon-body p {
  margin: 0;
  color: var(--coupon-text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.home-react-coupon-expiry,
.home-react-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-react-coupon-expiry {
  position: relative;
  border: 1px solid transparent;
}

.home-react-coupon-expiry::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

.home-react-coupon-expiry.is-standard,
.home-react-coupon-chip {
  background: var(--coupon-surface-soft-strong);
  color: var(--coupon-text-soft);
}

.home-react-coupon-expiry.is-urgent {
  background: var(--coupon-warning-bg);
  border-color: var(--coupon-warning-border);
  color: var(--coupon-warning-text);
}

.home-react-coupon-expiry.is-critical {
  background: var(--coupon-error-bg);
  border-color: var(--coupon-error-border);
  color: var(--coupon-error-text);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-error) 16%, transparent);
}

.home-react-coupon-expiry.is-urgent::before,
.home-react-coupon-expiry.is-critical::before {
  opacity: 1;
  animation: coupon-expiry-beat 1.2s ease-in-out infinite;
}

.home-react-coupon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-react-coupon-chip.is-merchant {
  background: color-mix(in srgb, var(--coupon-text) 5%, var(--coupon-surface));
}

.home-react-coupon-chip.is-cashback {
  background: var(--coupon-surface-secondary);
}

.home-react-coupon-actions {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
}

.home-react-coupon-reveal {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 13.4rem;
  min-height: 3.4rem;
  max-width: 100%;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--ui-text) 14%, transparent),
    0 4px 10px color-mix(in srgb, var(--ui-text) 12%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-react-coupon-reveal-code {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 6.4rem;
  padding: 0 1rem;
  border: 2px solid color-mix(in srgb, var(--theme-primary) 62%, var(--theme-secondary));
  border-right: 0;
  border-radius: 1rem 0 0 1rem;
  background: var(--coupon-surface-soft);
  color: var(--coupon-text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coupon-surface) 72%, transparent);
}

.home-react-coupon-reveal strong {
  position: relative;
  display: inline-flex;
  flex: 0 0 7.2rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 0 1rem 1rem 0;
  background: var(--coupon-cta-gradient);
  color: var(--coupon-surface);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--ui-text) 14%, transparent);
}

.home-react-coupon-main:hover .home-react-coupon-reveal,
.home-react-coupon-main:focus-within .home-react-coupon-reveal {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--ui-text) 18%, transparent),
    0 6px 14px color-mix(in srgb, var(--ui-text) 13%, transparent);
}

.home-react-coupon-main:hover .home-react-coupon-reveal-code,
.home-react-coupon-main:focus-within .home-react-coupon-reveal-code {
  background: color-mix(in srgb, var(--theme-primary) 8%, var(--coupon-surface));
}

.home-react-coupon-main:hover .home-react-coupon-reveal strong,
.home-react-coupon-main:focus-within .home-react-coupon-reveal strong {
  background: var(--coupon-focus-gradient);
}

.home-react-coupon-main-trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.home-react-coupon-main-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-primary) 70%, var(--coupon-surface));
  outline-offset: 4px;
  border-radius: 1.2rem;
}

@media (min-width: 960px) {
  .home-react-hero-grid {
    grid-template-columns: minmax(0, 1.24fr) minmax(20rem, 0.76fr);
  }

  .home-react-coupon-card {
    grid-template-columns: 8.75rem minmax(0, 1fr);
  }

  .home-react-coupon-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-react-coupon-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 1023px) {
  .home-react-hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .home-react-hero {
    padding-block: 0.75rem 0.55rem;
  }

  .home-react-hero-shell {
    padding: 0;
  }

  .home-react-hero-actions > * {
    width: 100%;
  }

  .home-react-hero-visual {
    padding-top: 0.45rem;
  }

  .home-react-hero-shortcuts {
    width: 100%;
    padding-top: 0.55rem;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--theme-primary) 14%, transparent);
  }

  .home-react-hero-shortcut {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-react-hero-shortcut-arrow {
    display: none;
  }

  .home-react-section-head,
  .home-react-subhead {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .home-react-coupon-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .home-react-coupon-reveal {
    width: 100%;
  }

  .home-react-coupon-merchant {
    justify-content: flex-start;
  }

  .home-react-coupon-merchant-mark {
    padding-right: 0.65rem;
  }

  .home-react-coupon-merchant-badge {
    right: -0.2rem;
    max-width: 4.6rem;
    font-size: 0.68rem;
  }
}

@keyframes coupon-expiry-beat {
  0%,
  100% {
    transform: scale(1);
  }

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