/* ==========================================================================
   TopAll Pro Native Promotion System — Formats A, B, C, D, E & QR Dialog
   WCAG AA Light/Dark, Forced Colors, Zero CLS, Zero Infinite Animations
   ========================================================================== */

.pro-promo-surface {
  container-type: inline-size;
  contain: layout style paint;
  position: relative;
  box-sizing: border-box;
  font-family: inherit;
  color: hsl(var(--foreground));
}

.pro-promo-surface[hidden] {
  display: none !important;
}

/* Official TopAll Pro Brand Lockups (topall.app website logo + Google Play app icon) */
.pro-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 22px;
  flex-shrink: 0;
  color: hsl(var(--brand-navy-700));
}
.pro-brand-img {
  display: block;
  height: 22px;
  width: 80px;
  object-fit: contain;
  flex-shrink: 0;
}
.pro-brand-img-dark {
  display: none;
}
:root.dark .pro-brand-img-light,
.dark .pro-brand-img-light,
.pro-wordmark-on-dark .pro-brand-img-light,
.pro-milestone-card .pro-brand-img-light {
  display: none;
}
:root.dark .pro-brand-img-dark,
.dark .pro-brand-img-dark,
.pro-wordmark-on-dark .pro-brand-img-dark,
.pro-milestone-card .pro-brand-img-dark {
  display: block;
}
.pro-wordmark-tier {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: hsl(var(--topall-orange));
}
:root.dark .pro-wordmark-tier,
.dark .pro-wordmark-tier,
.pro-wordmark-on-dark .pro-wordmark-tier,
.pro-milestone-card .pro-wordmark-tier {
  color: #fbbf24;
}
.pro-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}
.pro-app-icon {
  display: block;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(10, 26, 82, 0.18);
}
.pro-app-brand-label {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: hsl(var(--brand-navy-700));
  white-space: nowrap;
}
:root.dark .pro-app-brand-label,
.dark .pro-app-brand-label {
  color: hsl(var(--text-strong));
}
.pro-qr-dialog-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

/* Primary Pro CTA Button (5.65:1 Light / 10.8:1 Dark) */
.pro-cta-btn,
.pro-promo-surface a.pro-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding: 0.5625rem 1.125rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  background-color: hsl(var(--topall-orange));
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .pro-cta-btn:hover,
  .pro-promo-surface a.pro-cta-btn:hover {
    background-color: hsl(var(--topall-orange-dark));
    color: #ffffff;
    text-decoration: none;
  }
}
:root.dark .pro-cta-btn,
.dark .pro-cta-btn,
:root.dark .pro-promo-surface a.pro-cta-btn,
.dark .pro-promo-surface a.pro-cta-btn {
  background-color: hsl(38 92% 62%);
  color: hsl(222 47% 11%);
}
@media (hover: hover) {
  :root.dark .pro-cta-btn:hover,
  .dark .pro-cta-btn:hover,
  :root.dark .pro-promo-surface a.pro-cta-btn:hover,
  .dark .pro-promo-surface a.pro-cta-btn:hover {
    background-color: hsl(43 96% 68%);
    color: hsl(222 47% 11%);
    text-decoration: none;
  }
}

.pro-cta-btn:focus-visible,
.pro-dismiss-btn:focus-visible,
.pro-text-link:focus-visible,
.pro-wa-link:focus-visible,
.pro-qr-dialog-close:focus-visible {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Dismiss button (>= 44x44 tap target) */
.pro-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .pro-dismiss-btn:hover {
    background-color: hsl(var(--interactive-hover));
    color: hsl(var(--foreground));
  }
}

/* Secondary underlined links (QR dialog trigger & WhatsApp Parent Share) */
.pro-promo-surface .pro-text-link,
.pro-promo-surface a.pro-wa-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: hsl(var(--link));
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .pro-promo-surface .pro-text-link:hover,
  .pro-promo-surface a.pro-wa-link:hover {
    color: hsl(var(--link-hover));
  }
}

/* ==========================================================================
   Format A: Contextual Inline Diagnostic Callout
   ========================================================================== */
