/* ============================================================
   Swift-J Learn — welcome / offer popup
   ============================================================

   1. ISOLATED. Every selector is scoped to #sj-welcome-popup and
      every class is prefixed sjw-. No rule here can restyle the
      homepage; no homepage rule can restyle the popup. Delete
      this file + its <link> and the site returns to exactly what
      it was. styles.css is NOT edited or overridden.

   2. BRAND COLOUR. The logo SVGs (assets/logo-black.svg,
      assets/logo-white.svg) contain #d7df23 (lime) and #8dc63f
      (green). The site's CSS tokens are --green #00e676 /
      --green-dark #01c961 — a different, far more electric green.
      Using the tokens inside the popup made it read as a separate
      product sitting next to the logo, so the accents below are
      sampled from the logo artwork itself and then darkened just
      far enough to clear WCAG AA:

        --sjw-lime   #d7df23   logo, verbatim. Backgrounds only.
        --sjw-brand  #8dc63f   logo, verbatim. Borders/decoration.
        --sjw-deep   #4e7a12   darkened. TEXT on light = 5.1:1
        --sjw-ink    #231f20   logo's near-black. 16.3:1 on white
        --sjw-band   #2f4d0b→#547617  offer card. White text on
                               both ends = 6.9:1 / 5.28:1, so the
                               big price AND the small struck-out
                               price both clear AA. (The original
                               #4e7a12→#8dc63f ramp put the price
                               on #8dc63f = 2.04:1 — a real fail.)

      Change the brand here, in one place, if it is ever re-inked.
   ============================================================ */

#sj-welcome-popup {
  --sjw-lime: #d7df23;
  --sjw-brand: #8dc63f;
  --sjw-deep: #4e7a12;
  --sjw-ink: #231f20;
  --sjw-muted: #555d66;
  --sjw-hair: #e6e9e7;
  --sjw-tint: #f1f9dd;

  /* the whole dialog is a light surface; declare it so form
     controls, scrollbars and the caret render light */
  color-scheme: light;
}

#sj-welcome-popup[hidden] { display: none !important; }

/* ============================================================
   BACKDROP
   ============================================================ */
#sj-welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;              /* above support widget (90) + toast (1200) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* notch-aware margins so the dialog never tucks under a
     rounded corner on a phone */
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background: rgba(10, 12, 11, .74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  /* stop a fling on the backdrop from chaining into the page */
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   DIALOG SHELL
   ============================================================ */
#sj-welcome-popup .sjw-dialog{
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  max-height: 90dvh;         /* dvh: correct when mobile browser
                                chrome shows/hides — vh overcounts */
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(35, 31, 32, .06),
    0 28px 80px rgba(0, 0, 0, .5);
  overflow: hidden;           /* keeps children inside the corners */
  animation: sjw-in .26s cubic-bezier(.2, .8, .3, 1) both;
}

/* transform + opacity only — compositor-friendly */
@keyframes sjw-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SCROLL PROGRESS — tells a scrolling visitor how much is left.
   transform: scaleX() so it animates on the compositor.
   ============================================================ */
#sj-welcome-popup .sjw-progress{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 4;
  background: var(--sjw-lime);
  transform: scaleX(0);
  transform-origin: left center;
  /* set from JS; --sjw-progress is written on scroll, not here */
  will-change: transform;
}

/* ============================================================
   CLOSE BUTTON
   ============================================================ */
#sj-welcome-popup .sjw-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 44px; height: 44px;      /* 44px = minimum comfortable target */
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  color: var(--sjw-ink);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--sjw-hair);
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;      /* no 300ms double-tap-zoom delay */
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease,
              border-color .15s ease, transform .15s ease;
}
#sj-welcome-popup .sjw-close:hover{ background: var(--sjw-ink); color: #fff; border-color: var(--sjw-ink); }
#sj-welcome-popup .sjw-close:active{ transform: scale(.94); }

/* ============================================================
   THE SCROLLING CONTENT AREA
   ============================================================ */
