/* Nova — clean SaaS magazine (InterFunnels style guide) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.theme-nova {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--if-ink, #1e1b4b);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(119, 91, 163, 0.14), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(195, 54, 112, 0.08), transparent 55%),
    #f0f0f8;
  line-height: 1.6;
}
.ifb-wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.ifb-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(240, 240, 248, 0.9);
  border-bottom: 1px solid var(--if-border, #e8e4f8);
}
.ifb-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.ifb-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.ifb-brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #667eea 0%, #775ba3 55%, #c33670 100%);
  color: #fff; font-weight: 800; font-size: .8rem;
}
.ifb-brand-text { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.ifb-logo { height: 36px; width: auto; }
.ifb-nav { display: flex; gap: 1.25rem; }
.ifb-nav a { color: var(--if-muted, #64748b); text-decoration: none; font-weight: 600; }
.ifb-nav a:hover { color: var(--if-primary, #775ba3); }
.ifb-hero { padding: 3.5rem 0 1.5rem; animation: ifb-rise .7s ease both; }
.ifb-hero--compact { padding-top: 1.5rem; }
.ifb-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
  color: var(--if-primary, #775ba3); font-weight: 700; margin: 0 0 .75rem;
}
.ifb-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; margin: 0 0 .75rem; max-width: 16ch;
  color: #1e1b4b; font-weight: 700;
}
.ifb-lede { color: var(--if-muted, #64748b); font-size: 1.1rem; max-width: 42ch; margin: 0; }
.ifb-cat-bar { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 0 2rem; }
.ifb-cat-bar a {
  text-decoration: none; color: #1e1b4b;
  background: #fff; border: 1px solid #e8e4f8;
  padding: .4rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.ifb-cat-bar a:hover { border-color: var(--if-primary, #775ba3); color: var(--if-primary, #775ba3); }
.ifb-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; padding-bottom: 2rem; }
.ifb-post-grid--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ifb-card {
  background: #fff; border: 1px solid #e8e4f8;
  border-radius: 14px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 12px rgba(91, 47, 207, 0.05);
  animation: ifb-rise .6s ease both;
}
.ifb-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08); }
.ifb-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.ifb-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ifb-card-body { padding: 1.25rem 1.35rem 1.5rem; }
.ifb-card h2, .ifb-card h3 { font-size: 1.25rem; margin: .35rem 0 .6rem; line-height: 1.3; font-weight: 700; }
.ifb-card h2 a, .ifb-card h3 a { color: inherit; text-decoration: none; }
.ifb-card h2 a:hover { color: var(--if-primary, #775ba3); }
.ifb-meta { font-size: .85rem; color: var(--if-muted, #64748b); }
.ifb-meta a { color: var(--if-primary, #775ba3); text-decoration: none; font-weight: 600; }
.ifb-excerpt { color: var(--if-muted, #64748b); margin: 0 0 1rem; }
.ifb-readmore {
  color: var(--if-primary, #775ba3); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--if-accent, #c33670);
}
.ifb-pager { padding-bottom: 3rem; }
.ifb-pager ul { display: flex; gap: .35rem; list-style: none; padding: 0; }
.ifb-pager a, .ifb-pager span {
  display: inline-block; padding: .4rem .75rem; border-radius: 10px;
  text-decoration: none; color: #1e1b4b; background: #fff; border: 1px solid #e8e4f8;
}
.ifb-pager .active a, .ifb-pager .active span { background: var(--if-primary, #775ba3); color: #fff; border-color: transparent; }
.ifb-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; color: var(--if-muted, #64748b); padding: 1.5rem 0 .5rem; }
.ifb-breadcrumbs a { color: var(--if-primary, #775ba3); text-decoration: none; font-weight: 600; }
.ifb-article { padding-bottom: 3rem; }
.ifb-article-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: .5rem 0 1rem; max-width: 20ch; font-weight: 700; }
.ifb-featured { margin: 1.5rem 0 2rem; border-radius: 14px; overflow: hidden; }
.ifb-featured img { width: 100%; display: block; }
.ifb-content { font-size: 1.05rem; max-width: 68ch; }
.ifb-content img { max-width: 100%; height: auto; border-radius: 12px; }
.ifb-content a { color: var(--if-primary, #775ba3); }
.ifb-related { padding: 1rem 0 3rem; }
.ifb-footer { border-top: 1px solid #e8e4f8; padding: 2rem 0; color: var(--if-muted, #64748b); font-size: .95rem; background: rgba(255,255,255,.55); }
.ifb-empty { color: var(--if-muted, #64748b); }
@keyframes ifb-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .ifb-nav { gap: .85rem; font-size: .9rem; }
  .ifb-hero { padding-top: 2rem; }
}
