/* Offers page presentation. Promotion eligibility remains enforced by checkout and Firestore. */
body {
  margin: 0;
  background: #07080f;
  color: #f7f8fc;
  font-family: Manrope, Arial, sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 56px));
  margin: auto;
}

.top {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid #ffffff1c;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.06em;
}

.mark {
  color: #80f5d0;
  margin-right: 6px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.back,
.text-link {
  color: #b8ffda;
  text-decoration: none;
  font: 11px 'DM Mono', monospace;
  letter-spacing: 0.08em;
}

main {
  padding: 74px 0 80px;
}

.intro {
  max-width: 720px;
}

.eyebrow {
  color: #b8ffda;
  font: 11px 'DM Mono', monospace;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 14px 0 22px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

h1 em {
  color: #80f5d0;
  font-style: normal;
}

.intro > p {
  max-width: 620px;
  color: #aeb4c2;
  font-size: 16px;
  line-height: 1.75;
}

.offer-notice {
  display: flex;
  gap: 16px;
  margin: 46px 0 66px;
  padding: 18px 20px;
  border: 1px solid #80f5d044;
  border-radius: 14px;
  background: #0c1d19;
  color: #d8fce7;
  font-size: 13px;
  line-height: 1.6;
}

.offer-notice strong {
  color: #80f5d0;
  white-space: nowrap;
}

.section-heading {
  margin-bottom: 22px;
}

.offers-state {
  margin: 0 0 22px;
  color: #9ba2b1;
  font-size: 13px;
}

.offers-state.error {
  color: #ffb7b7;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  letter-spacing: -0.07em;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.offer-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #ffffff18;
  border-radius: 18px;
  background: linear-gradient(145deg, #141824, #0d1018);
}

.offer-card.featured {
  border-color: #80f5d055;
  box-shadow: 0 20px 60px #00000025;
}

.offer-topline,
.code-row,
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.offer-badge {
  color: #80f5d0;
  font: 10px 'DM Mono', monospace;
  letter-spacing: 0.12em;
}

.offer-badge.reward {
  color: #e6c4ff;
}

.offer-mark {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.offer-card h3 {
  margin: 44px 0 8px;
  font-size: 27px;
  letter-spacing: -0.06em;
}

.offer-card h3,
.offer-summary,
.offer-description {
  overflow-wrap: anywhere;
}

.offer-summary {
  margin-bottom: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.offer-description,
.offer-terms,
.step p {
  color: #9ba2b1;
  font-size: 13px;
  line-height: 1.65;
}

.offer-description {
  min-height: 64px;
  margin-bottom: 24px;
}

.code-row {
  margin-top: auto;
  padding: 10px 10px 10px 16px;
  border: 1px dashed #ffffff3a;
  border-radius: 10px;
  background: #090b11;
}

code {
  color: #fff;
  font: 15px 'DM Mono', monospace;
  letter-spacing: 0.06em;
}

.copy-code {
  padding: 9px 12px;
  border: 1px solid #80f5d055;
  border-radius: 7px;
  background: #80f5d014;
  color: #b8ffda;
  cursor: pointer;
  font: 11px 'DM Mono', monospace;
}

.copy-code:hover,
.copy-code:focus-visible {
  background: #80f5d02b;
}

.offer-terms {
  margin: 18px 0 0;
  padding-left: 18px;
}

.offer-terms li + li {
  margin-top: 6px;
}

.how-to {
  margin-top: 82px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  padding: 22px 0;
  border-top: 1px solid #ffffff1f;
}

.step span {
  display: block;
  margin-bottom: 22px;
  color: #80f5d0;
  font: 12px 'DM Mono', monospace;
}

.step strong {
  color: #fff;
  font-size: 16px;
}

.step p {
  margin: 10px 0 0;
}

.cta-row {
  justify-content: flex-start;
  margin-top: 52px;
}

.button.primary {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-radius: 8px;
  background: #80f5d0;
  color: #07100d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 36px, 1120px);
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .site-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  main {
    padding-top: 52px;
  }

  .offer-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: 0;
  }
}

@media (max-width: 460px) {
  .shell {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 17px;
  }

  .offer-notice {
    flex-direction: column;
    gap: 5px;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