#sj-welcome-popup .sjw-body{
  flex: 1 1 auto;
  min-height: 0;                  /* required: lets the flex child
                                     actually scroll inside max-height */
  overflow-y: auto;
  overflow-x: hidden;             /* never a sideways scrollbar */
  overscroll-behavior: contain;   /* stops scroll chaining to the page */
  -webkit-overflow-scrolling: touch;
  /* Deliberately NOT scroll-behavior:smooth. Smooth scrolling on a
     scroll container makes a programmatic scrollTop = 0 animate from
     wherever it was, so a late reset leaves the visitor mid-dialog. */
  scroll-behavior: auto;
}

/* Staggered entrance. There are NINE direct <section> children
   (hero, offer, coupon, learn, get, beginner, why, terms, final)
   — count them before changing this list, or the last one silently
   loses its delay. */
#sj-welcome-popup .sjw-body > section{
  animation: sjw-rise .34s cubic-bezier(.2, .8, .3, 1) both;
}
#sj-welcome-popup .sjw-body > section:nth-of-type(1){ animation-delay: .03s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(2){ animation-delay: .07s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(3){ animation-delay: .11s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(4){ animation-delay: .15s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(5){ animation-delay: .19s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(6){ animation-delay: .23s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(7){ animation-delay: .27s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(8){ animation-delay: .31s; }
#sj-welcome-popup .sjw-body > section:nth-of-type(9){ animation-delay: .35s; }
@keyframes sjw-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   1 — HERO
   ============================================================ */
#sj-welcome-popup .sjw-hero{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  padding: 32px 34px;
  background: linear-gradient(180deg, #fbfde8 0%, #fff 66%);
  border-bottom: 1px solid #eef0ee;
}
#sj-welcome-popup .sjw-logo{
  display: block;
  width: 158px;
  height: auto;               /* intrinsic ratio preserved: 6.706:1 */
  margin-bottom: 14px;
}
/* The .sjw-brand text rule was removed with the element. The logo
   image carries the wordmark; repeating it as type was a stutter. */
#sj-welcome-popup .sjw-hero h1{
  margin: 0 0 12px;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.6px;
  color: var(--sjw-ink);
  text-wrap: balance;          /* no orphaned last word */
}
#sj-welcome-popup .sjw-hero h1 span{ color: var(--sjw-deep); }
#sj-welcome-popup .sjw-tagline{
  margin: 0 0 12px;
  font-size: clamp(16px, 2.2vw, 19px);
  /* The lines are already <strong>; this sets the base weight so the
     bolder run has somewhere to go. */
  font-weight: 700;
  line-height: 1.4;
  color: var(--sjw-ink);
  text-wrap: balance;
}
#sj-welcome-popup .sjw-tagline strong{
  font-weight: 800;
  color: var(--sjw-ink);
}
/* The middle line gets the brand accent so the three read as a set
   rather than three identical sentences. */
#sj-welcome-popup .sjw-tagline strong:nth-of-type(2){ color: var(--sjw-deep); }
#sj-welcome-popup .sjw-lede{
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--sjw-muted);
  max-width: 46ch;
  text-wrap: pretty;
}
#sj-welcome-popup .sjw-cta-row{ display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- CSS-only illustration. No image asset required. ---- */
#sj-welcome-popup .sjw-art{
  position: relative;
  border-radius: 15px;
  background: #17191a;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
