/* ===========================================================
   Website Examples & Redesign Concepts
   Scoped additions only. Everything else inherits styles.css.
   All selectors are prefixed .wx- to avoid bleeding into the
   shared header, footer, hero, buttons, and cards.
   =========================================================== */

/* ---------- Shared section lede ---------- */
.wx-section-lede {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 44rem;
}

/* ===========================================================
   Hero
   =========================================================== */
.wx-hero-badge {
  margin-bottom: 1.25rem;
}
.wx-hero-note {
  margin-top: -0.75rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 34rem;
}

/* Premium layered preview: a browser frame with a floating second screen */
.wx-hero-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
  padding-left: 2.5rem;
}
.wx-browser {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wx-browser__bar {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: var(--color-gray);
  border-bottom: 1px solid var(--color-border);
}
.wx-browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}
.wx-browser__bar span:first-child { background: #ff5f57; }
.wx-browser__bar span:nth-child(2) { background: #febc2e; }
.wx-browser__bar span:nth-child(3) { background: #28c840; }
.wx-browser img {
  width: 100%;
  height: auto;
  display: block;
}
.wx-hero-float {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 38%;
  max-width: 180px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) {
  .wx-hero-frame { padding-left: 1.5rem; padding-bottom: 1.5rem; }
  .wx-hero-float { width: 34%; }
}

/* ===========================================================
   Card shared bits — eyebrow, status pill, tags
   =========================================================== */
.wx-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}
.wx-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-royal);
}
.wx-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.wx-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.wx-status--live {
  color: var(--color-royal);
  background: var(--color-circuit);
}
.wx-status--demo {
  color: var(--color-muted);
  background: var(--color-gray);
}

.wx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 0.25rem;
}
.wx-tags li {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-navy);
  background: var(--color-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.65rem;
}

/* ===========================================================
   Featured grid — larger, more important cards
   =========================================================== */
.wx-featured-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 760px) {
  .wx-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
.example-card--featured .example-card__body {
  gap: 0.7rem;
  padding: clamp(1.6rem, 3vw, 2.1rem);
}
.example-card--featured .example-card__body h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
}
.example-card--featured .example-card__cta {
  margin-top: 1rem;
}

/* ===========================================================
   Browse / filterable gallery
   =========================================================== */
.wx-browse { background: var(--color-gray); }

.wx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.wx-filter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  transition: color var(--transition-base), background-color var(--transition-base),
              border-color var(--transition-base), transform var(--transition-base),
              box-shadow var(--transition-base);
}
.wx-filter:hover {
  border-color: var(--color-royal);
  transform: translateY(-1px);
}
.wx-filter.is-active {
  color: var(--color-white);
  background: var(--color-royal);
  border-color: var(--color-royal);
  box-shadow: var(--shadow-glow);
}

.wx-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  transition: opacity 0.18s ease;
}
.wx-gallery.is-fading { opacity: 0; }
@media (min-width: 640px) {
  .wx-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .wx-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wx-gallery { transition: none; }
}

/* Text-forward gallery card (no image), consistent heights */
.example-card--compact {
  height: 100%;
}
.example-card--compact .example-card__body {
  height: 100%;
  gap: 0.55rem;
  padding: clamp(1.4rem, 2.6vw, 1.7rem);
}
.example-card--compact h3 {
  font-size: 1.12rem;
  margin: 0.1rem 0 0.2rem;
}
.wx-card__desc {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.96rem;
}
.example-card--compact .wx-card__meta {
  color: var(--color-muted);
  font-size: 0.88rem;
}
.example-card--compact .wx-tags { margin-top: auto; }
.example-card--compact .example-card__cta,
.example-card--compact .wx-card__cta {
  margin-top: 0.85rem;
}

/* "Demo coming soon" disabled button */
.wx-card__cta.is-soon {
  background: transparent;
  color: var(--color-muted);
  border: 1.5px dashed var(--color-border);
  cursor: not-allowed;
  box-shadow: none;
}
.wx-card__cta.is-soon:hover {
  transform: none;
  background: transparent;
  border-color: var(--color-border);
}

.wx-gallery-empty {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem 0;
}

/* ===========================================================
   Value / "What these examples show"
   =========================================================== */
.wx-value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .wx-value-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   Final CTA — secondary ghost button on dark band
   =========================================================== */
.wx-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.wx-btn--on-dark-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.wx-btn--on-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}