.pro-callout {
  margin-block-start: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--brand-navy-200));
  border-inline-start: 3px solid hsl(var(--topall-orange));
  background-color: hsl(var(--brand-navy-50));
}
:root.dark .pro-callout,
.dark .pro-callout {
  background-color: hsl(var(--brand-navy-100));
  border-color: hsl(var(--brand-navy-200));
  border-inline-start-color: hsl(38 92% 62%);
}
.pro-callout-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pro-callout-brand {
  margin-block-end: 0.25rem;
}
.pro-promo-surface .pro-callout-heading {
  margin: 0 0 0.25rem;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  color: hsl(var(--foreground));
}
.pro-promo-surface .pro-callout-body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: hsl(var(--text));
}
.pro-callout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}
@container (min-width: 520px) {
  .pro-callout-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .pro-callout-copy {
    flex: 1 1 auto;
    min-width: 0;
  }
  .pro-callout-actions {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Format B: In-Feed Native Feature Card (62/38 split @container >= 560px)
   ========================================================================== */
.pro-card {
  margin-block: 1.5rem;
  padding: 1.25rem;
  min-block-size: 184px;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--brand-navy-200));
  background-color: hsl(var(--brand-navy-50));
}
.pro-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
:root.dark .pro-card,
.dark .pro-card {
  background-color: hsl(var(--brand-navy-100));
  border-color: hsl(var(--brand-navy-200));
}
.pro-card-dismiss {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 1;
}
.pro-card-brand {
  margin-block-end: 0.5rem;
}
.pro-promo-surface .pro-card-heading {
  margin: 0 0 0.5rem;
  padding-inline-end: 2.5rem;
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}
.pro-promo-surface .pro-card-body {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: hsl(var(--text));
}
.pro-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.pro-card-secondary {
  margin-block-start: 0.25rem;
}
.pro-qr-trigger {
  display: none;
}
@media (min-width: 1024px) {
  .pro-qr-trigger {
    display: inline-flex;
  }
}
.pro-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 200px;
}
@container (min-width: 560px) {
  .pro-card-inner {
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
    align-items: center;
    gap: 1.5rem;
    padding-inline-end: 1.5rem;
  }
  .pro-promo-surface .pro-card-heading {
    padding-inline-end: 0;
  }
}

/* Inline SVG UI Miniatures */
.pro-mini-visual {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 196px;
}
.pmv-bg {
  fill: hsl(var(--surface-1));
  stroke: hsl(var(--border-soft));
  stroke-width: 1.5;
}
.pmv-chip {
  fill: hsl(var(--surface-2));
  stroke: hsl(var(--border-soft));
  stroke-width: 1;
}
.pmv-soft-accent {
  fill: hsl(var(--topall-orange-light));
  stroke: hsl(var(--topall-orange) / 0.35);
  stroke-width: 1;
}
:root.dark .pmv-soft-accent,
.dark .pmv-soft-accent {
  fill: hsl(28 56% 14%);
  stroke: hsl(38 92% 62% / 0.35);
}
.pmv-track {
  fill: hsl(var(--surface-3));
}
.pmv-navy {
  fill: hsl(var(--brand-navy-600));
}
.pmv-accent {
  fill: hsl(var(--topall-orange));
}
:root.dark .pmv-accent,
.dark .pmv-accent {
  fill: hsl(38 92% 62%);
}
.pmv-green {
  fill: hsl(var(--success-600));
}
:root.dark .pmv-green,
.dark .pmv-green {
  fill: hsl(152 69% 56%);
}
.pmv-red {
  fill: hsl(var(--danger-600));
}
:root.dark .pmv-red,
.dark .pmv-red {
  fill: hsl(0 85% 68%);
}
.pmv-thumb {
  fill: hsl(var(--surface-1));
  stroke: hsl(var(--brand-navy-600));
  stroke-width: 2;
}
.pmv-ring-bg {
  stroke: hsl(var(--surface-3));
}
.pmv-ring-fg {
  stroke: hsl(var(--topall-orange));
}
:root.dark .pmv-ring-fg,
.dark .pmv-ring-fg {
  stroke: hsl(38 92% 62%);
}
.pmv-title {
  fill: hsl(var(--foreground));
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}
.pmv-big {
  fill: hsl(var(--foreground));
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pmv-label {
  fill: hsl(var(--text));
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}
.pmv-muted {
  fill: hsl(var(--muted-foreground));
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
}
.pmv-inv {
  fill: hsl(var(--primary-foreground));
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   Format C: Desktop Sidebar Rail Card (>= 1024px ONLY)
   ========================================================================== */
.pro-rail-card {
  display: none;
}
@media (min-width: 1024px) {
  .pro-rail-card {
    display: block;
    position: sticky;
    top: 5.5rem;
    margin-block-start: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid hsl(var(--brand-navy-200));
    background-color: hsl(var(--brand-navy-50));
  }
  :root.dark .pro-rail-card,
  .dark .pro-rail-card {
    background-color: hsl(var(--brand-navy-100));
    border-color: hsl(var(--brand-navy-200));
  }
}
.pro-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.pro-rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
}
.pro-promo-surface .pro-rail-heading {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  color: hsl(var(--foreground));
}
.pro-promo-surface .pro-rail-body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: hsl(var(--text));
}
.pro-rail-qr {
  display: flex;
  justify-content: center;
  margin-block: 0.125rem;
}
.pro-promo-surface a.pro-rail-cta {
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 0.5625rem 0.75rem;
}
@container (max-width: 240px) {
  .pro-rail-inner {
    gap: 0.5rem;
  }
  .pro-promo-surface .pro-rail-heading {
    font-size: 0.9375rem;
    line-height: 1.28;
  }
  .pro-promo-surface .pro-rail-body {
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  .pro-rail-qr .pro-qr-plate {
    padding: 8px;
    gap: 0.25rem;
  }
  .pro-rail-qr .pro-qr-plate svg {
    width: 112px;
    height: 112px;
  }
  .pro-promo-surface .pro-rail-qr .pro-qr-plate .pro-qr-caption {
    max-width: 148px;
    font-size: 0.8125rem;
    line-height: 1.25;
  }
}

/* ==========================================================================
   Format D: Desktop Static Footer Band (>= 1024px, NEVER fixed sticky!)
   ========================================================================== */
.pro-footer-band {
  display: none;
}
@media (min-width: 1024px) {
  .pro-footer-band {
    display: block;
    min-block-size: 112px;
    margin-block: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid hsl(var(--brand-navy-200));
    background-color: hsl(var(--brand-navy-50));
  }
  :root.dark .pro-footer-band,
  .dark .pro-footer-band {
    background-color: hsl(var(--brand-navy-100));
    border-color: hsl(var(--brand-navy-200));
  }
}
.pro-footer-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
@container (min-width: 720px) {
  .pro-footer-band-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1.25rem;
  }
}
.pro-footer-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 0.375rem;
}
.pro-promo-surface .pro-footer-band-heading {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}
.pro-promo-surface .pro-footer-band-body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: hsl(var(--text));
}
.pro-footer-band-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pro-footer-band .pro-qr-plate {
  padding: 8px;
  gap: 0.25rem;
}