#sj-welcome-popup .sjw-art-bar{ display: flex; gap: 6px; margin-bottom: 12px; }
#sj-welcome-popup .sjw-art-bar i{
  width: 9px; height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #33383a;
}
#sj-welcome-popup .sjw-art-bar i:nth-child(1){ background: #ff5f57; }
#sj-welcome-popup .sjw-art-bar i:nth-child(2){ background: #febc2e; }
#sj-welcome-popup .sjw-art-bar i:nth-child(3){ background: #28c840; }
#sj-welcome-popup .sjw-art pre{
  margin: 0;
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
  /* clamp keeps the longest code line inside the column at 320px
     without ever introducing a horizontal scrollbar */
  font-size: clamp(8.5px, 2.6vw, 12.5px);
  line-height: 1.8;
  color: #c9d1d9;
  white-space: pre;
  overflow: hidden;
}
/* blinking caret — the one bit of ambient motion in the dialog */
#sj-welcome-popup .sjw-art .cur{
  display: inline-block;
  width: .55em; height: 1.05em;
  vertical-align: text-bottom;
  background: var(--sjw-brand);
  animation: sjw-blink 1.15s steps(1, end) infinite;
}
@keyframes sjw-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* syntax-highlight colours for the code illustration */
#sj-welcome-popup .sjw-art .k { color: #c586c0; }
#sj-welcome-popup .sjw-art .s { color: #9cdcfe; }
#sj-welcome-popup .sjw-art .t { color: #4ec9b0; }
#sj-welcome-popup .sjw-art .c { color: #6a9955; }
#sj-welcome-popup .sjw-art .p { color: #dcdcaa; }

/* ============================================================
   2 — OFFER
   ============================================================ */
#sj-welcome-popup .sjw-offer {
  margin: 26px 34px 0;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: #fff;
  /* dark enough for white text at BOTH ends of the ramp — the
     ₦77,492.50 and the struck-through original both need 4.5:1 */
  background: linear-gradient(135deg, #2f4d0b 0%, #547617 100%);
  box-shadow: 0 12px 30px rgba(78, 122, 18, .34);
}
#sj-welcome-popup .sjw-offer h2{
  margin: 0 0 14px;
  font-size: clamp(14px, 2.2vw, 17px);
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sjw-lime);
  text-wrap: balance;
}
#sj-welcome-popup .sjw-offer-old{
  margin: 0;
  font-size: 15px;
  /* Fully opaque, not rgba(...,.82). At 82% it composited down to
     3.98:1 against the light end of the ramp — under AA. Opaque white
     is 5.28:1 at BOTH ends. The hierarchy still reads as secondary
     because of the smaller size and the strike-through. */
  color: #fff;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
#sj-welcome-popup .sjw-offer-label {
  margin: 12px 0 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #fff;
}
#sj-welcome-popup .sjw-offer-now{
  margin: 0 0 12px;
  /* Sized so the price always fits the narrowest supported phone:
     at 320px the offer box is ~250px wide and this renders
     ₦77,492.50 in ~181px. Verified at 320 / 390 / 900. */
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.4px;
  font-variant-numeric: tabular-nums;   /* figures line up */
  text-wrap: nowrap;                    /* never split the price */
}
#sj-welcome-popup .sjw-offer-note{
  display: inline-block;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================================
   2b — COUPON CODE
   Deliberately subordinate to the offer above it: an inset strip,
   not a second competing call to action.
   ============================================================ */
#sj-welcome-popup .sjw-coupon{
  margin: 12px 34px 0;
  padding: 18px;
  border: 1px dashed #b9cf85;
  border-radius: 15px;
  background: #fbfdea;
  text-align: center;
}
#sj-welcome-popup .sjw-coupon h3{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sjw-deep);
}
#sj-welcome-popup .sjw-coupon p{
  margin: 0 0 14px;
  font-size: 13px;
  color: #444b3b;
  line-height: 1.55;
  text-wrap: pretty;
}
#sj-welcome-popup .sjw-btn-wa{
  background: #25d366;          /* WhatsApp's own green — instantly read */
  color: #05301a;
}
#sj-welcome-popup .sjw-btn-wa:hover{ background: #1eb455; }

/* in-dialog notice; the live region lives in markup, not here */
#sj-welcome-popup .sjw-toast{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--sjw-ink);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
  animation: sjw-rise .2s ease both;
}

/* ============================================================
   3 & 4 — FEATURE GRIDS
   ============================================================ */
#sj-welcome-popup .sjw-sec{ padding: 32px 34px 0; }
#sj-welcome-popup .sjw-sec > h2{
  margin: 0 0 18px;
  font-size: clamp(17px, 2.6vw, 21px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sjw-ink);
  text-wrap: balance;
}
#sj-welcome-popup .sjw-sec > h2::after{
  content: "";
  display: block;
  width: 44px; height: 3px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--sjw-brand);
}
#sj-welcome-popup .sjw-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
#sj-welcome-popup .sjw-card{
  padding: 17px 16px;
  border: 1px solid var(--sjw-hair);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
