/* ═══════════════════════════════════════════════════════════
   WidgetForge Design System — design.css
   "Industrial Craft" aesthetic: amber/fire, dot-grid texture,
   Bricolage Grotesque display + DM Sans body.

   Load this file AFTER theme.css on every marketing page:
   <link rel="stylesheet" href="/css/design.css" />
   ═══════════════════════════════════════════════════════════ */

/* Bricolage Grotesque — self-hosted */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-v9-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-v9-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-v9-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-v9-latin-800.woff2') format('woff2');
}

/* DM Sans — self-hosted */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-600.woff2') format('woff2');
}

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --amber-glow: rgba(245, 158, 11, 0.18);
  --amber-glow-dark: rgba(245, 158, 11, 0.25);
}

body {
  font-family: var(--font-body);
}

/* ── Keyframe animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bloom-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(25px, 15px) scale(1.06); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* ── Reveal utility ────────────────────────────────────────── */
.reveal   { animation: fadeUp 0.5s ease both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.12s; }
.reveal-3 { animation-delay: 0.19s; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 1rem 5rem;
  background-color: var(--background);
}

/* Dot-grid texture overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.7;
  pointer-events: none;
}
.dark .hero-section::before { opacity: 0.35; }

/* Soft amber bloom — top-right */
.hero-bloom-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.1;
  top: -180px;
  right: -150px;
  pointer-events: none;
  animation: bloom-drift 10s ease-in-out infinite alternate;
}
.dark .hero-bloom-1 { opacity: 0.15; }

/* Soft bloom — bottom-left */
.hero-bloom-2 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, #fb923c 0%, transparent 70%);
  opacity: 0.08;
  bottom: -100px;
  left: -100px;
  pointer-events: none;
  animation: bloom-drift 12s 2s ease-in-out infinite alternate-reverse;
}
.dark .hero-bloom-2 { opacity: 0.12; }

/* Hero content wrapper (positioned above blooms) */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.5s ease both;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Hero headline */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s 0.08s ease both;
}
.hero-title .amber { color: var(--primary); }

/* Hero subtext */
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  max-width: 490px;
  margin: 0 auto 2.75rem;
  animation: fadeUp 0.5s 0.16s ease both;
}

/* CTA row */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.24s ease both;
}

/* Primary CTA button */
.btn-forge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-forge:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--amber-glow), 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dark .btn-forge:hover {
  box-shadow: 0 10px 28px var(--amber-glow-dark), 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Ghost / secondary CTA button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════════════ */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  min-width: 100px;
  max-width: 180px;
  text-align: center;
  padding: 20px 16px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: -0.03em;
  color: var(--foreground);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ═══════════════════════════════════════════════════════════
   SECTION CHROME  (eyebrow + heading + body copy)
   ═══════════════════════════════════════════════════════════ */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--foreground);
  margin-bottom: 12px;
}

.section-body {
  font-size: 0.9875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  max-width: 480px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   WIDGET CARDS
   ═══════════════════════════════════════════════════════════ */
.widget-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Amber bottom-bar reveal on hover */
.widget-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #fb923c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.09), 0 4px 12px var(--amber-glow);
  border-color: rgba(245, 158, 11, 0.28);
}
.dark .widget-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 4px 16px var(--amber-glow-dark);
}
.widget-card:hover::after { transform: scaleX(1); }

/* Icon wrapper — rounded square */
.widget-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.widget-card:hover .widget-icon-wrap { background: rgba(245, 158, 11, 0.2); }
.dark .widget-card:hover .widget-icon-wrap { background: rgba(146, 64, 14, 0.5); }

.widget-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--foreground);
  margin: 0 0 5px;
}
.widget-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}

/* Card CTA link */
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.15s, transform 0.15s;
}
.card-link:hover { opacity: 0.88; transform: translateX(2px); }

/* ═══════════════════════════════════════════════════════════
   STEP CARDS  (How It Works)
   ═══════════════════════════════════════════════════════════ */
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08); }
.dark .step-card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); }

/* Large decorative background number */
.step-bg-num {
  position: absolute;
  top: -12px;
  right: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.dark .step-bg-num { opacity: 0.1; }

/* Small amber square step indicator */
.step-badge {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.step-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--foreground);
  margin: 0 0 8px;
}
.step-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   BLOG CARDS
   ═══════════════════════════════════════════════════════════ */

/* Featured blog post — full-width horizontal layout on md+ */
.blog-card-featured {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (min-width: 768px) {
  .blog-card-featured { grid-template-columns: 1fr 1fr; }
}
.blog-card-featured::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #fb923c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.09), 0 4px 12px var(--amber-glow);
  border-color: rgba(245, 158, 11, 0.28);
}
.dark .blog-card-featured:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 4px 16px var(--amber-glow-dark);
}
.blog-card-featured:hover::after { transform: scaleX(1); }

.blog-card-featured__visual {
  position: relative;
  min-height: 220px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .blog-card-featured__visual { min-height: 320px; }
}
.blog-card-featured__visual-bloom {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.12;
  top: -80px;
  left: -80px;
  pointer-events: none;
}
.dark .blog-card-featured__visual-bloom { opacity: 0.2; }

.blog-card-featured__icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.blog-card-featured__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

