:root {
  --demo-bg: #0e1417;
  --demo-panel: #172126;
  --demo-panel-2: #223039;
  --demo-border: rgba(255, 181, 27, 0.32);
  --demo-accent: #ffb51b;
  --demo-accent-2: #ffd36b;
  --demo-cyan: #7fcad3;
  --demo-text: #ffffff;
  --demo-muted: #b8c5c8;
  --demo-ok: #5fd38d;
  --demo-shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
}

.demo-retention *,
.demo-app-body * {
  box-sizing: border-box;
}

.demo-post-click {
  background: var(--demo-bg);
}

.demo-retention {
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.demo-post-click footer,
.demo-post-click #promoBanner {
  display: none !important;
}

.demo-retention {
  min-height: calc(100vh - 72px);
  padding: 42px 16px 34px;
  color: var(--demo-text);
  background:
    linear-gradient(180deg, rgba(14, 20, 23, 0.9), rgba(14, 20, 23, 1)),
    url("wp-content/uploads/2026/07/banner_cta.webp") center top / cover no-repeat;
}

.demo-retention__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.demo-install-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 32px;
  border: 1px solid var(--demo-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 33, 38, 0.98), rgba(14, 20, 23, 0.97)),
    rgba(23, 33, 38, 0.96);
  box-shadow: var(--demo-shadow);
}

.demo-install-hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-retention__eyebrow {
  margin: 0 0 14px;
  color: var(--demo-accent);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.demo-retention h1 {
  max-width: 800px;
  margin: 0;
  color: var(--demo-text);
  font-size: 58px;
  line-height: 0.96;
  letter-spacing: 0;
}

.demo-retention__lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--demo-muted);
  font-size: 19px;
  line-height: 1.45;
}

.demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.demo-primary-btn,
.demo-ghost-btn,
.demo-offer-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.demo-primary-btn--large {
  min-height: 58px;
  padding: 0 24px;
  font-size: 16px;
}

.demo-primary-btn,
.demo-offer-btn {
  color: #151d21;
  background: var(--demo-accent);
}

.demo-primary-btn:hover,
.demo-offer-btn:hover {
  background: var(--demo-accent-2);
  transform: translateY(-1px);
}

.demo-primary-btn:disabled,
.demo-offer-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.demo-ghost-btn {
  min-height: 58px;
  padding: 0 20px;
  color: var(--demo-text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-ghost-btn:hover {
  border-color: var(--demo-accent);
}

.demo-install-progress {
  min-height: 42px;
  margin-top: 16px;
  padding: 10px 12px;
  display: none;
  align-items: center;
  gap: 10px;
  color: #dff9e8;
  border: 1px solid rgba(95, 211, 141, 0.34);
  border-radius: 6px;
  background: rgba(95, 211, 141, 0.1);
  font-size: 14px;
  line-height: 1.35;
}

.demo-install-progress.is-visible {
  display: inline-flex;
}

.demo-install-progress span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--demo-ok);
  box-shadow: 0 0 0 5px rgba(95, 211, 141, 0.12);
}

.demo-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.demo-proof-row span {
  min-height: 58px;
  padding: 12px;
  display: flex;
  align-items: center;
  color: #edf5f2;
  border-left: 3px solid var(--demo-accent);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.25;
}

.demo-phone-preview {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  align-self: center;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 16px;
  border: 1px solid rgba(127, 202, 211, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 48, 57, 0.98), rgba(13, 19, 22, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  opacity: 1 !important;
  transform: none !important;
}

.demo-phone-preview__top {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.demo-phone-preview__top strong {
  display: block;
  color: var(--demo-text);
  font-size: 17px;
  line-height: 1.15;
}

.demo-phone-preview__top span {
  display: block;
  margin-top: 4px;
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.2;
}

.demo-phone-preview__top img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.demo-mini-offer {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.demo-mini-offer + .demo-mini-offer {
  margin-top: 10px;
}

.demo-mini-offer--hot {
  border-color: rgba(255, 181, 27, 0.44);
  background: rgba(255, 181, 27, 0.1);
}

.demo-mini-offer span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 7px;
  color: #11181d;
  border-radius: 4px;
  background: var(--demo-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-mini-offer strong {
  display: block;
  color: var(--demo-text);
  font-size: 17px;
  line-height: 1.18;
}

.demo-mini-offer p {
  margin: 7px 0 0;
  color: var(--demo-muted);
  font-size: 13px;
  line-height: 1.35;
}

.demo-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.demo-value-item {
  min-height: 112px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(23, 33, 38, 0.9);
}

.demo-value-item strong {
  display: block;
  color: var(--demo-text);
  font-size: 17px;
  line-height: 1.15;
}

.demo-value-item span {
  display: block;
  margin-top: 9px;
  color: var(--demo-muted);
  font-size: 14px;
  line-height: 1.4;
}

.demo-app-body {
  min-height: 100vh;
  margin: 0;
  color: var(--demo-text);
  background: var(--demo-bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.demo-app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--demo-accent);
  background: rgba(17, 24, 29, 0.96);
}

.demo-app-topbar__inner {
  width: min(820px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-app-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.demo-app-brand strong,
.demo-app-balance strong {
  display: block;
  line-height: 1.1;
}

.demo-app-brand span,
.demo-app-balance span {
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.2;
}

.demo-app-balance {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(254, 177, 2, 0.35);
  background: rgba(36, 47, 56, 0.72);
  text-align: right;
}

.demo-app-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 18px 16px 36px;
}

.demo-app-hero {
  padding: 20px;
  border: 1px solid var(--demo-border);
  background: linear-gradient(135deg, #242f38, #151d21);
}

.demo-app-hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.demo-app-hero p {
  margin: 12px 0 0;
  color: var(--demo-muted);
  font-size: 16px;
  line-height: 1.45;
}

.demo-offer-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.demo-offer-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--demo-panel);
}

.demo-offer-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: #0f1519;
}

.demo-offer-card__meta {
  min-width: 0;
}

.demo-offer-card__tag {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 7px;
  color: #151d21;
  background: var(--demo-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-offer-card h2 {
  margin: 0;
  color: var(--demo-text);
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: 0;
}

.demo-offer-card p {
  margin: 7px 0 0;
  color: var(--demo-muted);
  font-size: 13px;
  line-height: 1.35;
}

.demo-offer-btn {
  min-width: 112px;
  min-height: 42px;
  padding: 0 14px;
}

@media (max-width: 820px) {
  .demo-retention {
    padding: 28px 12px;
  }

  .demo-install-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .demo-retention h1 {
    font-size: 42px;
  }

  .demo-phone-preview {
    width: min(460px, 100%);
    justify-self: center;
  }

  .demo-value-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .demo-retention {
    padding: 18px 10px 24px;
  }

  .demo-install-hero {
    gap: 20px;
    padding: 18px;
  }

  .demo-retention h1 {
    font-size: 34px;
    line-height: 1;
  }

  .demo-retention__lead {
    font-size: 16px;
  }

  .demo-hero-actions,
  .demo-proof-row,
  .demo-offer-card {
    grid-template-columns: 1fr;
  }

  .demo-hero-actions {
    display: grid;
  }

  .demo-primary-btn--large,
  .demo-ghost-btn {
    width: 100%;
  }

  .demo-app-hero h1 {
    font-size: 32px;
  }

  .demo-offer-card img {
    width: 100%;
    height: 132px;
  }

  .demo-offer-btn {
    width: 100%;
  }
}