/* These cards are NOT clickable, so they get no lift-on-hover — a
   hover lift on a static element tells the visitor it does
   something. A quiet border tint does not lie. */
#sj-welcome-popup .sjw-card:hover{
  border-color: #c9d9a0;
  box-shadow: 0 4px 14px rgba(78, 122, 18, .1);
}
#sj-welcome-popup .sjw-ico{
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: 11px;
  border-radius: 11px;
  background: var(--sjw-tint);
  font-size: 19px;
}
#sj-welcome-popup .sjw-card h3{
  margin: 0 0 5px;
  font-size: 14.5px;
  color: var(--sjw-ink);
}
#sj-welcome-popup .sjw-card p{
  margin: 0;
  font-size: 13px;
  color: var(--sjw-muted);
  line-height: 1.5;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

#sj-welcome-popup .sjw-list{ margin: 0; padding: 0; list-style: none; }
#sj-welcome-popup .sjw-list li{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 15px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #f7f9f8;
  font-size: 14px;
  font-weight: 600;
  color: var(--sjw-ink);
  overflow-wrap: break-word;
}
/* ✓ is generated content — decorative, screen readers skip it, and
   the visible label already carries the meaning */
#sj-welcome-popup .sjw-list li::before{
  content: "\2713";
  flex: 0 0 auto;
  color: var(--sjw-deep);
  font-weight: 900;
  line-height: 1.5;
}
#sj-welcome-popup .sjw-list li:last-child{ margin-bottom: 0; }

/* ============================================================
   5 & 6 — REASSURANCE / WHY
   ============================================================ */
#sj-welcome-popup .sjw-soft{
  margin: 32px 34px 0;
  padding: 28px;
  border-radius: 18px;
  background: #17191a;
  color: #eef2f0;
}
#sj-welcome-popup .sjw-soft h2{
  margin: 0 0 12px;
  font-size: clamp(17px, 2.6vw, 21px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sjw-lime);
  text-wrap: balance;
}
#sj-welcome-popup .sjw-soft p{
  margin: 0;
  font-size: 14px;
  color: #c7cfcb;
  line-height: 1.65;
  text-wrap: pretty;
}
#sj-welcome-popup .sjw-soft p + p{ margin-top: 10px; }

#sj-welcome-popup .sjw-why{ padding-top: 32px; }
#sj-welcome-popup .sjw-why p{
  margin: 0;
  font-size: 14.5px;
  color: var(--sjw-muted);
  line-height: 1.7;
  text-wrap: pretty;
}
#sj-welcome-popup .sjw-why p + p{ margin-top: 10px; }

/* ============================================================
   7 — T&C
   ============================================================ */
#sj-welcome-popup .sjw-terms{ padding: 26px 34px 0; }
#sj-welcome-popup .sjw-terms-toggle{
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px;                /* touch target */
  padding: 10px 18px;
  font: inherit; font-size: 12.5px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--sjw-deep);
  background: var(--sjw-tint);
  border: 1px solid #b9cf85;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
#sj-welcome-popup .sjw-terms-toggle:hover{ background: #e6f2c8; border-color: var(--sjw-brand); }
#sj-welcome-popup .sjw-terms-toggle::after{
  content: "+";
  font-size: 16px; line-height: 1;
}
#sj-welcome-popup .sjw-terms-toggle[aria-expanded="true"]::after{ content: "\2212"; }
#sj-welcome-popup .sjw-terms-panel{
  margin: 12px 0 0;
  padding: 15px 17px;
  border-left: 3px solid var(--sjw-brand);
  border-radius: 0 11px 11px 0;
  background: #f7f9f8;
  font-size: 13px;
  color: var(--sjw-muted);
  line-height: 1.65;
  text-wrap: pretty;
}