/* ==========================================================================
   Format D: Mobile Slim Bottom Strip (< 1024px ONLY, strictly 44px row height)
   ========================================================================== */
.pro-app-strip {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 45;
  box-sizing: border-box;
  contain: layout style paint;
  background-color: hsl(var(--surface-elev));
  box-shadow: inset 0 1px 0 hsl(var(--border-strong)), 0 -4px 16px rgba(14, 18, 34, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 1;
  transform: translateY(0);
}
.pro-app-strip[hidden] {
  display: none !important;
}
.pro-app-strip.is-scroll-hidden:not(:focus-within) {
  transform: translateY(100%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .pro-app-strip {
    display: none !important;
  }
}
.pro-app-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4375rem;
  box-sizing: border-box;
  min-height: 44px;
  max-height: 44px;
  height: 44px;
  padding-inline: 0.5rem 0.125rem;
  overflow: hidden;
}
.pro-app-strip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.pro-app-strip-mark .pro-app-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.pro-app-strip-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.15;
}
.pro-app-strip-l1 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pro-app-strip-l2 {
  font-size: 0.8125rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pro-app-strip-actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}
.pro-app-strip-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding-inline: 0.375rem;
  text-decoration: none;
}
.pro-app-strip-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding-inline: 0.625rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--topall-orange));
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
:root.dark .pro-app-strip-cta-pill,
.dark .pro-app-strip-cta-pill {
  background-color: hsl(38 92% 62%);
  color: hsl(222 47% 11%);
}

/* ==========================================================================
   Format E: Royal Sapphire Navy Milestone Card
   ========================================================================== */
