/* ============================================================
   OFFER DIALOG
   A centred card over a dimmed page, shown once per visitor.
   Tokens only. No new hues.
   ============================================================ */

.offer[hidden] { display: none; }

.offer {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.offer-scrim {
  position: absolute; inset: 0;
  background: rgba(4, 6, 10, .68);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t) var(--e-out);
}

.offer-card {
  position: relative;
  width: 100%; max-width: 430px;
  padding: 34px 34px 26px;
  text-align: center;
  background: rgba(12, 17, 26, .96);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95);
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: opacity var(--t) var(--e-out), transform var(--t) var(--e-out);
}
/* A single accent hairline along the top edge, the same fading-rule device the
   section eyebrows use, so the dialog reads as part of the same system. */
.offer-card::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
}

/* .is-open is added a frame after the dialog is unhidden, so the transition has
   a start state to animate from rather than snapping straight to the end. */
.offer.is-open .offer-scrim { opacity: 1; }
.offer.is-open .offer-card { opacity: 1; transform: none; }

.offer-x {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-xs);
  background: transparent; color: var(--text-mute);
  cursor: pointer;
  transition: color var(--t), background var(--t);
}
.offer-x:hover { color: var(--text); background: var(--surface); }
.offer-x svg { width: 17px; height: 17px; }

.offer-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}

.offer-title {
  margin-top: 14px;
  font-size: clamp(28px, 4.4vw, 34px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  color: var(--text);
}
.offer-accent {
  color: var(--accent);
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .offer-accent { color: transparent; -webkit-text-fill-color: transparent; }
}

.offer-body {
  margin-top: 12px;
  font-size: 15px; line-height: 1.6; color: var(--text-dim);
}

.offer-claim { margin-top: 24px; width: 100%; }

.offer-note {
  margin-top: 14px;
  font-size: 12.5px; color: var(--text-mute);
}
.offer-note.is-done { color: var(--safe); }

@media (max-width: 480px) {
  .offer-card { padding: 30px 22px 22px; }
}

/* Reduced motion: it still appears and still works, it just does not travel. */
@media (prefers-reduced-motion: reduce) {
  .offer-scrim, .offer-card { transition: none; }
  .offer-card { transform: none; }
}