/* The two payment-option lines inside the T&C panel. A real <ul> so
   assistive tech announces two items, not one run-on sentence. */
#sj-welcome-popup .sjw-terms-panel > p{ margin: 0; }
#sj-welcome-popup .sjw-terms-list{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
#sj-welcome-popup .sjw-terms-list li{
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sjw-muted);
}
#sj-welcome-popup .sjw-terms-list li + li{ margin-top: 2px; }
/* Decorative tick — the visible label carries the meaning. */
#sj-welcome-popup .sjw-terms-list li::before{
  content: "\2713";
  flex: 0 0 auto;
  color: var(--sjw-deep);
  font-weight: 900;
}
#sj-welcome-popup .sjw-terms-list strong{ color: var(--sjw-ink); }

/* ============================================================
   8 — FINAL CTA
   ============================================================ */
#sj-welcome-popup .sjw-final{
  margin-top: 32px;
  padding: 30px 34px 32px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fbfde8 100%);
  border-top: 1px solid #eef0ee;
}
#sj-welcome-popup .sjw-final h2{
  margin: 0 0 8px;
  font-size: clamp(19px, 3vw, 25px);
  color: var(--sjw-ink);
  text-wrap: balance;
}
#sj-welcome-popup .sjw-final p{
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--sjw-muted);
  text-wrap: pretty;
}

/* ============================================================
   UTILITIES
   ============================================================ */
/* A price or a brand name is one token. It must never wrap across
   two lines, and it must never be auto-translated into something
   else — hence the paired translate="no" in the markup. */
#sj-welcome-popup .sjw-nb{ white-space: nowrap; }

/* Screen-reader-only live region. Must stay in the accessibility
   tree and stay rendered — display:none or visibility:hidden would
   silence the announcement it exists to carry. */
#sj-welcome-popup .sjw-live{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
#sj-welcome-popup .sjw-btn{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;                /* comfortable touch target */
  padding: 13px 26px;
  font: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: .3px;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease,
              border-color .15s ease, transform .12s ease;
}
#sj-welcome-popup .sjw-btn:active{ transform: translateY(1px); }
/* Primary uses the logo's own lime with near-black text: 11.4:1,
   versus 1.9:1 for the white-on-lime alternative. */
#sj-welcome-popup .sjw-btn-primary{ background: var(--sjw-lime); color: #241f05; }
#sj-welcome-popup .sjw-btn-primary:hover{ background: #c9d216; }
#sj-welcome-popup .sjw-btn-ghost{
  background: #fff;
  color: var(--sjw-ink);
  border-color: #d6d9d8;
}
#sj-welcome-popup .sjw-btn-ghost:hover{ border-color: var(--sjw-ink); background: #f7f7f7; }
#sj-welcome-popup .sjw-btn-lg{ min-height: 54px; font-size: 16.5px; padding: 15px 30px; }
#sj-welcome-popup .sjw-btn-block{ display: flex; width: 100%; }

#sj-welcome-popup .sjw-linkish{
  margin-top: 16px;
  min-height: 44px;
  padding: 11px 8px;
  font: inherit; font-size: 13.5px;
  color: var(--sjw-muted);
  background: none; border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease;
}
#sj-welcome-popup .sjw-linkish:hover{ color: var(--sjw-deep); }

/* ============================================================
   FOCUS
   :focus-visible so the ring never shows on mouse click.
   #3f6410 clears 3:1 against BOTH the white dialog (6.9) and the
   lime button it has to be visible on (4.76).
   ============================================================ */
