/* Secure Funnels - shared fixes and polish (loaded after each page's own styles). */

/* ── 1. NO MORE BLACK FLASH WHILE SCROLLING */
html { background: #fff; }
/* The see-through blurred menu re-blurred the moving background on every frame. Solid white looks the same. */
#nav { background: rgba(255,255,255,0.98) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* Every section kept a leftover "entrance" layer after loading. Removed: it used memory on phones and caused flicker. */
body > *:not(#particle-canvas) { animation: none !important; }
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; z-index: 0; opacity: .22; }
@media (max-width: 1023px) { #particle-canvas { display: none !important; } }

#scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#1A6BF0,#3B82F6); z-index: 9999; transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ── 2. CONTENT IS NEVER STUCK HIDDEN
   Fade-in effects only apply when the script is running. */
html:not(.js) .reveal, html:not(.js) .reveal-left, html:not(.js) .reveal-right,
html:not(.js) .s-reveal, html:not(.js) .s-reveal-left, html:not(.js) .s-reveal-right, html:not(.js) .s-reveal-scale { opacity: 1 !important; transform: none !important; }
.s-reveal.in, .s-reveal-left.in, .s-reveal-right.in, .s-reveal-scale.in { opacity: 1; transform: none; }
@media (max-width: 768px) {
  /* Phones: items used to stay shifted 20px down after appearing */
  .s-reveal.in, .s-reveal-left.in, .s-reveal-right.in { transform: none !important; }
}

/* ── 3. MOBILE MENU */
.hamburger span { transition: transform .3s ease, opacity .2s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav.open { animation: sfMenu .22s ease both; }
@keyframes sfMenu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Logo and name always sit side by side (some pages were missing this) */
.nav-logo { display: flex; align-items: center; gap: 10px; }

/* ── 4. LOGO SHINE (soft glossy sweep + gentle glow on hover) */
.sf-logo { position: relative; display: inline-flex; flex-shrink: 0; line-height: 0; border-radius: 10px; transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.sf-shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255,255,255,.95) 48%, rgba(255,214,231,.85) 52%, transparent 62%, transparent 100%);
  background-size: 300% 100%; background-position: 130% 0; background-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  mix-blend-mode: screen; animation: sfShine 5s ease-in-out infinite 1.2s; }
.sf-logo-foot .sf-shine { mix-blend-mode: normal; opacity: .9; }
@keyframes sfShine { 0% { background-position: 130% 0; } 28%, 100% { background-position: -30% 0; } }
.nav-logo:hover .sf-logo { transform: perspective(300px) rotateY(-12deg) scale(1.06); filter: drop-shadow(0 4px 10px rgba(26,107,240,.35)); }
.nav-logo:hover .sf-shine { animation-duration: 1.4s; animation-delay: 0s; }

/* ── 5. 3D CARDS (desktop hover): depth, light glare that follows the mouse */
.tilt-card { transform-style: preserve-3d; }
.tilt-card.is-tilting { transition: transform .08s linear, box-shadow .3s ease !important; box-shadow: 0 24px 60px rgba(13,21,38,.14), 0 6px 18px rgba(26,107,240,.12) !important; }
.sf-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,.55), rgba(255,255,255,0) 55%); }
.tilt-card.is-tilting .sf-glare { opacity: 1; }
.price-card.popular { box-shadow: 0 0 0 4px rgba(26,107,240,.10), 0 18px 44px rgba(26,107,240,.16); }
.popular-badge { box-shadow: 0 6px 16px rgba(26,107,240,.35); animation: sfBadge 2.8s ease-in-out infinite; }
@keyframes sfBadge { 0%,100% { box-shadow: 0 6px 16px rgba(26,107,240,.35); } 50% { box-shadow: 0 6px 24px rgba(26,107,240,.6); } }

