/* Trade Guard extras (V49): welcome splash, launch-offer countdown, "Four months free" highlight.
   External file on purpose: the Content-Security-Policy blocks inline styles and scripts. */

/* ---------- yellow highlighter ---------- */
.yh { position: relative; display: inline-block; overflow: hidden; font-weight: 750; padding: 1px 8px; border-radius: 5px; color: #1a1400;
  background: linear-gradient(transparent 0, #f5c542 0) no-repeat 0 0 / 0% 100%; transition: background-size .9s cubic-bezier(.2,.7,.2,1) .15s; }
.yh.on { background-size: 100% 100%; }
.yh::after, .fm-t::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 26%; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); }
.yh.on::after { animation: tgShine 3.6s ease-in-out 1.2s infinite; }
@keyframes tgShine { 0% { left: -40%; opacity: 0; } 8% { opacity: 1; } 30% { left: 115%; opacity: 0; } 100% { left: 115%; opacity: 0; } }

/* ---------- launch offer ---------- */
.offer-bar { background: #14203a; border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: center; font-size: 14px; color: var(--ink-2); }
.offer-bar[hidden], .offer-line[hidden], .offer-card[hidden], .price .was[hidden] { display: none !important; }
.offer-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f5c542; margin-right: 8px; animation: tgPulse 1.6s ease-in-out infinite; }
@keyframes tgPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.offer-note { margin: 0 6px 0 10px; color: var(--ink-2); }
.offer-line { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
.offer-card { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.tm { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tb { display: inline-block; background: #1a2438; border: 1px solid #2b3a58; border-radius: 6px; padding: 1px 7px; margin: 0 2px; color: #f5c542; }
.price .was { font-size: 22px; font-weight: 500; color: var(--ink-3); margin-left: 12px; text-decoration: line-through; font-variation-settings: 'wdth' 100; }

/* ---------- "Four months free" highlight ---------- */
.plan li.fm svg { color: #2DC48D; overflow: visible; }
.plan li.fm svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.plan li.fm .fm-t { position: relative; display: inline-block; overflow: hidden; font-weight: 750; color: #fff; padding: 1px 6px; margin-left: -6px; border-radius: 5px;
  background: linear-gradient(transparent 22%, rgba(45,196,141,.7) 22%) no-repeat 0 0 / 0% 100%; transition: background-size .9s cubic-bezier(.2,.7,.2,1) .45s; }
.plan li.fm.on svg { animation: fmPop .6s cubic-bezier(.2,1.5,.4,1) .1s both; }
.plan li.fm.on svg path { animation: fmDraw .45s ease .2s forwards; }
.plan li.fm.on .fm-t { background-size: 100% 100%; }
.plan li.fm.on .fm-t::after { animation: tgShine 4s ease-in-out 1.9s infinite; }
@keyframes fmDraw { to { stroke-dashoffset: 0; } }
@keyframes fmPop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- welcome splash (every visit, homepage only) ---------- */
#tg-splash { position: fixed; inset: 0; z-index: 99999; background: #0B1220; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; color: #E8EDF5; transition: opacity .7s ease, transform .9s ease; }
#tg-splash.tg-out { opacity: 0; transform: scale(1.06); pointer-events: none; }
#tg-splash .sp-brand { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; }
#tg-splash .sp-logo { width: clamp(38px, 5vw, 58px); height: auto; flex: none; opacity: 0; transform: scale(.6); transition: opacity .5s ease, transform .6s cubic-bezier(.2,1.4,.4,1); }
#tg-splash .sp-logo.show { opacity: 1; transform: none; animation: spGlow 2.4s ease-in-out .8s infinite; }
@keyframes spGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(245,166,35,0)); } 50% { filter: drop-shadow(0 0 14px rgba(245,166,35,.55)); } }
#tg-splash .sp-name { white-space: nowrap; font: 800 clamp(19px, 3.4vw, 38px)/1 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; letter-spacing: -.3px; }
#tg-splash .sp-quote { margin-top: 34px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(26px, 5vw, 42px); line-height: 1.3; max-width: 760px; }
#tg-splash .sp-w { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; margin-right: .26em; }
#tg-splash .sp-line { width: 0; height: 2px; background: #2DC48D; margin: 22px auto; transition: width .6s ease; }
#tg-splash .sp-line.show { width: 48px; }
#tg-splash .sp-plan { font: 800 clamp(22px, 3.6vw, 30px)/1.15 'Archivo', sans-serif; font-variation-settings: 'wdth' 90; letter-spacing: -.2px; }
#tg-splash .sp-plan b { color: #2DC48D; font-weight: 800; }
#tg-splash .sp-fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
#tg-splash .show { opacity: 1; transform: none; }
#tg-splash .sp-track { margin-top: 30px; width: 150px; height: 3px; background: #1a2438; border-radius: 2px; overflow: hidden; }
#tg-splash .sp-bar { width: 0; height: 100%; background: #2DC48D; transition: width 4.2s linear; }
#tg-splash .sp-bar.go { width: 100%; }
#tg-splash .sp-skip { position: absolute; right: 20px; bottom: 18px; background: transparent; border: none; color: #8793A9; font-size: 13px; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .yh { background-size: 100% 100%; transition: none; }
  .plan li.fm svg path { stroke-dashoffset: 0; animation: none; }
  .plan li.fm .fm-t { background-size: 100% 100%; transition: none; }
  .plan li.fm.on svg, .yh.on::after, .plan li.fm.on .fm-t::after, .offer-dot, #tg-splash .sp-logo.show { animation: none; }
  #tg-splash, #tg-splash * { transition-duration: .01s !important; }
}