/* Standard blog post card */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}
.blog-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #fb923c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.09), 0 4px 12px var(--amber-glow);
  border-color: rgba(245, 158, 11, 0.28);
}
.dark .blog-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 4px 16px var(--amber-glow-dark);
}
.blog-card:hover::after { transform: scaleX(1); }

.blog-card__image {
  margin: -24px -24px 20px -24px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  height: 160px;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category tag pill */
.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  width: fit-content;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-card__date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--foreground);
  margin: 0;
  transition: color 0.15s;
}
.blog-card:hover h3 { color: var(--primary); }

.blog-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0;
  flex: 1;
}

.blog-card__read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.15s;
}
.blog-card:hover .blog-card__read-more { gap: 9px; }

/* ============================================================
   Blog Post Article (prose content)
   ============================================================ */

.blog-post-header {
  padding: 80px 1rem 48px;
  max-width: 760px;
  margin: 0 auto;
}

.blog-post-header .blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.blog-post-header .blog-back:hover { color: var(--primary); }

.blog-post-header .blog-tag { margin-bottom: 16px; }

.blog-post-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--foreground);
  margin: 0 0 20px;
}

.blog-post-header .blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.blog-post-header .blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-divider {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 56px;
  border: none;
  border-top: 1px solid var(--border);
}

/* Prose body */
.blog-post-image {
  display: block;
  max-width: 760px;
  width: calc(100% - 2rem);
  margin: 0 auto 0;
  border-radius: 14px;
  overflow: hidden;
}
.blog-post-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.blog-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem 80px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--foreground);
}

.blog-prose p {
  margin: 0 0 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.85;
}

.blog-prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--foreground);
  margin: 2.75rem 0 1rem;
  padding-top: 0.25rem;
}

.blog-prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--foreground);
  margin: 1.75rem 0 0.625rem;
}

.blog-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.blog-prose ul, .blog-prose ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.85;
}

.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li { margin-bottom: 0.4rem; }

.blog-prose strong {
  color: var(--foreground);
  font-weight: 600;
}

.blog-prose em {
  color: var(--muted-foreground);
  font-style: italic;
}

/* Tip / note callout */
.blog-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--accent-foreground);
  line-height: 1.65;
}

.blog-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.blog-callout__icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 1rem;
}

/* Code block */
.blog-prose pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.blog-prose code {
  font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--primary);
  background: none;
}

.blog-prose p code, .blog-prose li code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.8125rem;
  color: var(--primary);
}

/* Platform steps list */
.blog-steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  counter-reset: step-counter;
}

.blog-steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.blog-steps li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Platform section card */
.blog-platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  margin: 0 0 1.75rem;
}

.blog-platform-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.blog-platform-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-platform-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0;
}

.blog-platform-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--foreground);
  margin: 1.25rem 0 0.625rem;
}

/* Footer CTA inside blog post */
.blog-cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin-top: 3rem;
}

.blog-cta-box h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin: 0 0 10px;
}

.blog-cta-box p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin: 0 0 24px;
}

@media (max-width: 640px) {
  .blog-post-header { padding: 56px 1rem 32px; }
  .blog-platform-card { padding: 20px 18px 18px; }
  .blog-cta-box { padding: 24px 20px; }
}

/* === Blog Index Dynamic UI === */

.blog-search-area {
  max-width: 64rem;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.blog-search-input::placeholder {
  color: var(--muted-foreground);
}

.blog-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.blog-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
}

.blog-tag-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
  transform: translateY(-1px);
}

.blog-tag-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.blog-tag-btn.active:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.blog-tag-count {
  opacity: 0.7;
  font-weight: 400;
}

.blog-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════════
   WIDGET CONFIGURATOR  (colour-scheme picker, colour inputs)
   ═══════════════════════════════════════════════════════════ */

/* Highlight the selected theme card */
.theme-option input:checked + .theme-card {
  border-color: var(--primary);
}

/* Normalise native colour pickers across browsers */
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   BACKGROUND IMAGE CARDS  (.wf-bg-card)
   Adds a dark overlay so background images show as subtle
   texture without hurting text legibility.
   Apply alongside .widget-card + set background-image inline.
   ═══════════════════════════════════════════════════════════ */
.wf-bg-card {
  background-size: cover;
  background-position: center;
}
.wf-bg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.87);
  z-index: 0;
  transition: background 0.3s ease;
}
.wf-bg-card:hover::before {
  background: rgba(26, 26, 26, 0.78);
}
.wf-bg-card > * {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION  (homepage + any page using wf-faq-*)
   ═══════════════════════════════════════════════════════════ */
.wf-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.wf-faq-item[open] {
  border-color: rgba(245, 158, 11, 0.35);
}

.wf-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s;
}
.wf-faq-q::-webkit-details-marker { display: none; }
.wf-faq-item[open] .wf-faq-q { color: var(--primary); }

/* Chevron via ::after */
.wf-faq-q::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.25s ease;
}
.wf-faq-item[open] .wf-faq-q::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.wf-faq-a {
  padding: 0 22px 18px;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.wf-faq-a p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin: 14px 0 0;
}
.wf-faq-a p strong { color: var(--foreground); }