#sj-welcome-popup :focus-visible {
  outline: 3px solid #3f6410;
  outline-offset: 2px;
  border-radius: 4px;
}
#sj-welcome-popup .sjw-btn:focus-visible,
#sj-welcome-popup .sjw-close:focus-visible{ outline-offset: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* tablet: 3-up cards get cramped before the phone breakpoint */
  #sj-welcome-popup .sjw-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #sj-welcome-popup { padding: 10px; }
  #sj-welcome-popup .sjw-dialog{
    /* The 10px backdrop padding above already supplies the small
       all-round margin, so the dialog fills what is left. Adding
       another -20px here would double-count it. */
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 18px;
  }
  #sj-welcome-popup .sjw-hero{ grid-template-columns: 1fr; padding: 28px 20px 24px; gap: 22px; }
  #sj-welcome-popup .sjw-logo{ width: 138px; }
  #sj-welcome-popup .sjw-cta-row{ flex-direction: column; }
  #sj-welcome-popup .sjw-cta-row .sjw-btn{ width: 100%; }
  #sj-welcome-popup .sjw-offer{ margin: 20px 16px 0; padding: 22px 16px; }
  #sj-welcome-popup .sjw-coupon{ margin: 10px 16px 0; padding: 17px 15px; }
  #sj-welcome-popup .sjw-coupon .sjw-btn{ width: 100%; }
  #sj-welcome-popup .sjw-sec{ padding: 26px 18px 0; }
  #sj-welcome-popup .sjw-grid{ grid-template-columns: 1fr; }
  #sj-welcome-popup .sjw-soft{ margin: 26px 16px 0; padding: 24px 20px; }
  #sj-welcome-popup .sjw-terms{ padding: 24px 18px 0; }
  #sj-welcome-popup .sjw-final{ padding: 26px 18px 28px; }
  #sj-welcome-popup .sjw-close{ top: 8px; right: 8px; }
  #sj-welcome-popup .sjw-progress{ height: 4px; }   /* easier to see on a small screen */
}

/* very narrow phones — kill the remaining horizontal padding */
@media (max-width: 360px) {
  #sj-welcome-popup { padding: 6px; }
  #sj-welcome-popup .sjw-offer{ margin: 16px 10px 0; }
  #sj-welcome-popup .sjw-coupon{ margin: 10px 10px 0; }
  #sj-welcome-popup .sjw-soft{ margin: 22px 10px 0; }
  #sj-welcome-popup .sjw-sec,#sj-welcome-popup .sjw-terms,#sj-welcome-popup .sjw-final{ padding-left: 14px; padding-right: 14px; }
  #sj-welcome-popup .sjw-btn{ padding-left: 16px; padding-right: 16px; font-size: 14.5px; }
  #sj-welcome-popup .sjw-btn-lg{ font-size: 15.5px; padding: 14px 18px; }
}

/* Scrollbar, pointer devices only */
@media (min-width: 769px) and (pointer: fine) {
  #sj-welcome-popup .sjw-body::-webkit-scrollbar{ width: 10px; }
  #sj-welcome-popup .sjw-body::-webkit-scrollbar-thumb{
    background: #cfd6d2;
    border-radius: 999px;
    border: 3px solid #fff;
  }
  #sj-welcome-popup .sjw-body::-webkit-scrollbar-thumb:hover{ background: #aab4af; }
}

/* Landscape phone — the dialog is shorter than it is wide, so keep
   as much height as possible */
@media (max-height: 560px) {
  #sj-welcome-popup .sjw-dialog{ max-height: 96vh; max-height: 96dvh; }
  #sj-welcome-popup .sjw-hero{ padding-top: 24px; padding-bottom: 20px; }
}

/* ============================================================
   REDUCED MOTION
   Kill every animation, including the caret blink. Nothing here
   carries information that a still frame loses.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #sj-welcome-popup .sjw-dialog,
  #sj-welcome-popup .sjw-body > section,
  #sj-welcome-popup .sjw-art .cur,
  #sj-welcome-popup .sjw-toast{ animation: none !important; }
  #sj-welcome-popup .sjw-body{ scroll-behavior: auto; }
  #sj-welcome-popup .sjw-btn,
  #sj-welcome-popup .sjw-close,
  #sj-welcome-popup .sjw-card,
  #sj-welcome-popup .sjw-terms-toggle,
  #sj-welcome-popup .sjw-linkish{ transition-duration: .01ms !important; }
  #sj-welcome-popup .sjw-btn:active,#sj-welcome-popup .sjw-close:active{ transform: none; }
}
