/* Infrared Techno — site styles: effects, article components, CTA widgets.
   Brand: pink #E51A49, deep purple #10061B, violet accent #B44DFF. */

/* ---------- Scroll progress ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 10005; background: linear-gradient(90deg, #E51A49, #FF5C86, #B44DFF); box-shadow: 0 0 12px rgba(229,26,73,.6); transition: width .08s linear; }

/* ---------- Hero canvas (neural network) ---------- */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -5; opacity: .9; }
.hero-vignette { position: absolute; inset: 0; z-index: -4; background: radial-gradient(ellipse at 30% 40%, transparent 0%, hsl(var(--bg-dark-hsl)/.4) 55%, hsl(var(--bg-dark-hsl)) 100%); pointer-events: none; }

/* ---------- Rotating typed word ---------- */
.typed-word { display: inline-block; min-width: 1ch; border-right: .08em solid #FF5C86; padding-right: .06em; animation: caret 1s steps(1) infinite; white-space: nowrap; }
@keyframes caret { 50% { border-color: transparent; } }

/* ---------- Spotlight + tilt cards ---------- */
.spotlight { position: relative; overflow: hidden; isolation: isolate; }
.spotlight::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(229,26,73,.18), transparent 45%); }
.spotlight:hover::before { opacity: 1; }
.tilt-card { transform-style: preserve-3d; transition: transform .25s ease, border-color .25s, box-shadow .25s; will-change: transform; }
.tilt-card:hover { box-shadow: 0 20px 50px -20px rgba(229,26,73,.35); border-color: rgba(229,26,73,.35); }

/* ---------- Animated gradient border ---------- */
.glow-border { position: relative; border-radius: 1.25rem; }
.glow-border::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), #E51A49, #B44DFF, #22c55e, #E51A49); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 6s linear infinite; pointer-events: none; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scramble labels ---------- */
.scramble { font-variant-numeric: tabular-nums; }

/* ---------- Pulse ring CTA ---------- */
.pulse-ring { position: relative; }
.pulse-ring::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(229,26,73,.6); animation: ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }

