:root {
  --lime: #8bff3f;
  --ink: #10251e;
  --muted: #66766f;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: #f8fff9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

[hidden] { display: none !important; }

.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;
}

.offer-page {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 19, 15, .46), rgba(17, 6, 38, .22)),
    url('stash-background.png') center / cover no-repeat,
    #073126;
}

.brand {
  position: absolute;
  top: clamp(22px, 4vw, 42px);
  left: clamp(22px, 5vw, 72px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 9px 13px;
  transform: rotate(-4deg);
}

.disclosure {
  position: absolute;
  right: 28px;
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
}

.ambient-one { width: 280px; height: 280px; top: -100px; right: 23%; background: rgba(156, 255, 89, .12); }
.ambient-two { width: 360px; height: 360px; bottom: -180px; left: 38%; background: rgba(173, 108, 255, .18); }

.popup-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: rgba(2, 12, 9, .25);
  backdrop-filter: blur(4px);
  animation: veil-in .35s ease both;
}

.offer-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100svh - 24px);
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  color: #163027;
  background: rgba(252, 255, 251, .97);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(4, 20, 15, .4), inset 0 1px 0 #fff;
  animation: card-in .52s cubic-bezier(.2, .8, .2, 1) both;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: -105px;
  right: -85px;
  width: 170px;
  height: 170px;
  background: var(--lime);
  border-radius: 999px;
  filter: blur(4px);
  opacity: .55;
}

.offer-card.attention-pulse { animation: attention-bounce .46s cubic-bezier(.2, .8, .2, 1) both; }

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #395148;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}

.icon-button:hover { background: #edf4f0; }
.close-button { position: absolute; top: 16px; right: 16px; z-index: 2; font-size: 1.45rem; line-height: 1; }

.offer-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #315548;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.offer-kicker span {
  width: 8px;
  height: 8px;
  background: #32d583;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(50, 213, 131, .13);
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 26px;
  background: linear-gradient(120deg, #effaf4, #f5f0ff);
  border: 1px solid rgba(14, 82, 57, .12);
  border-radius: 20px;
}

.amount-row > div:not(.amount-arrow) { display: flex; flex-direction: column; gap: 2px; }
.amount-row strong { font-size: clamp(2.45rem, 7vw, 3.5rem); line-height: 1; letter-spacing: -.07em; }
.amount-label { color: #62766f; font-size: .63rem; font-weight: 800; letter-spacing: .14em; }
.amount-arrow { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: #193f33; border-radius: 999px; }
.reward-amount strong { color: #5930a9; }

.offer-card h2 { max-width: 410px; margin: 0; color: var(--ink); font-size: clamp(1.75rem, 4vw, 2.45rem); line-height: 1.02; letter-spacing: -.055em; }
.offer-description { margin: 16px 0 18px; color: #586b64; font-size: .96rem; line-height: 1.6; }

.benefits { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-bottom: 24px; color: #29483d; font-size: .79rem; font-weight: 680; }
.benefits span { display: flex; align-items: center; gap: 6px; }
.benefits i { display: grid; place-items: center; width: 16px; height: 16px; color: var(--ink); background: var(--lime); border-radius: 999px; font-size: .67rem; font-style: normal; font-weight: 900; }

.primary-cta,
.secondary-cta,
.reopen-button { display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; text-decoration: none; }

.primary-cta {
  width: 100%;
  height: 54px;
  gap: 10px;
  color: #fff;
  background: #142f26;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(20, 47, 38, .2);
  font-size: .94rem;
  font-weight: 800;
  transition: background .2s ease;
}

.primary-cta:hover { background: #20483a; }
.primary-cta span { transition: transform .2s ease; }
.primary-cta:hover span { transform: translateX(3px); }

.secondary-cta { width: 100%; height: 42px; margin: 7px 0 8px; color: var(--muted); background: transparent; border-radius: 12px; font-size: .78rem; font-weight: 680; }
.secondary-cta:hover { color: #29483d; background: #edf4f0; }
.fine-print { margin: 0; padding-top: 15px; color: #84918c; border-top: 1px solid rgba(16, 37, 30, .1); font-size: .63rem; line-height: 1.5; }

.reopen-button { position: fixed; right: 28px; bottom: 28px; z-index: 5; height: 46px; padding: 0 20px; color: var(--ink); background: var(--lime); border-radius: 999px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); font-size: .85rem; font-weight: 800; }

button:focus-visible,
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

@keyframes veil-in { from { opacity: 0; } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes attention-bounce {
  0%, 100% { transform: scale(1); box-shadow: 0 32px 90px rgba(4, 20, 15, .4), inset 0 1px 0 #fff; }
  38% { transform: scale(1.018); box-shadow: 0 36px 100px rgba(4, 20, 15, .48), 0 0 0 7px rgba(139, 255, 63, .28), inset 0 1px 0 #fff; }
  68% { transform: scale(.995); }
}

@media (max-width: 720px) {
  .disclosure { left: 24px; right: auto; font-size: .58rem; }
  .popup-layer { align-items: end; padding: 12px; }
  .offer-card { padding: 26px 22px 22px; border-radius: 24px; }
  .amount-row { gap: 10px; padding: 16px; }
  .amount-arrow { width: 32px; height: 32px; }
  .offer-description { font-size: .9rem; }
}

@media (max-height: 760px) {
  .offer-card { padding: 22px; }
  .offer-kicker { margin-bottom: 14px; }
  .amount-row { padding: 14px 18px; margin-bottom: 16px; }
  .amount-row strong { font-size: clamp(2.15rem, 6vw, 3rem); }
  .offer-card h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
  .offer-description { margin: 11px 0 12px; line-height: 1.45; }
  .benefits { margin-bottom: 14px; }
  .primary-cta { height: 48px; }
  .secondary-cta { height: 36px; margin-block: 4px; }
  .fine-print { padding-top: 10px; font-size: .57rem; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
