:root {
  --ink: #17202a;
  --muted: #607080;
  --line: #dce4ea;
  --surface: #ffffff;
  --soft: #f6f4ee;
  --paper: #fffdf8;
  --mint: #dff7ed;
  --green: #147d58;
  --blue: #255fa8;
  --amber: #f1b84b;
  --coral: #e85d4f;
  --violet: #6c5ce7;
  --shadow: 0 20px 52px rgba(23, 32, 42, 0.12);
  --sharp-shadow: 7px 7px 0 rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18px 18px, rgba(23, 32, 42, 0.06) 2px, transparent 2px),
    linear-gradient(135deg, #fffaf0 0%, #f3f8f3 48%, #eef5fb 100%);
  background-size: 36px 36px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: conic-gradient(from 160deg, var(--coral), var(--amber), var(--green), var(--blue), var(--coral));
  color: #fff;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 4px 4px 0 rgba(23, 32, 42, 0.14);
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 28px;
}

.hero-copy,
.hero-panel,
.offer-card,
.merchant-card,
.terms-card,
.category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(23, 32, 42, 0.08);
  box-shadow: var(--sharp-shadow), var(--shadow);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 44px);
  width: 178px;
  height: 108px;
  background:
    linear-gradient(135deg, transparent 22%, rgba(255, 255, 255, 0.7) 22% 30%, transparent 30%),
    repeating-linear-gradient(90deg, rgba(23, 32, 42, 0.1) 0 1px, transparent 1px 18px),
    linear-gradient(45deg, rgba(232, 93, 79, 0.72), rgba(241, 184, 75, 0.76));
  border: 2px dashed rgba(23, 32, 42, 0.24);
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 8px 8px 0 rgba(23, 32, 42, 0.1);
}

.hero-copy::before {
  content: "CODE DROP";
  position: absolute;
  right: 38px;
  top: 30px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 32, 42, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 900;
  transform: rotate(4deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.hero-copy > p:not(.eyebrow),
.page-title p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.search {
  display: flex;
  gap: 10px;
  max-width: 580px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.search input {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.search button,
.code-box button,
.primary-cta {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.search button:hover,
.code-box button:hover,
.primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 rgba(23, 32, 42, 0.16);
}

.hero-panel {
  padding: 26px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 248, 0.96)),
    repeating-linear-gradient(135deg, rgba(37, 95, 168, 0.08) 0 8px, transparent 8px 18px);
  border: 2px solid rgba(23, 32, 42, 0.08);
}

.hero-panel-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.hero-panel-head h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.offer-meta,
.site-footer,
.disclosure,
dt {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.mini-list a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--amber);
}

.mini-list a strong {
  line-height: 1.15;
}

.mini-list a em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 18px;
}

.spotlight {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 24px 0 10px;
  padding: 22px;
  border: 2px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 93, 79, 0.12), rgba(241, 184, 75, 0.2)),
    var(--paper);
  box-shadow: var(--sharp-shadow), var(--shadow);
  position: relative;
  overflow: hidden;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(23, 32, 42, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.spotlight-label,
.spotlight-code {
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.spotlight-label span,
.spotlight-code span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spotlight-label strong {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 0.95;
  color: var(--coral);
}

.spotlight-copy {
  position: relative;
  z-index: 1;
}

.spotlight-copy h2 {
  margin-bottom: 8px;
}

.spotlight-copy p:not(.eyebrow) {
  margin-bottom: 12px;
  color: var(--muted);
}

.spotlight-code {
  display: inline-grid;
  padding: 10px 14px;
  border: 2px dashed rgba(23, 32, 42, 0.22);
  border-radius: 8px;
  background: #fff;
}

.spotlight-code strong {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.spotlight > .primary-cta {
  position: relative;
  z-index: 1;
  margin: 0;
  white-space: nowrap;
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.partner-section {
  margin: 26px 0 8px;
}

.partner-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 31%);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 4px 4px 18px;
  scrollbar-color: rgba(23, 32, 42, 0.24) transparent;
}

.partner-card {
  min-height: 300px;
  display: grid;
  grid-template-rows: 128px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-snap-align: start;
}

.partner-visual {
  display: grid;
  place-items: center;
  min-height: 128px;
  text-decoration: none;
  background:
    radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.38) 0 10px, transparent 11px),
    linear-gradient(135deg, rgba(37, 95, 168, 0.92), rgba(20, 125, 88, 0.82), rgba(241, 184, 75, 0.88));
}