/* ---------- Floating orbs ---------- */
.orb { position: absolute; border-radius: 9999px; filter: blur(80px); pointer-events: none; animation: float 14s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-40px); } }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1003; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #ffffff; border-top: 1px solid #e5e7eb; box-shadow: 0 -8px 30px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom); }
.mobile-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 4px; font-size: 11px; font-weight: 700; color: #10061B; text-transform: uppercase; letter-spacing: .04em; }
.mobile-cta a i { font-size: 18px; }
.mobile-cta a.wa i { color: #16a34a; }
.mobile-cta a.call i { color: #C8123E; }
.mobile-cta a.quote { background: #C8123E; color: #fff; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 62px; } .float-hide-mobile { display: none !important; } }

/* ---------- Lead popup ---------- */
.lead-modal { position: fixed; inset: 0; z-index: 10020; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(8,4,14,.75); backdrop-filter: blur(6px); }
.lead-modal.open { display: flex; animation: fadeInModal .3s ease; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.lead-modal .panel { width: 100%; max-width: 460px; }
.lead-modal .panel-inner { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 1rem; }

/* Dark, thin scrollbars everywhere (no white OS scrollbars on the dark theme) */
html { color-scheme: dark; scrollbar-color: rgba(229,26,73,.45) #0d0614; }
html[data-theme="light"] { color-scheme: light; scrollbar-color: rgba(229,26,73,.45) #efeaf4; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(229,26,73,.6); }
html::-webkit-scrollbar-track { background: #0d0614; }

/* ---------- Article components (blog + rich content) ---------- */
.article-body .lead { font-size: 1.2rem; color: #ece6f2; line-height: 1.75; }
.article-body .key-takeaways { border: 1px solid rgba(229,26,73,.35); background: linear-gradient(135deg, rgba(229,26,73,.10), rgba(180,77,255,.06)); border-radius: 1rem; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.article-body .key-takeaways h3 { margin-top: 0 !important; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #FF5C86 !important; }
.article-body .key-takeaways ul { margin-bottom: 0; }
.article-body .callout { border-left: 4px solid #B44DFF; background: rgba(180,77,255,.08); padding: 1rem 1.25rem; border-radius: 0 .75rem .75rem 0; margin: 1.75rem 0; }
.article-body .callout-tip { border-left-color: #22c55e; background: rgba(34,197,94,.08); }
.article-body .callout-warning { border-left-color: #f59e0b; background: rgba(245,158,11,.08); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.article-body thead th { background: rgba(229,26,73,.15); color: #fff; }
.article-body th, .article-body td { border: 1px solid rgba(255,255,255,.12); padding: .65rem .8rem; text-align: left; }
.article-body pre { background: #0b0610 !important; border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; }
.article-body .faq-block { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1rem; }
.article-body .wz-note, .rich-note { border: 1px solid rgba(34,197,94,.35); background: rgba(34,197,94,.07); padding: 1rem 1.25rem; border-radius: .9rem; font-size: .95rem; }
.policy-id { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); border-radius: .9rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: .92rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .hero-canvas { display: none; }
}

/* ---------- Timeline (About > Milestones) ---------- */
.timeline { position: relative; display: grid; gap: 1.75rem; }
.timeline::before { content: ''; position: absolute; left: calc(6rem - 1px); top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(#E51A49, #B44DFF 70%, transparent); opacity: .55; }
.timeline-item { display: grid; grid-template-columns: 4.5rem 1.5rem 1fr; align-items: start; column-gap: .75rem; }
.timeline-year { font-family: ui-monospace, SFMono-Regular, monospace; font-size: .8rem; font-weight: 700; color: #FF5C86; text-align: right; padding-top: .2rem; white-space: nowrap; }
.timeline-dot { width: 14px; height: 14px; margin: .3rem auto 0; border-radius: 9999px; background: #E51A49; box-shadow: 0 0 0 4px rgba(229,26,73,.2), 0 0 18px rgba(229,26,73,.6); position: relative; z-index: 1; }
@media (max-width: 480px) { .timeline::before { left: calc(4.85rem - 1px); } .timeline-item { grid-template-columns: 3.6rem 1.5rem 1fr; column-gap: .5rem; } }

/* ---------- WhatsApp phone mock-up (WaZappy) ---------- */
.wa-stage { position: relative; width: 100%; max-width: 380px; margin: 0 auto; padding: 0 0 0; }
.wa-phone { position: relative; height: 640px; border-radius: 2.8rem; background: #0b141a; border: 10px solid #1b1b1f; box-shadow: 0 0 0 2px #2c2c33, 0 40px 90px -20px rgba(0,0,0,.9), 0 0 80px -10px rgba(37,211,102,.35); overflow: hidden; display: flex; flex-direction: column; font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif; }
.wa-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #000; border-radius: 20px; z-index: 3; }
.wa-statusbar { display: flex; justify-content: space-between; padding: 8px 22px 2px; font-size: 11px; font-weight: 600; color: #e9edef; background: #202c33; }
.wa-statusbar i { font-size: 9px; margin-left: 3px; }
.wa-header { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: #202c33; font-size: 14px; }
.wa-avatar { width: 36px; height: 36px; border-radius: 9999px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.wa-avatar img { width: 72%; height: auto; }
.wa-avatar-icon { background: linear-gradient(135deg, #f97316, #e11d48); color: #fff; font-size: 15px; }
.wa-name { color: #e9edef; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.wa-verified { width: 14px; height: 14px; border-radius: 9999px; background: #25d366; color: #0b141a; font-size: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-status { color: #8696a0; font-size: 11.5px; transition: color .2s; }
.wa-status.typing { color: #25d366; }
.wa-chat { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px), radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 22px 22px, 34px 34px; background-position: 0 0, 11px 17px; }
.wa-chat::-webkit-scrollbar { display: none; }
.wa-day { align-self: center; background: #182229; color: #8696a0; font-size: 10.5px; padding: 4px 10px; border-radius: 8px; letter-spacing: .03em; }
.wa-e2e { align-self: center; max-width: 92%; background: #182229; color: #ffd279; font-size: 10.5px; line-height: 1.4; padding: 6px 10px; border-radius: 8px; text-align: center; margin-bottom: 4px; }
.wa-msg { position: relative; max-width: 82%; padding: 6px 9px 7px; font-size: 13px; line-height: 1.42; color: #e9edef; border-radius: 9px; box-shadow: 0 1px .5px rgba(0,0,0,.25); word-wrap: break-word; }
.wa-msg.in { align-self: flex-start; background: #202c33; border-top-left-radius: 0; }
.wa-msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 0; }
.wa-msg.in::before, .wa-msg.out::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-msg.in::before { left: -8px; background: #202c33; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa-msg.out::before { right: -8px; background: #005c4b; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-meta { float: right; margin: 6px 0 -4px 10px; font-size: 10px; color: rgba(233,237,239,.6); white-space: nowrap; }
.wa-ticks { color: #8696a0; font-size: 10px; margin-left: 2px; transition: color .3s; }
.wa-msg.read .wa-ticks { color: #53bdeb; }
.wa-buttons { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 1px; margin: 8px -9px -7px; border-top: 1px solid rgba(255,255,255,.08); }
.wa-buttons span { text-align: center; color: #00a884; font-size: 12.5px; font-weight: 500; padding: 8px 4px; background: #202c33; }
.wa-buttons span + span { border-left: 1px solid rgba(255,255,255,.08); }
.wa-buttons.one { grid-template-columns: 1fr; }
.wa-cart { min-width: 78%; }
.wa-cart-head { font-weight: 600; font-size: 12.5px; color: #25d366; margin-bottom: 4px; }
.wa-cart-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.wa-cart-total { font-weight: 700; border-bottom: 0; }
.wa-doc { display: flex; align-items: center; gap: 9px; background: rgba(0,0,0,.22); border-radius: 7px; padding: 8px; margin: 6px 0; }
.wa-doc-icon { width: 30px; height: 36px; border-radius: 4px; background: #e8453c; color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wa-doc small { display: block; color: #8696a0; font-size: 10.5px; font-weight: 400; }
.wa-doc strong { font-size: 12px; font-weight: 600; }
.wa-typing { align-self: flex-start; display: none; gap: 4px; background: #202c33; padding: 10px 12px; border-radius: 9px; border-top-left-radius: 0; }
.wa-typing.on { display: inline-flex; }
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: waDot 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .15s; } .wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; background: #0b141a; }
.wa-input-box { flex: 1; display: flex; align-items: center; gap: 10px; background: #202c33; color: #8696a0; font-size: 13px; padding: 9px 14px; border-radius: 22px; }
.wa-mic { width: 40px; height: 40px; border-radius: 9999px; background: #00a884; color: #0b141a; display: flex; align-items: center; justify-content: center; }
.wa-stage.js [data-step] { display: none; }
.wa-stage.js [data-step].shown { display: block; animation: waPop .35s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes waPop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #d1fae5; background: rgba(6,40,24,.85); border: 1px solid rgba(37,211,102,.35); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); opacity: .35; transform: scale(.94); transition: all .45s ease; white-space: nowrap; }
.wa-chip i { color: #25d366; }
.wa-chip.on { opacity: 1; transform: scale(1); box-shadow: 0 0 0 1px rgba(37,211,102,.5), 0 0 30px rgba(37,211,102,.45); }
.wa-chip-1 { top: 70px; left: -150px; } .wa-chip-2 { top: 210px; right: -140px; }
.wa-chip-3 { top: 380px; left: -130px; } .wa-chip-4 { top: 520px; right: -150px; }
@media (max-width: 1279px) { .wa-chip-1, .wa-chip-3 { left: -40px; } .wa-chip-2, .wa-chip-4 { right: -40px; } }
@media (max-width: 640px) { .wa-phone { height: 580px; } .wa-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-stage.js [data-step] { display: block !important; animation: none !important; } .wa-chip { opacity: 1; transform: none; } }

/* ---------- Blog post: TOC + share ---------- */
.toc-link { display: block; padding: .4rem .6rem; border-left: 2px solid rgba(255,255,255,.08); color: #b9b0c4; line-height: 1.35; transition: all .15s; border-radius: 0 .4rem .4rem 0; }
.toc-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.toc-link.active { color: #fff; border-left-color: #E51A49; background: linear-gradient(90deg, rgba(229,26,73,.16), transparent); }
.share-btn { width: 2.5rem; height: 2.5rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e5e1ea; transition: all .15s; }


/* =====================================================================
   Theme toggle + LIGHT THEME
   The site is designed dark-first; html[data-theme="light"] remaps the dark
   utility classes to a light palette. Anything inside .keep-dark (footer,
   CTA strips, WhatsApp phone, code) keeps the dark look.
   ===================================================================== */
.theme-toggle { width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.15); color: #f5d0dc; background: rgba(255,255,255,.04); transition: all .2s; position: relative; overflow: hidden; }
.theme-toggle:hover { border-color: #E51A49; color: #fff; }
.theme-toggle i { position: absolute; transition: transform .35s ease, opacity .35s ease; }
.theme-toggle .icon-sun { transform: translateY(0) rotate(0); opacity: 1; }
.theme-toggle .icon-moon { transform: translateY(120%) rotate(-90deg); opacity: 0; }
html[data-theme="light"] .theme-toggle .icon-sun { transform: translateY(-120%) rotate(90deg); opacity: 0; }
html[data-theme="light"] .theme-toggle .icon-moon { transform: none; opacity: 1; }
.logo-for-light { display: none; }
html[data-theme="light"] .logo-for-dark { display: none; }
html[data-theme="light"] .logo-for-light { display: block; }
html[data-theme="light"] .keep-dark .logo-for-dark { display: block; }
html[data-theme="light"] .keep-dark .logo-for-light { display: none; }

html[data-theme="light"] body { background-color: #f6f3f9; color: #2b2236; }
html[data-theme="light"] .bg-grid-pattern { opacity: .06 !important; }

/* Surfaces */
html[data-theme="light"] .glass-panel { background: rgba(255,255,255,.85); border-color: rgba(16,6,27,.10); box-shadow: 0 10px 30px -18px rgba(16,6,27,.25); }
html[data-theme="light"] :is([class*="bg-white/5"], [class*="bg-white/[0.03]"], [class*="bg-white/[0.06]"], [class*="bg-white/10"]) { background-color: rgba(16,6,27,.045); }
html[data-theme="light"] :is([class*="bg-black/20"], [class*="bg-black/40"], [class*="bg-black/50"], [class*="bg-black/30"]) { background-color: rgba(16,6,27,.04); }
html[data-theme="light"] :is(.bg-\[\#060607\], .bg-\[\#08040c\], .bg-\[\#0b0510\], .bg-\[\#0f0f11\], .bg-\[\#120a18\], .bg-\[\#0d0614\]) { background-color: #ffffff; }
html[data-theme="light"] [class*="from-green-950"] { background-image: linear-gradient(135deg, #e9f9ef, #f6f3f9 60%); }
html[data-theme="light"] :is([class*="border-white/5"], [class*="border-white/10"], [class*="border-white/15"], [class*="border-white/20"]) { border-color: rgba(16,6,27,.12); }
html[data-theme="light"] .hero-vignette { background: radial-gradient(ellipse at center, transparent 30%, #f6f3f9 85%); }
html[data-theme="light"] .orb { opacity: .45; }

/* Text */
html[data-theme="light"] .text-white { color: #1b1225; }
html[data-theme="light"] :is(.text-gray-100, .text-gray-200) { color: #2e2539; }
html[data-theme="light"] .text-gray-300 { color: #463d52; }
html[data-theme="light"] .text-gray-400 { color: #5b5267; }
html[data-theme="light"] .text-gray-500 { color: #6b6277; }
html[data-theme="light"] :is(.text-\[\#FF5C86\], .text-primary) { color: #c8123e; }
html[data-theme="light"] .text-green-300, html[data-theme="light"] .text-green-400 { color: #15803d; }
html[data-theme="light"] [class*="text-white/"] { color: #3a3146; }

/* Things that must stay light-on-dark/brand inside light mode */
html[data-theme="light"] :is(.btn-primary, .keep-dark .text-white, .btn-primary .text-white, [class*="bg-[#10061B]"].text-white, [class*="bg-[#E51A49]"].text-white, [class*="bg-[#C8123E]"].text-white, .bg-gradient-to-br.from-\[\#E51A49\]) { color: #fff; }
html[data-theme="light"] .keep-dark :is(.text-gray-100, .text-gray-200) { color: #e5e1ea; }
html[data-theme="light"] .keep-dark .text-gray-300 { color: #d4cedb; }
html[data-theme="light"] .keep-dark .text-gray-400 { color: #b3abbd; }
html[data-theme="light"] .keep-dark :is([class*="border-white/10"], [class*="border-white/15"]) { border-color: rgba(255,255,255,.12); }
html[data-theme="light"] .keep-dark :is([class*="bg-white/5"], [class*="bg-white/10"]) { background-color: rgba(255,255,255,.08); }
html[data-theme="light"] .keep-dark .text-\[\#FF5C86\] { color: #ff5c86; }
html[data-theme="light"] .keep-dark .text-green-400 { color: #4ade80; }
html[data-theme="light"] .keep-dark [class*="text-white/"] { color: rgba(255,255,255,.9); }
html[data-theme="light"] .keep-dark.bg-\[\#0b0510\] { background-color: #0b0510; }

/* Header, menu */
html[data-theme="light"] .site-nav { background: rgba(255,255,255,.88); border-color: rgba(16,6,27,.08); }
html[data-theme="light"] .nav-link { color: #3b3344; }
html[data-theme="light"] .nav-link:hover, html[data-theme="light"] .nav-link.active { color: #c8123e; }
html[data-theme="light"] .theme-toggle { color: #c8123e; border-color: rgba(16,6,27,.15); background: #fff; }
html[data-theme="light"] .menu-btn { color: #1b1225; }
html[data-theme="light"] .mega-panel { background: #ffffff; border-color: rgba(16,6,27,.08); box-shadow: 0 30px 70px -25px rgba(16,6,27,.35); }
html[data-theme="light"] .mega-link { color: #4b4257; }
html[data-theme="light"] .mega-link:hover { color: #c8123e; }
html[data-theme="light"] .mobile-menu, html[data-theme="light"] .mobile-menu > div:first-child { background: #fff; }

/* Forms */
html[data-theme="light"] :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="submit"]) { color: #1b1225; }
html[data-theme="light"] :is(input, select, textarea)[class*="bg-black"], html[data-theme="light"] :is(input, select, textarea)[class*="bg-white/5"], html[data-theme="light"] :is(input, select, textarea)[class*="bg-[#"] { background-color: #fff; border-color: rgba(16,6,27,.18); }
html[data-theme="light"] .placeholder-gray-400::placeholder, html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #8a8195; }
html[data-theme="light"] .keep-dark :is(input, select, textarea) { color: #fff; }

/* Typography plugin (prose-invert) */
html[data-theme="light"] .prose-invert { --tw-prose-body: #3b3346; --tw-prose-headings: #1b1225; --tw-prose-lead: #463d52; --tw-prose-links: #c8123e; --tw-prose-bold: #1b1225; --tw-prose-counters: #c8123e; --tw-prose-bullets: #c8123e; --tw-prose-hr: rgba(16,6,27,.12); --tw-prose-quotes: #1b1225; --tw-prose-quote-borders: #E51A49; --tw-prose-captions: #6b6277; --tw-prose-code: #9d174d; --tw-prose-th-borders: rgba(16,6,27,.15); --tw-prose-td-borders: rgba(16,6,27,.08); }
html[data-theme="light"] [class*="prose-headings:text-white"] :is(h1, h2, h3, h4, h5, h6) { color: #1b1225; }
html[data-theme="light"] [class*="prose-strong:text-white"] strong { color: #1b1225; }
html[data-theme="light"] [class*="prose-a:text-[#FF5C86]"] a { color: #c8123e; }
html[data-theme="light"] .article-body .lead { color: #2e2539; }
html[data-theme="light"] .article-body .key-takeaways { background: linear-gradient(135deg, rgba(229,26,73,.07), rgba(180,77,255,.05)); }
html[data-theme="light"] .article-body .key-takeaways h3 { color: #c8123e !important; }
html[data-theme="light"] .article-body table th { background: rgba(229,26,73,.08); color: #1b1225; }
html[data-theme="light"] .article-body pre { background: #140b1d; color: #f3e8ff; }
html[data-theme="light"] .article-body pre code { color: inherit; }
html[data-theme="light"] .toc-link { color: #4b4257; border-left-color: rgba(16,6,27,.1); }
html[data-theme="light"] .toc-link.active, html[data-theme="light"] .toc-link:hover { color: #1b1225; }
html[data-theme="light"] .share-btn { background: #fff; border-color: rgba(16,6,27,.12); color: #3b3344; }
html[data-theme="light"] .timeline-year { color: #c8123e; }
html[data-theme="light"] .lead-modal .panel { background: #fff; }
html[data-theme="light"] .lead-modal .panel [class*="bg-white/10"] { background: rgba(16,6,27,.06); color: #1b1225; }
html[data-theme="light"] .wa-chip { color: #14532d; background: rgba(255,255,255,.92); border-color: rgba(21,128,61,.3); }
html[data-theme="light"] .marquee span, html[data-theme="light"] .marquee a { color: #3b3344; }
html[data-theme="light"] #scroll-progress { opacity: 1; }

/* ---------- Field helpers (clear × / show password) ---------- */
.fh-wrap { position: relative; display: block; min-width: 0; }
.fh-wrap > .fh-field { width: 100%; }
.fh-wrap.fh-filled > .fh-field, .fh-wrap.fh-has-eye > .fh-field { padding-right: 2.6rem; }
.fh-wrap.fh-filled.fh-has-eye > .fh-field { padding-right: 4.6rem; }
.fh-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; color: #a39bb0; font-size: .85rem; transition: color .15s, background .15s; z-index: 2; }
.fh-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.fh-eye { right: .45rem; }
.fh-clear { right: .45rem; display: none; }
.fh-wrap.fh-has-eye .fh-clear { right: 2.4rem; }
.fh-wrap.fh-filled .fh-clear { display: inline-flex; }
.fh-area .fh-btn { top: .5rem; transform: none; }
html[data-theme="light"] .fh-btn { color: #6b6277; }
html[data-theme="light"] .fh-btn:hover { color: #1b1225; background: rgba(16,6,27,.06); }


/* Logo on dark backgrounds (style chosen in Admin > Settings > Brand & logo) */
span.logo-for-dark { display: inline-flex; align-items: center; }
.logo-style-plate { padding: .3rem .75rem; border-radius: .85rem; background: linear-gradient(135deg, #ffffff, #f8f1fd); box-shadow: 0 0 0 1px rgba(229,26,73,.35), 0 12px 30px -14px rgba(229,26,73,.6), inset 0 -2px 0 rgba(229,26,73,.15); }
.logo-style-shadow img { filter: drop-shadow(0 0 10px rgba(255,255,255,.6)) drop-shadow(0 0 24px rgba(255,255,255,.28)); }
html[data-theme="light"] .logo-for-dark { display: none !important; }
html[data-theme="light"] .logo-for-light { display: block; }
html[data-theme="light"] .keep-dark span.logo-for-dark { display: inline-flex !important; }
html[data-theme="light"] .keep-dark img.logo-for-dark { display: block !important; }
html[data-theme="light"] .keep-dark .logo-for-light { display: none !important; }

/* ---------- More article components (chosen by the writer/AI as needed) ---------- */
.article-body .callout-info { border-left-color: #38bdf8; background: rgba(56,189,248,.08); }
.article-body .article-figure { margin: 2rem 0; }
.article-body .article-figure img { width: 100%; height: auto; border-radius: 1rem; border: 1px solid rgba(255,255,255,.1); margin: 0; box-shadow: 0 24px 60px -30px rgba(229,26,73,.45); }
.article-body .article-figure figcaption { text-align: center; font-size: .85rem; color: #b3abbd; margin-top: .6rem; }
.article-body ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
.article-body ol.steps > li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.6rem; margin: .75rem 0; border: 1px solid rgba(255,255,255,.1); border-radius: .9rem; background: rgba(255,255,255,.03); }
.article-body ol.steps > li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 9999px; background: linear-gradient(135deg, #E51A49, #B44DFF); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.article-body ul.checklist { list-style: none; padding-left: 0; }
.article-body ul.checklist > li { position: relative; padding-left: 2rem; }
.article-body ul.checklist > li::before { content: '✓'; position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem; border-radius: .35rem; background: rgba(34,197,94,.18); color: #4ade80; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.article-body .pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.article-body .pros-cons > div { border-radius: .9rem; padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.1); }
.article-body .pros-cons .pros { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.3); }
.article-body .pros-cons .cons { background: rgba(229,26,73,.07); border-color: rgba(229,26,73,.3); }
.article-body .pros-cons h4 { margin-top: 0 !important; }
.article-body .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.article-body .stat { border: 1px solid rgba(255,255,255,.1); border-radius: .9rem; padding: 1rem; text-align: center; background: rgba(255,255,255,.03); }
html[data-theme="light"] .article-body ol.steps > li, html[data-theme="light"] .article-body .stat { background: #fff; border-color: rgba(16,6,27,.1); }
html[data-theme="light"] .article-body .article-figure figcaption { color: #5b5267; }
html[data-theme="light"] .article-body ul.checklist > li::before { color: #15803d; }
html[data-theme="light"] .article-body th, html[data-theme="light"] .article-body td { border-color: rgba(16,6,27,.12); }

/* ---------- Light theme: remaining dark surfaces ---------- */
/* the brand "dark" token (bg-dark, from-dark, via-dark/85 …) becomes the light page colour */
html[data-theme="light"] { --bg-dark-hsl: 270 33% 97%; }
html[data-theme="light"] .keep-dark { --bg-dark-hsl: 272 24% 9%; }
html[data-theme="light"] .bg-\[\#120a18\]\/80 { background-color: rgba(255,255,255,.92); }
html[data-theme="light"] :is(.bg-\[\#111\], .bg-\[\#160d1c\]):not(.keep-dark *) { background-color: #f1edf5; }
html[data-theme="light"] .page-top img.opacity-25 { opacity: .12; }
html[data-theme="light"] .hero-canvas { opacity: .55; }
html[data-theme="light"] nav[aria-label="Breadcrumb"], html[data-theme="light"] nav[aria-label="Breadcrumb"] a { color: #5b5267; }
html[data-theme="light"] .keep-dark :is([class*="bg-black/20"], [class*="bg-black/30"], [class*="bg-black/40"], [class*="bg-black/50"]) { background-color: rgba(0,0,0,.35); }
html[data-theme="light"] .keep-dark :is(input, select, textarea) { color: #fff !important; }
html[data-theme="light"] .keep-dark :is(input, select, textarea)[class*="bg-"] { background-color: rgba(0,0,0,.35); border-color: rgba(255,255,255,.15); }

/* ---------- Closing CTA card (dark brand card in both themes) ---------- */
.cta-card { background: linear-gradient(135deg, #1d0c2a 0%, #12071c 55%, #200a1a 100%); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 90px -40px rgba(229,26,73,.55); }
.cta-card::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%); pointer-events: none; }
.cta-glow { position: absolute; border-radius: 9999px; filter: blur(80px); pointer-events: none; }
.cta-glow-1 { width: 380px; height: 380px; background: rgba(229,26,73,.35); top: -140px; right: -60px; }
.cta-glow-2 { width: 320px; height: 320px; background: rgba(180,77,255,.28); bottom: -160px; left: 10%; }

html[data-theme="light"] .accent { color: #15803d !important; }
html[data-theme="light"] .accent-bg { color: #04130a !important; }
html[data-theme="light"] .accent-label { filter: brightness(.62) saturate(1.2); }

/* Logo "spotlight" on dark backgrounds: soft light only behind the black "it" — no box */
.logo-style-spotlight { position: relative; isolation: isolate; }
.logo-style-spotlight::before { content: ''; position: absolute; left: -14%; top: -45%; width: 42%; height: 190%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,.55) 45%, transparent 100%); filter: blur(6px); z-index: -1; pointer-events: none; }

/* ---------- Dark theme: slightly lighter, calmer surfaces (less glare and visual noise) ---------- */
html:not([data-theme="light"]) body { background-color: hsl(272 24% 9%); }
html:not([data-theme="light"]) :is(.bg-\[\#08040c\], .bg-\[\#060607\], .bg-\[\#0b0510\]) { background-color: #150d1e; }
html:not([data-theme="light"]) .site-nav { background-color: rgba(22,13,31,.88); }
html:not([data-theme="light"]) .glass-panel { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.11); }
.hero-canvas { opacity: .55; }
.bg-grid-pattern { opacity: .02 !important; }
html:not([data-theme="light"]) .text-gray-300 { color: #d6cfde; }
html:not([data-theme="light"]) .text-gray-400 { color: #b6adc2; }

/* ---------- Free tools: "All tools" side panel ---------- */
.tools-tab { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 1003; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .9rem .55rem; border-radius: 0 .9rem .9rem 0; background: linear-gradient(180deg, #E51A49, #B44DFF); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 30px -10px rgba(229,26,73,.6); }
.tools-tab span { writing-mode: vertical-rl; transform: rotate(180deg); }
.tools-tab:hover { padding-left: .8rem; }
.tools-overlay { position: fixed; inset: 0; z-index: 10030; background: rgba(8,4,14,.55); backdrop-filter: blur(3px); }
.tools-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 10031; width: min(360px, 88vw); background: #140c1c; border-right: 1px solid rgba(255,255,255,.1); box-shadow: 30px 0 60px -30px rgba(0,0,0,.8); transform: translateX(-102%); transition: transform .28s ease; display: flex; flex-direction: column; }
.tools-drawer.open { transform: none; }
.tools-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1rem .8rem; }
.tools-close { width: 2.2rem; height: 2.2rem; border-radius: 9999px; background: rgba(255,255,255,.08); color: #fff; }
.tools-search { width: 100%; padding: .7rem .9rem .7rem 2.3rem; border-radius: .7rem; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: .9rem; outline: none; }
.tools-search:focus { border-color: #E51A49; }
.tools-list { flex: 1; overflow-y: auto; padding: 0 .6rem 1.5rem; }
.tools-group-title { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #FF5C86; padding: .9rem .5rem .35rem; }
.tools-item { display: flex; gap: .65rem; align-items: center; padding: .5rem .5rem; border-radius: .6rem; color: #e5e0eb; font-size: .86rem; }
.tools-item:hover { background: rgba(255,255,255,.06); }
.tools-item.active { background: rgba(229,26,73,.16); color: #fff; box-shadow: inset 3px 0 0 #E51A49; }
.tools-ico { width: 1.9rem; height: 1.9rem; flex-shrink: 0; border-radius: .5rem; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; }
.tools-desc { display: block; font-size: .7rem; color: #a39bb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools-empty { color: #a39bb0; font-size: .85rem; padding: 1rem .5rem; }
html[data-theme="light"] .tools-drawer { background: #fff; border-color: rgba(16,6,27,.1); }
html[data-theme="light"] .tools-drawer .text-white { color: #1b1225; }
html[data-theme="light"] .tools-close { background: rgba(16,6,27,.06); color: #1b1225; }
html[data-theme="light"] .tools-search { background: #f6f3f9; border-color: rgba(16,6,27,.14); color: #1b1225; }
html[data-theme="light"] .tools-item { color: #2e2539; }
html[data-theme="light"] .tools-item:hover { background: rgba(16,6,27,.05); }
html[data-theme="light"] .tools-item.active { color: #1b1225; }
html[data-theme="light"] .tools-ico { background: rgba(16,6,27,.05); }
html[data-theme="light"] .tools-desc { color: #6b6277; }
@media (max-width: 640px) { .tools-tab { top: auto; bottom: 5.5rem; transform: none; padding: .6rem; } .tools-tab span { display: none; } }

/* Logo "glow" on dark backgrounds: soft light across the whole logo, fading out inside its own edges */
.logo-style-glow { position: relative; isolation: isolate; overflow: hidden; border-radius: .6rem; }
.logo-style-glow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 76% at 50% 50%, rgba(255,255,255,.92), rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 100%); z-index: -1; pointer-events: none; }

/* ---------- Light theme: solid cards, no background pattern showing through ---------- */
html[data-theme="light"] .bg-grid-pattern { display: none !important; }
html[data-theme="light"] .glass-panel { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(16,6,27,.09); box-shadow: 0 1px 2px rgba(16,6,27,.04), 0 12px 32px -20px rgba(16,6,27,.25); }
html[data-theme="light"] :is(a, div, article, li, figure, label)[class*="bg-white/5"]:not(.keep-dark *), html[data-theme="light"] :is(a, div, article, li)[class*="bg-white/[0.03]"]:not(.keep-dark *) { background-color: #ffffff; border-color: rgba(16,6,27,.09); box-shadow: 0 1px 2px rgba(16,6,27,.04); }
html[data-theme="light"] .tool-card:hover { background-color: #fff; border-color: rgba(229,26,73,.4); box-shadow: 0 16px 36px -22px rgba(229,26,73,.45); }
html[data-theme="light"] .orb { opacity: .25; }
html[data-theme="light"] .hero-canvas { opacity: .35; }

/* Blog code: readable code blocks and inline code in both themes (overrides typography plugin + pasted inline styles) */
.article-body pre { background: #120a1a !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: .75rem; padding: 1.1rem 1.25rem !important; overflow-x: auto; }
.article-body pre, .article-body pre * { color: #ece6f5 !important; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.65; text-shadow: none !important; }
.article-body pre code { padding: 0 !important; border: 0 !important; background: none !important; }
.article-body :not(pre) > code { color: #ffb3c7 !important; background: rgba(255,92,134,.12); border: 1px solid rgba(255,92,134,.25); padding: .1em .4em; border-radius: .35rem; font-size: .88em; font-weight: 600; }
.article-body code::before, .article-body code::after { content: none !important; }
html[data-theme="light"] .article-body :not(pre) > code { color: #9d174d !important; background: rgba(229,26,73,.07); border-color: rgba(229,26,73,.2); }
html[data-theme="light"] .article-body pre { box-shadow: 0 12px 30px -18px rgba(16,6,27,.45); }

/* Blog posts written with Tailwind utility classes (older/imported content):
   dark code boxes such as bg-[#0f0f0f] / bg-black / bg-gray-900 keep light text in both themes */
.article-body :is([class*="bg-[#0"], [class*="bg-[#1"], [class*="bg-black"], [class*="bg-gray-900"], [class*="bg-gray-950"], [class*="bg-neutral-9"], [class*="bg-zinc-9"], [class*="bg-slate-9"]):not([class*="bg-black/"]) { background-color: #120a1a !important; border-color: rgba(255,255,255,.1) !important; border-radius: .75rem; }
.article-body :is([class*="bg-[#0"], [class*="bg-[#1"], [class*="bg-black"], [class*="bg-gray-900"], [class*="bg-gray-950"], [class*="bg-neutral-9"], [class*="bg-zinc-9"], [class*="bg-slate-9"]):not([class*="bg-black/"]),
.article-body :is([class*="bg-[#0"], [class*="bg-[#1"], [class*="bg-black"], [class*="bg-gray-900"], [class*="bg-gray-950"], [class*="bg-neutral-9"], [class*="bg-zinc-9"], [class*="bg-slate-9"]):not([class*="bg-black/"]) * { color: #ece6f5 !important; }
.article-body .font-mono { line-height: 1.7; }
.article-body .font-mono.text-xs { font-size: .85rem; }
html[data-theme="light"] .article-body .text-primary { color: #c8123e; }
.article-body :is(div, aside, .callout, .key-takeaways, .wz-note) > :first-child { margin-top: 0 !important; }
.article-body :is(div, aside, .callout, .key-takeaways, .wz-note) > :last-child { margin-bottom: 0 !important; }
@media (min-width: 768px) { .article-body table { display: table; } }
.article-body .stat > strong, .article-body .stat > b { display: block; font-size: 1.75rem; line-height: 1.2; margin-bottom: .25rem; }

/* Blog inline CTA: long custom button text wraps instead of overflowing the card */
.blog-cta .blog-cta-main { white-space: normal; flex: 1 1 auto; max-width: 100%; }
@media (min-width: 640px) { .blog-cta .blog-cta-main { flex: 0 1 auto; } }