.pro-milestone-card {
  margin-block: 1.75rem;
  padding: 1.5rem;
  min-block-size: 220px;
  border-radius: var(--radius-md);
  border: 1px solid #1e3a8a;
  background-color: #0a1a52;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.pro-milestone-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
:root.dark .pro-milestone-card,
.dark .pro-milestone-card {
  background-color: #18203a;
  border-color: #334155;
  color: #f8fafc;
}
.pro-milestone-card .pro-wordmark {
  color: #ffffff;
}
.pro-milestone-card .pro-wm-accent {
  fill: #fbbf24;
}
.pro-milestone-brand {
  margin-block-end: 0.625rem;
}
.pro-promo-surface.pro-milestone-card .pro-milestone-heading {
  margin: 0 0 0.625rem;
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.pro-promo-surface.pro-milestone-card .pro-milestone-body {
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: hsl(224 40% 86%);
}
.pro-milestone-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.pro-milestone-cta,
.pro-promo-surface.pro-milestone-card a.pro-milestone-cta,
:root.dark .pro-milestone-cta,
.dark .pro-milestone-cta,
:root.dark .pro-promo-surface.pro-milestone-card a.pro-milestone-cta,
.dark .pro-promo-surface.pro-milestone-card a.pro-milestone-cta {
  background-color: #fbbf24;
  color: #0f172a;
  text-decoration: none;
}
@media (hover: hover) {
  .pro-milestone-cta:hover,
  .pro-promo-surface.pro-milestone-card a.pro-milestone-cta:hover,
  :root.dark .pro-milestone-cta:hover,
  .dark .pro-milestone-cta:hover,
  :root.dark .pro-promo-surface.pro-milestone-card a.pro-milestone-cta:hover,
  .dark .pro-promo-surface.pro-milestone-card a.pro-milestone-cta:hover {
    background-color: #fcd34d;
    color: #0f172a;
    text-decoration: none;
  }
}
.pro-milestone-cta:focus-visible,
.pro-milestone-wa:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}
.pro-milestone-secondary {
  margin-block-start: 0.375rem;
}
.pro-promo-surface.pro-milestone-card a.pro-milestone-wa {
  color: #e2e8f0;
}
@media (hover: hover) {
  .pro-promo-surface.pro-milestone-card a.pro-milestone-wa:hover {
    color: #ffffff;
  }
}
.pro-milestone-qr {
  display: none;
}
@media (min-width: 1024px) {
  .pro-milestone-qr {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}
@container (min-width: 680px) {
  .pro-milestone-inner {
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    align-items: center;
    gap: 1.75rem;
  }
}
@media (max-width: 1023.98px) {
  .pro-milestone-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   QR Code Plate Invariant — ALWAYS #FFFFFF bg & #0F172A ink (Light & Dark!)
   ========================================================================== */
.pro-qr-plate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 12px;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background-color: #ffffff !important;
  color: #0f172a !important;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.pro-qr-plate svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.pro-promo-surface .pro-qr-plate .pro-qr-caption,
.pro-qr-dialog .pro-qr-plate .pro-qr-caption {
  margin: 0;
  max-width: 168px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #334155 !important;
}

/* ==========================================================================
   Native QR Modal Dialog (<dialog id="pro-qr-dialog">)
   ========================================================================== */
.pro-qr-dialog {
  width: calc(100% - 2rem);
  max-width: 24rem;
  margin: auto;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-lg);
  contain: layout style paint;
}
.pro-qr-dialog::backdrop {
  background: rgba(10, 26, 82, 0.58);
}
.pro-qr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-end: 0.5rem;
}
.pro-qr-dialog-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--foreground));
}
.pro-qr-dialog-desc {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
.pro-qr-dialog-body {
  display: flex;
  justify-content: center;
  margin-block-end: 1.25rem;
}
.pro-qr-dialog-foot {
  display: flex;
  justify-content: flex-end;
}
.pro-qr-dialog-close {
  min-block-size: 44px;
  min-inline-size: 88px;
  padding: 0.5rem 1.125rem;
  border-radius: 0.625rem;
  border: 1px solid hsl(var(--border-strong));
  background-color: hsl(var(--surface-2));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Calibrated Opt-in Motion (Compositor-only transform + opacity)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .pro-app-strip {
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .pro-promo-surface.is-entering {
    animation: pro-fade-up 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes pro-fade-up {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ==========================================================================
   Forced Colors (Windows High Contrast) & Print Cleanliness
   ========================================================================== */
@media (forced-colors: active) {
  .pro-promo-surface,
  .pro-qr-dialog,
  .pro-cta-btn,
  .pro-qr-dialog-close {
    border: 1px solid CanvasText !important;
  }
  .pro-app-strip {
    border-top: 1px solid CanvasText !important;
  }
  .pro-cta-btn:focus-visible,
  .pro-dismiss-btn:focus-visible,
  .pro-text-link:focus-visible,
  .pro-wa-link:focus-visible,
  .pro-qr-dialog-close:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px;
  }
  .pro-qr-plate {
    forced-color-adjust: none;
  }
}

/* Viewport mutex helpers (must stay after format display rules) */
@media (max-width: 1023.98px) {
  .pro-promo-surface.pro-desktop-only,
  .pro-desktop-only {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .pro-promo-surface.pro-mobile-only,
  .pro-mobile-only {
    display: none !important;
  }
}

@media print {
  .pro-promo-surface,
  .pro-app-strip,
  .pro-qr-dialog,
  [data-pro-slot] {
    display: none !important;
  }
}
