:root {
  --bg-top: #eef5fc;
  --bg-bottom: #dae8f9;
  --surface: #fdfefe;
  --surface-muted: #f5f8fc;
  --stroke: #cad9ea;
  --stroke-strong: #8db0d7;
  --text-main: #1f2835;
  --text-soft: #627286;
  --blue: #4e88c5;
  --blue-deep: #2c5f98;
  --green: #17b640;
  --green-deep: #0f9231;
  --yellow: #f6c832;
  --shadow: 0 18px 45px rgba(44, 95, 152, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-main: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.75), transparent 20%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 170px;
  height: 170px;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.28;
}

body::before {
  top: 4%;
  left: -40px;
  background:
    radial-gradient(circle, rgba(89, 143, 204, 0.26) 0 30%, transparent 30% 100%),
    radial-gradient(circle at center, transparent 0 48%, rgba(89, 143, 204, 0.18) 48% 56%, transparent 56% 100%);
}

body::after {
  right: -55px;
  bottom: 8%;
  background:
    linear-gradient(45deg, transparent 43%, rgba(255, 255, 255, 0.85) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, rgba(255, 255, 255, 0.85) 43% 57%, transparent 57%);
}

.page-shell {
  display: flex;
  justify-content: center;
  padding: 32px 16px 56px;
}

.offer-board {
  width: min(100%, 420px);
  padding: 16px 10px 14px;
  border: 1px solid rgba(141, 176, 215, 0.55);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.95));
  box-shadow: var(--shadow);
  position: relative;
}

.hero {
  position: relative;
  text-align: center;
  padding: 18px 16px 16px;
  margin-bottom: 12px;
}

.hero-accent {
  position: absolute;
  inset: 0 18px auto;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b9ed3, #4a84c3);
}

.hero-kicker {
  margin: 12px 0 6px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--text-soft);
}

.featured-offer,
.offer-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(89, 143, 204, 0.08);
}

.featured-offer {
  position: relative;
  padding: 16px 10px 12px;
  margin: 0 4px 12px;
}

.featured-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1ac949, #129d33);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(23, 182, 64, 0.22);
}

.banner-box {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border: 1px solid #b9cbe0;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbfdff, #eef3f8);
  overflow: hidden;
}

.banner-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-link {
  color: inherit;
  text-decoration: none;
}

.banner-link:focus-visible {
  outline: 3px solid rgba(78, 136, 197, 0.32);
  outline-offset: 2px;
}

.banner-box--contain {
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
}

.banner-box--contain img {
  object-fit: contain;
}

.banner-box--light {
  background: linear-gradient(180deg, #ffffff, #f7f6f2);
}

.banner-box--rose {
  background: linear-gradient(180deg, #f3d9d5, #e8c3ba);
}

.featured-banner {
  min-height: 220px;
  aspect-ratio: 6 / 5;
  margin-bottom: 14px;
}

.featured-content {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
}

.brand-column {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding-top: 4px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 58px;
  padding: 0 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #eef5fc);
  border: 1px solid var(--stroke);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
}

.rating {
  display: flex;
  gap: 2px;
}

.rating span {
  width: 11px;
  height: 11px;
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 69% 57%, 79% 94%, 50% 72%, 21% 94%, 31% 57%, 2% 36%, 39% 36%);
  background: linear-gradient(180deg, #ffd85d, #efb913);
}

.offer-copy,
.offer-details {
  display: flex;
  flex-direction: column;
}

.offer-tag {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(78, 136, 197, 0.12);
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offer-copy h2,
.offer-details h3 {
  margin: 0 0 10px;
  color: #243243;
  font-weight: 400;
  line-height: 1.1;
}

.offer-copy h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.offer-details h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.offer-copy ul,
.offer-details ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.offer-copy li,
.offer-details li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 400;
  color: #3d4650;
}

.button,
.more-offers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(23, 182, 64, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover,
.button:focus-visible,
.more-offers:hover,
.more-offers:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(23, 182, 64, 0.24);
  filter: saturate(1.05);
}

.button:focus-visible,
.more-offers:focus-visible {
  outline: 3px solid rgba(78, 136, 197, 0.32);
  outline-offset: 2px;
}

.button-large {
  width: 100%;
  min-height: 50px;
  font-size: 1.12rem;
}

.offer-list {
  display: grid;
  gap: 10px;
  margin: 0 4px;
}

.offer-item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  padding: 12px 10px 10px;
}

.offer-rank {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 14px 0 10px 0;
  background: linear-gradient(180deg, #5d8fc7, #4372aa);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 400;
  box-shadow: 0 6px 14px rgba(67, 114, 170, 0.28);
}

.offer-media {
  min-height: 110px;
  aspect-ratio: 6 / 5;
}

.offer-details ul {
  margin-bottom: 10px;
}

.offer-details li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.button:not(.button-large) {
  width: fit-content;
  min-width: 146px;
  font-size: 0.8rem;
}

.more-offers {
  width: calc(100% - 16px);
  min-height: 52px;
  margin: 12px 8px 16px;
  background: linear-gradient(180deg, #a4afbd, #7d8897);
  box-shadow: 0 12px 22px rgba(83, 97, 116, 0.18);
  text-transform: none;
  font-size: 1.12rem;
}

@media (max-width: 440px) {
  .page-shell {
    padding-inline: 10px;
  }

  .offer-board {
    width: 100%;
    border-radius: 20px;
  }

  .hero-kicker {
    font-size: 1.38rem;
  }

  .hero h1 {
    font-size: 0.84rem;
  }

  .featured-banner {
    min-height: 184px;
  }

  .featured-content {
    grid-template-columns: 1fr;
  }

  .brand-column {
    grid-auto-flow: column;
    justify-content: start;
    gap: 10px;
  }

  .offer-item {
    grid-template-columns: 1fr;
  }

  .offer-media {
    min-height: 146px;
  }

  .button:not(.button-large) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
