:root {
  color-scheme: light;
  --accent: #00a88f;
  --accent-contrast: #ffffff;
  --background: #f1f3f8;
  --card: #ffffff;
  --ink: #14213d;
  --muted: #60708d;
  --line: #dfe4ee;
  --danger: #a32d3a;
  --shadow: 0 12px 32px rgba(20, 33, 61, 0.1);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #dfe3ec;
  color: var(--ink);
}

body {
  min-width: 240px;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, white);
  outline-offset: 2px;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--background);
  box-shadow: 0 0 48px rgba(20, 33, 61, 0.14);
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(223, 228, 238, 0.75);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(18px);
}

.wordmark {
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}

.wordmark span {
  color: var(--accent);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  place-items: center;
}

.icon-button span {
  transform: translateY(-1px);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.intro {
  padding: 24px 18px 18px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.intro h1,
.detail-content > h1 {
  margin-bottom: 10px;
  font-size: clamp(25px, 8.4vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.intro > p:last-child,
.detail-description,
.eligibility p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.offer-list {
  display: grid;
  gap: 14px;
  padding: 0 14px 28px;
}

.offer-card {
  display: grid;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.offer-card:active {
  transform: scale(0.992);
}

.offer-card.is-unavailable .offer-image {
  filter: saturate(0.35);
  opacity: 0.72;
}

.offer-image-wrap {
  position: relative;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: #dfe4ee;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-image-wrap .benefit-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 4px 16px rgba(20, 33, 61, 0.18);
}

.benefit-tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.offer-copy {
  padding: 15px 16px 17px;
}

.offer-copy h2 {
  margin-bottom: 6px;
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.offer-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.detail-view {
  padding-bottom: 98px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px 14px 12px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.back-button span {
  color: var(--accent);
  font-size: 20px;
}

.detail-image {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #dfe4ee;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-content {
  padding: 20px 18px 24px;
}

.detail-content > .benefit-tag {
  margin-bottom: 12px;
}

.detail-description {
  font-size: 16px;
}

.eligibility {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.eligibility h2 {
  margin-bottom: 5px;
  font-size: 15px;
}

.activation-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.activation-status[data-state="loading"]::before {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

.activation-status[data-state="error"] {
  color: var(--danger);
}

.success-card {
  margin-top: 18px;
  padding: 22px 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 23px;
  font-weight: 800;
  place-items: center;
}

.success-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.success-card > p:not(.eyebrow) {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.discount-code {
  display: block;
  padding: 12px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(16px, 5.5vw, 21px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.action-bar {
  position: fixed;
  z-index: 8;
  right: max(0px, calc((100vw - 420px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 420px) / 2));
  max-width: 420px;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(241, 243, 248, 0.94);
  backdrop-filter: blur(18px);
}

.primary-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.toast {
  position: fixed;
  z-index: 20;
  right: max(12px, calc((100vw - 396px) / 2));
  bottom: 20px;
  left: max(12px, calc((100vw - 396px) / 2));
  max-width: 396px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 279px) {
  .app-header {
    min-height: 56px;
    padding-inline: 12px;
  }

  .intro,
  .detail-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .offer-list {
    padding-right: 9px;
    padding-left: 9px;
  }

  .offer-card,
  .detail-image {
    border-radius: 17px;
  }

  .detail-image {
    width: calc(100% - 18px);
    margin-inline: 9px;
  }

  .intro h1,
  .detail-content > h1 {
    font-size: 24px;
  }

  .offer-copy {
    padding: 12px;
  }

  .action-bar {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
