/* public/widgets-landing/style.css
   Distinct visual identity for the widget marketplace pages
   (routes/widgetLandingRoutes.js) — a fully independent page shell (own
   header/footer/<head>) from the earthy/photo-hero look of /atlas.
   Dark theme throughout ("nature-explorer polish, darker"): near-black
   indigo base, aurora gradient hero, glassy cards with gradient borders,
   scroll-reveal + hover micro-animations. Everything is scoped under .wl-
   classes so it never collides with atlas- styles. */

:root {
  --wl-bg:        #070512;
  --wl-bg-alt:    #0c0822;
  --wl-surface:   rgba(255,255,255,0.045);
  --wl-surface-2: rgba(255,255,255,0.08);
  --wl-border:    rgba(255,255,255,0.09);
  --wl-text:      #f1eefc;
  --wl-text-soft: rgba(235,230,255,0.72);
  --wl-text-dim:  rgba(235,230,255,0.5);
  --wl-violet:    #8b5cf6;
  --wl-cyan:      #22d3ee;
  --wl-pink:      #ec4899;
  --wl-teal:      #00b894;
  --wl-red:       #ff3d5d;
  /* Same gradient as the main landing (landingStyles.css --gradient-1) */
  --wl-grad:      linear-gradient(135deg, #00b894, #ff3d5d);
}

html:has(.wl-body) { scroll-behavior: smooth; }
.wl-body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--wl-bg);
  color: var(--wl-text);
}
.wl-page { overflow-x: hidden; }
.wl-main { position: relative; }

/* Faint dot-grid texture is baked into .wl-section backgrounds below (a
   fixed overlay would be hidden behind the sections' opaque backgrounds). */

/* ===== HEADER ===== */
.wl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,5,18,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.wl-header.wl-scrolled {
  background: rgba(7,5,18,0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  border-bottom-color: rgba(255,255,255,0.12);
}
.wl-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 1.5rem;
  position: relative;
}
.wl-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wl-logo:hover { text-decoration: none; color: #fff; }
.wl-logo em { font-style: normal; background: var(--wl-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.wl-nav-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  transition: color .2s ease;
}
.wl-nav-links a:hover, .wl-nav-links a.active { color: #fff; text-decoration: none; }
.wl-nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--wl-grad);
  border-radius: 2px;
}
.wl-nav-cta {
  background: var(--wl-grad);
  color: #fff;
  padding: .55rem 1.3rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .87rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,184,148,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.wl-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,61,93,.45); color: #fff; text-decoration: none; }
.wl-mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: .25rem; }

@media (max-width: 860px) {
  .wl-nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 1rem;
    background: rgba(7,5,18,0.97);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .wl-nav-links.wl-open { display: flex; }
  .wl-nav-cta { display: none; }
  .wl-mobile-toggle { display: block; }
}

/* ===== HERO ===== */
.wl-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,184,148,.24), transparent 60%),
    radial-gradient(circle at 15% 25%, #221055 0%, transparent 50%),
    var(--wl-bg);
  overflow: hidden;
  isolation: isolate;
}

/* Aurora sweep across the top of the hero */
.wl-hero::after {
  content: '';
  position: absolute;
  top: -35%; left: -20%;
  width: 140%; height: 70%;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(0,184,148,.16) 40%, rgba(34,211,238,.1) 55%, rgba(255,61,93,.12) 70%, transparent 85%);
  filter: blur(40px);
  animation: wl-aurora 14s ease-in-out infinite alternate;
}
@keyframes wl-aurora {
  0%   { transform: translateX(-6%) rotate(-2deg); }
  100% { transform: translateX(6%) rotate(2deg); }
}

.wl-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  z-index: -1;
  animation: wl-float 16s ease-in-out infinite;
}
.wl-hero-blob.b1 { width: 420px; height: 420px; background: #00b894; top: -10%; left: -8%; animation-delay: 0s; }
.wl-hero-blob.b2 { width: 360px; height: 360px; background: #0891b2; bottom: -12%; right: -6%; animation-delay: -5s; }
.wl-hero-blob.b3 { width: 280px; height: 280px; background: #ff3d5d; top: 30%; right: 18%; animation-delay: -10s; }

@keyframes wl-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.08); }
  66%      { transform: translate(-25px, 25px) scale(0.95); }
}