/* ── 6. PRICING BITS SHARED BY HOME + PRICING PAGE */
.sf-strip { max-width: 1200px; margin: 22px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 20px 26px; border-radius: var(--radius-lg,22px); background: #fff; border: 1.5px solid var(--gray-200,#D1DCF0); text-align: left; }
.sf-strip p { font-size: 14px; color: var(--gray-600,#4A5878); margin: 0; flex: 1; min-width: 240px; line-height: 1.6; }
.sf-strip p strong { color: var(--dark,#0D1526); font-size: 16px; }
.sf-note { text-align: center; font-size: 13px; color: var(--gray-400,#8FA3C8); margin-top: 18px; }
.price-hint { font-size: 12px; font-weight: 600; color: var(--gray-400,#8FA3C8); margin-top: 8px; }
.price-amount .price-range { font-size: inherit; font-weight: inherit; color: inherit; }
/* "From" sits on the same line as the price so all plan prices line up */
.price-amount .price-from { display: inline-block !important; margin: 0 6px 0 0 !important; vertical-align: 14px; }
.price-amount.price-custom { font-size: 30px; letter-spacing: -.8px; line-height: 1.15; }

.sf-mini-grid { max-width: 1200px; margin: 22px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: left; }
.sf-mini { display: flex; flex-direction: column; position: relative; background: #fff; border: 1.5px solid var(--gray-200,#D1DCF0); border-radius: var(--radius-lg,22px); padding: 26px 28px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.sf-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue,#1A6BF0); }
.sf-mini h3 { font-size: 19px; font-weight: 800; color: var(--dark,#0D1526); margin: 0 0 12px; }
.sf-mini-rows { flex: 1; list-style: none; margin: 0 0 18px; padding: 0; }
.sf-mini-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100,#EEF2F8); font-size: 14px; color: var(--gray-600,#4A5878); }
.sf-mini-rows li b { color: var(--dark,#0D1526); font-size: 16px; white-space: nowrap; }
.sf-mini-rows li small { display: block; font-size: 12px; color: var(--gray-400,#8FA3C8); }
.sf-more { text-align: center; margin-top: 30px; }
@media (max-width: 1024px) { .pricing-grid.sf-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .sf-mini-grid, .pricing-grid.sf-3 { grid-template-columns: 1fr; } .sf-strip { padding: 18px 20px; } }

/* ── 7. PRICING PAGE: animated service tabs */
.sf-tabs-wrap { display: flex; justify-content: center; margin: 34px 0 10px; padding: 0 4px; }
.sf-tabs { position: relative; display: inline-flex; gap: 2px; background: #fff; border: 1.5px solid var(--gray-200,#D1DCF0); border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(26,107,240,.10); max-width: 100%; }
.sf-tabs [role="tab"] { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--gray-600,#4A5878); padding: 11px 20px; border-radius: 11px; white-space: nowrap; transition: color .25s ease; display: inline-flex; align-items: center; gap: 8px; }
.sf-tabs [role="tab"][aria-selected="true"] { color: #fff; }
.sf-tabs [role="tab"]:focus-visible { outline: 2px solid var(--blue,#1A6BF0); outline-offset: 2px; }
.sf-pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 11px; background: linear-gradient(135deg,#1A6BF0,#3B82F6); box-shadow: 0 8px 20px rgba(26,107,240,.35); transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1); }
.sf-panel[hidden] { display: none; }
.sf-panel { padding-top: 26px; }
.sf-panel-head { text-align: center; max-width: 720px; margin: 0 auto; }
.sf-panel-head h2 { font-size: clamp(24px,3.4vw,36px); }
.js .sf-panel.sf-show .sf-a { animation: sfRise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i,0) * 90ms); }
.js .sf-panel.sf-show .sf-panel-head { animation: sfFade .45s ease both; }
@keyframes sfRise { from { opacity: 0; transform: translateY(22px) rotateX(8deg); } to { opacity: 1; transform: none; } }
@keyframes sfFade { from { opacity: 0; } to { opacity: 1; } }
.sf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 24px auto 0; }
.sf-chips span { background: #fff; border: 1.5px solid var(--gray-200,#D1DCF0); border-radius: 100px; padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--gray-600,#4A5878); transition: border-color .2s, color .2s, transform .2s; }
.sf-chips span:hover { border-color: var(--blue,#1A6BF0); color: var(--blue,#1A6BF0); transform: translateY(-2px); }
.pricing-grid.sf-2 { grid-template-columns: 1fr 1fr; max-width: 880px; margin-left: auto; margin-right: auto; }
.pricing-grid.sf-3 { grid-template-columns: repeat(3,1fr); }
.price-rows { list-style: none; margin: 16px 0 4px; padding: 0; }
.price-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100,#EEF2F8); font-size: 14px; color: var(--gray-600,#4A5878); }
.price-rows li b { font-size: 26px; font-weight: 900; color: var(--dark,#0D1526); letter-spacing: -.5px; }
.price-rows li small { color: var(--gray-400,#8FA3C8); font-size: 12px; }
.price-card { display: flex; flex-direction: column; }
.price-card .price-features { flex: 1; }
.sf-hero3d { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sf-hero3d i { position: absolute; border-radius: 28%; background: linear-gradient(145deg, rgba(59,130,246,.22), rgba(26,107,240,.05)); border: 1px solid rgba(26,107,240,.15); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 20px 40px rgba(26,107,240,.10); animation: sfFloat 9s ease-in-out infinite; }
.sf-hero3d i:nth-child(1) { width: 120px; height: 120px; left: 7%; top: 30%; transform: rotate(18deg); }
.sf-hero3d i:nth-child(2) { width: 70px; height: 70px; right: 10%; top: 24%; animation-delay: -3s; border-radius: 50%; }
.sf-hero3d i:nth-child(3) { width: 90px; height: 90px; right: 18%; bottom: 8%; animation-delay: -6s; transform: rotate(-14deg); }
@keyframes sfFloat { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -16px; rotate: 8deg; } }
@media (max-width: 1024px) { .pricing-grid.sf-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .pricing-grid.sf-2, .pricing-grid.sf-3 { grid-template-columns: 1fr; }
  .sf-tabs { width: 100%; }
  .sf-tabs [role="tab"] { flex: 1; justify-content: center; padding: 10px 6px; font-size: 13px; }
  .sf-tabs [role="tab"] .sf-ic { display: none; }
  .sf-hero3d { display: none; }
}
@media (max-width: 420px) { .sf-tabs { padding: 4px; } .sf-pill { top: 4px; bottom: 4px; } .sf-tabs [role="tab"] { font-size: 12.5px; padding: 10px 4px; } }

/* ── 8. RESPECT "REDUCE MOTION" */
@media (prefers-reduced-motion: reduce) {
  .sf-shine, .popular-badge, .sf-hero3d i, .mobile-nav.open { animation: none !important; }
  .js .sf-panel.sf-show .sf-a, .js .sf-panel.sf-show .sf-panel-head { animation: none !important; }
  .sf-pill { transition: none; }
}