.partner-visual span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(23, 32, 42, 0.16);
}

.partner-visual img {
  max-width: 72%;
  max-height: 94px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(23, 32, 42, 0.16);
}

.partner-collage {
  width: min(168px, 78%);
  height: 98px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 6px 6px 0 rgba(23, 32, 42, 0.16);
}

.partner-collage img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  padding: 0;
  border-radius: 6px;
  background: #f7f7f7;
  box-shadow: none;
}

.partner-copy {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
}

.partner-copy h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.partner-copy h3 a,
.partner-link {
  text-decoration: none;
}

.partner-copy p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 4px;
}

.partner-link {
  color: var(--blue);
  font-weight: 900;
}

.partner-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.offer-card {
  display: grid;
  grid-template-columns: 50px 1fr 34px;
  gap: 14px;
  align-items: start;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.offer-card::before,
.offer-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
  transform: translateY(-50%);
}

.offer-card::before {
  left: -10px;
}

.offer-card::after {
  right: -10px;
}

.offer-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: var(--sharp-shadow), var(--shadow);
}

.offer-logo {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), #fff3c6);
  color: var(--green);
  font-weight: 900;
  font-size: 1.2rem;
}

.offer-logo.image-logo {
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.offer-logo.large {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.offer-card h3 a,
.icon-link,
.category-card {
  text-decoration: none;
}

.offer-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
}

.offer-meta span {
  padding: 6px 9px;
  background: #fff;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
  font-weight: 900;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--sharp-shadow);
}

.trust-band div {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: #fff;
}

.trust-band div:nth-child(1) {
  border-top: 5px solid var(--green);
}

.trust-band div:nth-child(2) {
  border-top: 5px solid var(--blue);
}

.trust-band div:nth-child(3) {
  border-top: 5px solid var(--coral);
}

.trust-band span {
  color: var(--muted);
}

.page-title {
  padding: 44px 0 22px;
}

.page-title.narrow {
  max-width: 720px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 248, 0.9)),
    linear-gradient(90deg, rgba(232, 93, 79, 0.16), rgba(20, 125, 88, 0.14));
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sharp-shadow), var(--shadow);
}

.category-card span {
  font-size: 1.2rem;
  font-weight: 800;
}

.category-card strong {
  color: var(--green);
}

.offer-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding: 42px 0 24px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.detail-main h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.code-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 24px 0 12px;
  background:
    linear-gradient(90deg, rgba(223, 247, 237, 0.75), rgba(255, 255, 255, 0.96)),
    #fff;
  border: 2px dashed rgba(23, 32, 42, 0.18);
  border-radius: 8px;
}

.code-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.code-box strong {
  overflow-wrap: anywhere;
  font-size: 1.2rem;
}

.primary-cta {
  display: inline-grid;
  place-items: center;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.detail-main h2 {
  margin-top: 34px;
}

.detail-main li,
.terms-card li {
  margin-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.tag-row a:hover {
  border-color: rgba(37, 95, 168, 0.35);
  box-shadow: 3px 3px 0 rgba(23, 32, 42, 0.08);
}

.popular-tags {
  max-width: 840px;
}

.merchant-card,
.terms-card {
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 5px 5px 0 rgba(23, 32, 42, 0.08), var(--shadow);
}

.merchant-card dl {
  display: grid;
  gap: 12px;
}

.merchant-card div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.site-footer {
  padding: 34px 0 44px;
  font-size: 0.9rem;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.redirect-card {
  width: min(420px, calc(100% - 32px));
  padding: 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.redirect-card .brand-mark {
  margin: 0 auto 16px;
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero,
  .offer-detail,
  .offer-grid,
  .trust-band,
  .category-grid,
  .spotlight {
    grid-template-columns: 1fr;
  }

  .hero-copy::after {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .partner-carousel {
    grid-auto-columns: minmax(230px, 82%);
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .search,
  .code-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .offer-card {
    grid-template-columns: 44px 1fr;
  }

  .offer-logo {
    width: 44px;
    height: 44px;
  }

  .icon-link {
    display: none;
  }
}