.wl-hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.wl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,184,148,0.12);
  border: 1px solid rgba(94,234,212,0.3);
  backdrop-filter: blur(8px);
  color: #b4f5e6;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  animation: wl-fade-down .7s ease both;
}

.wl-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 10%, #5eead4 40%, #ff8fa3 70%, #fff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wl-fade-up .8s .1s ease both, wl-gradient-shift 7s ease-in-out infinite 1s;
}

@keyframes wl-gradient-shift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

.wl-hero-subtitle {
  font-size: 1.15rem;
  color: var(--wl-text-soft);
  line-height: 1.7;
  margin: 0 auto 2.25rem;
  max-width: 620px;
  animation: wl-fade-up .8s .2s ease both;
}

.wl-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: wl-fade-up .8s .32s ease both; }

.wl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wl-btn:hover { transform: translateY(-3px); text-decoration: none; }

.wl-btn-primary {
  background: var(--wl-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,184,148,.4);
  overflow: hidden;
}
.wl-btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.wl-btn-primary:hover::before { transform: translateX(120%); }
.wl-btn-primary:hover { box-shadow: 0 12px 32px rgba(255,61,93,.45); }

.wl-btn-ghost {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.wl-btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }

@keyframes wl-fade-up   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wl-fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SECTIONS ===== */
.wl-section {
  padding: 4.5rem 1.5rem;
  background:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--wl-bg);
}
.wl-section.alt {
  background:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0,184,148,.07), transparent 60%),
    var(--wl-bg-alt);
}
.wl-container { max-width: 1200px; margin: 0 auto; }

.wl-section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.wl-section-badge {
  display: inline-block;
  background: rgba(255,61,93,0.12);
  border: 1px solid rgba(255,143,163,0.3);
  color: #ffc2cd;
  padding: .35rem .95rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.wl-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--wl-text);
  margin-bottom: .6rem;
}
.wl-section-subtitle { color: var(--wl-text-dim); font-size: 1.02rem; line-height: 1.6; }

/* ===== SCROLL REVEAL ===== */
.wl-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.wl-reveal.wl-visible { opacity: 1; transform: translateY(0); }

/* ===== BENTO CARD GRID (index page) ===== */
.wl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.wl-card {
  position: relative;
  background: var(--wl-surface);
  border-radius: 18px;
  padding: 1.75rem;
  text-decoration: none;
  border: 1px solid var(--wl-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  --accent: #8b5cf6;
  overflow: hidden;
  will-change: transform;
  backdrop-filter: blur(6px);
}
/* Cursor-follow spotlight (JS sets --mx/--my) */
.wl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
/* Gradient border glow on hover */
.wl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, transparent), transparent 45%, color-mix(in srgb, var(--accent) 40%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.wl-card > * { position: relative; z-index: 1; }
.wl-card:hover {
  background: var(--wl-surface-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent);
  text-decoration: none;
}
.wl-card:hover::before, .wl-card:hover::after { opacity: 1; }
@media (hover: none) {
  .wl-card:hover { transform: translateY(-6px) scale(1.015); }
}
.wl-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.wl-card:hover .wl-card-icon { transform: rotate(-6deg) scale(1.08); }
/* Illustrated (Cloudinary) icon: transparent PNG, no gradient tile. */
.wl-card-icon.has-img { width: 64px; height: 64px; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.wl-badge-img { display: inline-flex; width: 20px; height: 20px; vertical-align: -4px; }
.wl-card-name { font-size: 1.08rem; font-weight: 700; color: var(--wl-text); margin: 0; }
.wl-card-desc { font-size: .9rem; color: var(--wl-text-dim); line-height: 1.55; margin: 0; flex: 1; }
.wl-card-cta {
  font-size: .85rem; font-weight: 700;
  color: color-mix(in srgb, var(--accent) 65%, #fff);
  display: inline-flex; align-items: center; gap: .35rem;
}
.wl-card-cta i { transition: transform .25s ease; }
/* Cards with a Cloudinary icon: CTA in the icon's teal→pink gradient. */
.wl-card.has-img-icon .wl-card-cta {
  background: linear-gradient(90deg, #0fc494, #f23f61);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.wl-card.has-img-icon .wl-card-cta i { color: #f23f61; -webkit-text-fill-color: #f23f61; }
.wl-card:hover .wl-card-cta i { transform: translateX(4px); }

/* ===== FEATURE LIST (detail page) ===== */
.wl-feature-list { list-style: none; margin: 0; padding: 0; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.wl-feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(6px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.wl-feature-item:hover {
  transform: translateX(6px);
  background: var(--wl-surface-2);
  border-color: rgba(0,184,148,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.wl-feature-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  background: var(--wl-grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(0,184,148,.35);
}
.wl-feature-text { color: var(--wl-text-soft); font-size: .98rem; line-height: 1.55; padding-top: .15rem; }

/* ===== DEMO "BROWSER" FRAME ===== */
.wl-demo-frame {
  max-width: 680px; margin: 0 auto;
  border-radius: 18px;
  background: #16122b;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  overflow: hidden;
  animation: wl-demo-breathe 6s ease-in-out infinite;
}
@keyframes wl-demo-breathe {
  0%, 100% { box-shadow: 0 24px 60px rgba(0,0,0,.5); }
  50%      { box-shadow: 0 30px 70px rgba(0,184,148,.25); }
}
.wl-demo-titlebar {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem;
  background: #1f1a3a;
}
.wl-demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.wl-demo-dot.r { background: #ff5f57; }
.wl-demo-dot.y { background: #febc2e; }
.wl-demo-dot.g { background: #28c840; }
/* Widgets are built against light site backgrounds — the demo canvas stays
   white on purpose so they render as they would on a customer's page. */
.wl-demo-body { background: #fff; padding: 1.25rem; }

/* ===== CTA BAND ===== */
.wl-cta-band {
  position: relative;
  background: linear-gradient(135deg, #064e3b, #00876b 45%, #c92a49 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  margin: 0 auto;
  max-width: 900px;
  overflow: hidden;
}
.wl-cta-band::before {
  content: '';
  position: absolute;
  top: -60%; left: -20%;
  width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent);
  transform: rotate(18deg);
  animation: wl-band-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wl-band-sheen {
  0%, 100% { transform: translateX(-40%) rotate(18deg); }
  50%      { transform: translateX(240%) rotate(18deg); }
}
.wl-cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .6rem; }
.wl-cta-band p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }
.wl-back-link { display: inline-block; margin-top: 1.5rem; color: var(--wl-text-dim); text-decoration: none; font-weight: 600; font-size: .9rem; transition: color .2s ease; }
.wl-back-link:hover { color: #5eead4; }

@media (max-width: 640px) {
  .wl-hero { padding: 4.5rem 1.25rem 3.5rem; min-height: 60vh; }
  .wl-section { padding: 3rem 1.25rem; }
}

/* ===== FOOTER ===== */
.wl-footer { background: #050310; border-top: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.7); padding: 3.5rem 1.5rem 1.5rem; }
.wl-footer-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem;
}
.wl-footer-brand { max-width: 320px; }
.wl-footer-logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.08rem; color: #fff;
  text-decoration: none; margin-bottom: .85rem;
}
.wl-footer-logo:hover { text-decoration: none; color: #fff; }
.wl-footer-brand p { font-size: .88rem; line-height: 1.65; color: rgba(255,255,255,.5); margin: 0 0 1.35rem; }
.wl-footer-social { display: flex; gap: .7rem; }
.wl-footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .25s ease, transform .25s ease;
}
.wl-footer-social a:hover { background: var(--wl-grad); transform: translateY(-3px); }
.wl-footer-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.wl-footer-col h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 1rem;
}
.wl-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.wl-footer-col a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.wl-footer-col a:hover { color: #fff; }
.wl-footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: .8rem; color: rgba(255,255,255,.4);
}

/* ===== ANIMATED COUNTER (hero badge) ===== */
.wl-count { font-variant-numeric: tabular-nums; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .wl-hero::after,
  .wl-hero-blob,
  .wl-hero-title,
  .wl-demo-frame,
  .wl-cta-band::before,
  .wl-hero-badge,
  .wl-hero-subtitle,
  .wl-hero-actions { animation: none !important; }
  .wl-reveal { transition: none; }
  .wl-card { transition: box-shadow .2s ease, border-color .2s ease; }
}

/* ===== LONG-FORM CONTENT SECTIONS =====
   Prose, setup walkthrough, options tables, use cases and FAQ on the
   per-widget landing pages (routes/widgetLandingRoutes.js). */

.wl-prose {
  max-width: 760px;
  margin: 0 auto;
}
.wl-prose p {
  color: var(--wl-text-soft);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 0 1.15rem;
}
.wl-prose p:last-child { margin-bottom: 0; }

/* ── Setup steps ── */
.wl-steps {
  list-style: none;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.wl-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}
.wl-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wl-grad);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wl-step-body h3 {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--wl-text);
}
.wl-step-body p {
  margin: 0;
  color: var(--wl-text-soft);
  font-size: .93rem;
  line-height: 1.65;
}

/* ── Code block ── */
.wl-code {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px -24px rgba(124, 58, 237, .45), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* A thin gradient hairline along the top of the frame */
.wl-code::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #22d3ee, transparent);
}
.wl-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 4px 6px 12px;
}
.wl-code-file {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  color: rgba(235, 230, 255, .75);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-code-file i { color: var(--wl-cyan); font-size: .75rem; }
.wl-code-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: var(--wl-text);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wl-code-copy:hover { background: rgba(255, 255, 255, .16); border-color: rgba(34, 211, 238, .6); }
.wl-code-copy:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.wl-code-copy.is-done { background: rgba(16, 185, 129, .22); border-color: rgba(52, 211, 153, .7); color: #a7f3d0; }
.wl-code pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem .9rem;
  overflow-x: auto;
  border-radius: 12px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(135deg, rgba(124, 58, 237, .32), rgba(34, 211, 238, .16));
  counter-reset: wl-code-line;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.wl-code pre:focus-visible { outline: 2px solid var(--wl-violet); outline-offset: 2px; }
.wl-code code {
  font-family: ui-monospace, 'SFMono-Regular', 'Fira Code', Menlo, monospace;
  font-size: .85rem;
  line-height: 1.8;
  color: #e9e5ff;
  white-space: pre;
}
.wl-code-line::before {
  counter-increment: wl-code-line;
  content: counter(wl-code-line);
  display: inline-block;
  width: 1.4em;
  margin-right: 1.1em;
  text-align: right;
  color: rgba(235, 230, 255, .4);
  user-select: none;
}
.wl-tok-comment { color: #b9b4d6; font-style: italic; }
.wl-tok-tag     { color: #d8b4fe; font-weight: 600; }
.wl-tok-attr    { color: #67e8f9; }
.wl-tok-string  { color: #86efac; }

/* ── Options tables ── */
.wl-table-wrap {
  max-width: 900px;
  margin: 0 auto 2rem;
  overflow-x: auto;
  border: 1px solid var(--wl-border);
  border-radius: 16px;
  background: var(--wl-surface);
}
.wl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 520px;
}
.wl-table caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.25rem .5rem;
  color: var(--wl-text);
  font-weight: 700;
  font-size: .95rem;
}
.wl-table th,
.wl-table td {
  padding: .8rem 1.25rem;
  text-align: left;
  border-top: 1px solid var(--wl-border);
  vertical-align: top;
}
.wl-table thead th {
  color: var(--wl-text-dim);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.wl-table tbody th {
  color: var(--wl-text);
  font-weight: 600;
}
.wl-table tbody td { color: var(--wl-text-soft); }
.wl-table-help {
  display: block;
  margin-top: .2rem;
  font-weight: 400;
  font-size: .82rem;
  color: var(--wl-text-dim);
}

/* ── Use cases ── */
.wl-usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.wl-usecase {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 16px;
  padding: 1.5rem;
}
.wl-usecase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0,184,148,.16);
  color: #5eead4;
  font-size: 1.05rem;
  margin-bottom: .9rem;
}
.wl-usecase h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wl-text);
}
.wl-usecase p {
  margin: 0;
  color: var(--wl-text-soft);
  font-size: .9rem;
  line-height: 1.65;
}

/* ── FAQ ── */
.wl-faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.wl-faq-item {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 14px;
  overflow: hidden;
}
.wl-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.35rem;
  font-weight: 650;
  font-size: .98rem;
  color: var(--wl-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .2s ease;
}
.wl-faq-item summary::-webkit-details-marker { display: none; }
.wl-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--wl-text-dim);
  transition: transform .25s ease, color .2s ease;
}
.wl-faq-item[open] summary::after { transform: rotate(45deg); color: #c4b5fd; }
.wl-faq-item summary:hover { color: #d8ccff; }
.wl-faq-answer {
  padding: 0 1.35rem 1.2rem;
}
.wl-faq-answer p {
  margin: 0;
  color: var(--wl-text-soft);
  font-size: .93rem;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .wl-step { padding: 1rem; }
  .wl-code pre { padding: 1rem; }
  .wl-table th, .wl-table td { padding: .7rem .9rem; }
}

/* =================================================================
   SPLIT HERO — copy on the left, the live widget on the right.
   --wl-accent is the widget's own colour (set inline per page).
================================================================= */
.wl-hero--split { text-align: left; padding: 7rem 1.5rem 5rem; min-height: 0; }
.wl-hero-split {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  /* start, not center: the demo changes height as visitors open menus or
     switch tabs, and a centred copy column would jump with every change. */
  gap: 4rem; align-items: start;
}
@media (min-width: 1025px) { .wl-hero--split .wl-hero-copy { padding-top: 3rem; } }
.wl-hero--split .wl-hero-subtitle { margin: 0 0 2rem; max-width: 540px; }
.wl-hero--split .wl-hero-actions { justify-content: flex-start; }
.wl-hero--split .wl-hero-title { margin-top: 0; }
.wl-hero-copy, .wl-hero-preview { min-width: 0; }
.wl-hero-preview, .wl-hero-preview *, .wl-hero-preview *::before, .wl-hero-preview *::after { box-sizing: border-box; }

.wl-hero-perks {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  color: var(--wl-text-soft); font-size: .9rem; font-weight: 500;
  animation: wl-fade-up .8s .42s ease both;
}
.wl-hero-perks i { color: #5eead4; margin-right: .35rem; font-size: .8rem; }

/* Preview column */
.wl-hero-preview {
  --wl-accent: #8b5cf6;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  animation: wl-fade-up .9s .25s ease both;
}
/* Coloured glow behind the window, in the widget's colour */
.wl-hero-preview::before {
  content: ''; position: absolute; inset: 8% 6% 12%;
  background: radial-gradient(closest-side, var(--wl-accent), transparent);
  opacity: .45; filter: blur(60px); z-index: -1;
}

.wl-live-pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .9rem .25rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .01em;
}
.wl-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6);
  animation: wl-live-pulse 2s ease-out infinite;
}
@keyframes wl-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* Browser window */
.wl-device {
  width: 100%; max-width: 100%; min-width: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.04) inset;
  padding: 10px;
  backdrop-filter: blur(14px);
}
.wl-device-bar { display: flex; align-items: center; gap: .9rem; padding: 4px 6px 12px; }
.wl-device-dots { display: inline-flex; gap: 6px; }
.wl-device-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.wl-device-dots i:nth-child(2) { background: #febc2e; }
.wl-device-dots i:nth-child(3) { background: #28c840; }
.wl-device-url {
  flex: 1; min-width: 0; text-align: center;
  font-size: .78rem; color: rgba(235,230,255,.65);
  background: rgba(0,0,0,.25); border-radius: 8px; padding: .3rem .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-device-url i { font-size: .65rem; margin-right: .3rem; color: #34d399; }

/* The "page" the widget sits on: light, like most client sites */
.wl-device-screen {
  position: relative;
  border-radius: 10px;
  background:
    radial-gradient(circle at 1px 1px, rgba(15,23,42,.06) 1px, transparent 0) 0 0 / 18px 18px,
    #f8fafc;
  padding: 22px;
  max-height: 540px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,23,42,.25) transparent;
}
.wl-device-screen iframe {
  display: block; width: 100%; border: 0; overflow: hidden; background: transparent;
  transition: height .25s ease;
}

/* Compact widgets (buttons, chat buttons…) placed inside a mock client page */
.wl-device-screen.is-compact {
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px; min-height: 300px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 55%);
}
.wl-mock-top { display: flex; flex-direction: column; gap: 18px; }
.wl-mock-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid #f1e5d6;
}
.wl-mock-logo { font-weight: 800; font-size: .95rem; color: #1f2937; white-space: nowrap; }
.wl-mock-logo i { color: #16a34a; margin-right: .25rem; }
.wl-mock-links { display: flex; gap: 14px; font-size: .78rem; font-weight: 600; color: #6b7280; }
.wl-mock-hero h4 { margin: .3rem 0 .4rem; font-size: 1.35rem; line-height: 1.2; font-weight: 800; color: #111827; }
.wl-mock-hero p { margin: 0; font-size: .88rem; line-height: 1.55; color: #4b5563; max-width: 40ch; }
.wl-mock-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ea580c; }
.wl-mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wl-mock-cards div {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid #f1e5d6; border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(120, 72, 20, .06);
}
.wl-mock-cards i { color: #ea580c; font-size: .9rem; margin-bottom: 4px; }
.wl-mock-cards b { font-size: .8rem; color: #1f2937; }
.wl-mock-cards span { font-size: .7rem; color: #6b7280; }
@media (max-width: 480px) {
  .wl-mock-links span:nth-child(n+2) { display: none; }
  .wl-mock-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-mock-cards div:nth-child(3) { display: none; }
}

/* Video inside the device window (link-preview page) */
.wl-device-screen.wl-video-screen { padding: 0; background: #0b0a16; overflow: hidden; }
.wl-video-screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wl-step-body h3 i { color: #a78bfa; margin-right: .35rem; font-size: .9em; }

.wl-preview-note { margin: 1rem 0 0; font-size: .8rem; color: var(--wl-text-dim); text-align: center; }

/* Widget overlays (gallery lightbox) take the whole viewport, like on a
   client's site. Transforms would trap position:fixed, so they are dropped. */
.wl-hero-preview.is-overlay,
.wl-hero-preview.is-overlay .wl-device { animation: none; transform: none; backdrop-filter: none; }
.wl-hero-preview.is-overlay .wl-device-screen { overflow: visible; }
.wl-hero--split:has(.is-overlay),
.wl-hero--split:has(.is-overlay) .wl-hero-split { position: relative; z-index: 2147483000; overflow: visible; }
.wl-hero-preview.is-overlay iframe {
  position: fixed; inset: 0; width: 100vw; height: 100vh !important;
  z-index: 2147483000; border-radius: 0;
}

/* Sunrise & Sunset: a tall card — give it room above so it does not sit on
   the frame's top edge, and enough height that no scrollbar appears. */
.wl-device-screen[data-widget="sunrise"] { padding-top: 40px; max-height: 600px; }

@media (max-width: 1024px) {
  .wl-hero-split { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .wl-hero--split { text-align: center; padding-top: 6rem; }
  .wl-hero--split .wl-hero-subtitle { margin: 0 auto 2rem; }
  .wl-hero--split .wl-hero-actions, .wl-hero-perks { justify-content: center; }
  .wl-hero-preview { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wl-hero--split { padding: 5.5rem 16px 3.5rem; }
  .wl-device { padding: 7px; border-radius: 14px; }
  .wl-device-screen { padding: 14px; max-height: 480px; }
  .wl-device-screen.is-compact { min-height: 240px; }
  .wl-live-pill { align-self: center; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-device, .wl-hero-preview, .wl-hero-perks, .wl-live-dot { animation: none !important; }
}

/* =================================================================
   SEARCH BAND — widget index (/widgets). Sticks under the header.
================================================================= */
.wl-search-band {
  position: sticky;
  top: 64px;
  z-index: 90;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(7, 5, 18, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.wl-search-band.is-stuck {
  background: rgba(7, 5, 18, .9);
  border-bottom-color: rgba(255, 255, 255, .07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.wl-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  flex-wrap: wrap;
}
.wl-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
  display: flex;
  align-items: center;
}
.wl-search > i {
  position: absolute;
  left: 1rem;
  color: var(--wl-text-dim);
  font-size: .9rem;
  pointer-events: none;
}
.wl-search input {
  width: 100%;
  padding: .8rem 2.6rem .8rem 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface-2);
  color: var(--wl-text);
  font: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wl-search input::placeholder { color: var(--wl-text-dim); }
.wl-search input:focus {
  border-color: rgba(139, 92, 246, .7);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .2);
}
.wl-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); cursor: pointer; }
.wl-search kbd {
  position: absolute;
  right: .9rem;
  padding: .05rem .45rem;
  border-radius: 6px;
  border: 1px solid var(--wl-border);
  color: var(--wl-text-dim);
  font: 600 .75rem/1.4 ui-monospace, monospace;
  pointer-events: none;
}
.wl-search input:focus ~ kbd, .wl-search input:not(:placeholder-shown) ~ kbd { display: none; }

.wl-search-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.wl-search-chips button {
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--wl-border);
  background: transparent;
  color: var(--wl-text-soft);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.wl-search-chips button:hover { border-color: rgba(0, 184, 148, .6); color: var(--wl-text); }
.wl-search-chips button[aria-pressed="true"] {
  background: var(--wl-grad);
  border-color: transparent;
  color: #fff;
}
.wl-search-chips button:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.wl-search-chips a {
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--wl-border);
  color: var(--wl-text-soft);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.wl-search-chips a:hover { border-color: rgba(0, 184, 148, .6); color: var(--wl-text); }
.wl-search-chips a:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.wl-search-count { margin-left: auto; color: var(--wl-text-dim); font-size: .85rem; font-weight: 600; white-space: nowrap; }

.wl-card[hidden], #wlResults section[hidden] { display: none !important; }

/* A widget's own page: the bar sits right under the fixed header, and what's
   typed suggests widgets in a panel instead of filtering cards. */
.wl-search-band.wl-search-band--jump { margin-top: 0; background: #0a0719; }
/* overflow-x: hidden on .wl-page would turn it into the sticky bar's scroller */
.wl-page:has(.wl-search-band--jump) { overflow-x: clip; }
.wl-search-band--jump + .wl-hero--split { padding-top: 3.5rem; }
html:has(.wl-search-band--jump) { scroll-padding-top: 160px; }
.wl-search-jump { position: relative; flex: 1 1 320px; max-width: 520px; }
.wl-search-jump .wl-search { max-width: none; }
.wl-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding: .4rem;
  border-radius: 16px;
  border: 1px solid var(--wl-border);
  background: #120f24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.wl-search-panel[hidden], .wl-search-panel a[hidden] { display: none; }
.wl-search-panel a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  color: var(--wl-text);
  text-decoration: none;
}
.wl-search-panel a:hover, .wl-search-panel a.is-active { background: rgba(255, 255, 255, .08); }
.wl-search-panel-icon {
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5eead4;
}
.wl-search-panel-text { min-width: 0; display: flex; flex-direction: column; }
.wl-search-panel-text b { font-size: .92rem; font-weight: 600; }
.wl-search-panel-text small {
  color: var(--wl-text-dim);
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-search-panel-empty { margin: 0; padding: .9rem; text-align: center; color: var(--wl-text-dim); font-size: .9rem; }
@media (max-width: 640px) {
  /* Stuck to the top on a phone, the chips would take up too much screen */
  .wl-search-band--jump .wl-search-chips,
  .wl-search-band--jump .wl-search-count { display: none; }
}

/* While searching, the category sections dissolve into one grid, so the
   results sit together right under the search bar. */
#wlResults.is-searching {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(16px, 4vw, 24px) 4rem;
}
#wlResults.is-searching section,
#wlResults.is-searching .wl-container,
#wlResults.is-searching .wl-grid { display: contents; }
#wlResults.is-searching .wl-section-header { display: none; }
#wlResults.is-searching .wl-no-results { grid-column: 1 / -1; }

.wl-no-results {
  max-width: 480px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
  color: var(--wl-text-soft);
}
.wl-no-results i { font-size: 2rem; color: var(--wl-text-dim); margin-bottom: 1rem; }
.wl-no-results p { margin: 0 0 1.5rem; font-size: 1.05rem; }
.wl-no-results strong { color: var(--wl-text); }

@media (max-width: 640px) {
  .wl-search-band { margin-top: 1.25rem; padding: .75rem 16px; }
  .wl-search { flex-basis: 100%; max-width: none; }
  .wl-search kbd { display: none; }
  .wl-search-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
  .wl-search-chips::-webkit-scrollbar { display: none; }
  .wl-search-count { display: none; }
}
/* Index hero: shorter, so the search band shows without scrolling */
.wl-hero--compact { min-height: 0; padding: 4.5rem 1.5rem 3rem; }
@media (max-width: 640px) { .wl-hero--compact { padding: 3.5rem 16px 2.5rem; } }

/* =================================================================
   FEATURED CARD — Nature Explorer: animated neon ring + "New" tag.
   .neon-ring holds the glow (drop-shadow) and its ::before the
   gradient, masked to a 2px ring: a filter on the masked element
   itself would be masked away with it.
================================================================= */
@property --neon-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.is-featured {
  overflow: visible !important;
  border-color: transparent !important;
}
.is-featured .neon-ring {
  position: absolute;
  inset: -2px;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 245, 160, .55)) drop-shadow(0 0 14px rgba(168, 85, 247, .35));
}
.is-featured .neon-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--neon-angle), #00f5a0, #00d9f5, #a855f7, #ff3d5d, #00f5a0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: neon-spin 4s linear infinite;
}
@keyframes neon-spin { to { --neon-angle: 360deg; } }

.is-featured .new-tag {
  position: absolute;
  top: 0;
  left: 1.5rem;
  z-index: 3;
  transform: translateY(-50%);
  padding: .28rem .75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00f5a0, #00d9f5 50%, #a855f7);
  color: #06121a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 0 0 3px var(--featured-gap, #070512), 0 0 16px rgba(0, 245, 160, .6);
  animation: new-tag-pulse 2.4s ease-in-out infinite;
}
@keyframes new-tag-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--featured-gap, #070512), 0 0 12px rgba(0, 245, 160, .45); }
  50%      { box-shadow: 0 0 0 3px var(--featured-gap, #070512), 0 0 22px rgba(0, 245, 160, .85); }
}
@media (prefers-reduced-motion: reduce) {
  .is-featured .neon-ring::before, .is-featured .new-tag { animation: none; }
}
/* The spotlight/border layers of .wl-card were clipped by overflow:hidden;
   with the overflow opened up for the tag they need their own rounding. */
.wl-card.is-featured::before, .wl-card.is-featured::after { border-radius: inherit; }
.wl-card.is-featured .neon-ring { position: absolute; z-index: 2; }
.wl-card.is-featured .new-tag { position: absolute; z-index: 3; }

@media (max-width: 1024px) {
  .wl-device-screen[data-widget="sunrise"] { padding-top: 30px; max-height: 560px; }
}
