/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Custom Properties ─────────────────────────────────────────────────────── */
:root {
  --navy:           #1a2744;
  --navy-light:     #243460;
  --purple:         #7c3aed;
  --purple-light:   #ede9fe;
  --purple-dark:    #5b21b6;
  --cyan:           #06b6d4;
  --cyan-light:     #67e8f9;
  --white:          #ffffff;
  --blue:           #2563eb;
  --green:          #16a34a;
  --orange:         #ea580c;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-400:       #94a3b8;
  --gray-600:       #475569;
  --gray-800:       #1e293b;
  --gradient:         linear-gradient(135deg, var(--navy) 0%, #4c1d95 100%);
  --gradient-accent:  linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
}

html { scroll-behavior: smooth; }

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 64px; /* offset for fixed nav */
}
/* When admin bar is visible, extra offset */
.admin-bar body { padding-top: 64px; }

.material-icons {
  font-size: inherit;
  vertical-align: middle;
  line-height: 1;
}

/* ── NAV ───────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}

/* Push nav below WordPress admin bar when logged in */
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* Logo image — constrained so a large custom logo never breaks the nav */
.nav-logo img,
.nav-logo .nav-logo-img,
.nav-logo .custom-logo {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
/* WordPress wraps custom_logo in an extra <a> — flatten it */
.nav-logo .custom-logo-link {
  display: contents; /* removes the extra box without breaking layout */
}
.nav-logo p {
  font-size: 1.1rem;
  color: var(--gray-800);
  letter-spacing: -0.02em;
  font-weight: 800;
  white-space: nowrap;
}
/* Site tagline shown in shared header — hide if empty / not wanted */
.nav-logo p span {
  color: var(--purple);
  font-weight: 800;
}
.nav-logo p span:empty { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: var(--gradient-accent);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: opacity 0.2s !important;
}
.btn-nav:hover { opacity: 0.9; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--gradient);
  padding: 80px 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
  color: var(--white);
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); }

/* ── MOCKUP CAROUSEL ───────────────────────────────────────────────────────── */
.mockup-carousel-section {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  width: 100%;
}
.mockup-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding-bottom: 80px;
}
.mockup-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  align-items: flex-start;
}
.mockup-slide {
  flex: 0 0 100%;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 900px) {
  .mockup-slide { flex: 0 0 calc(100% / 3); }
}
.mockup-img-wrap {
  width: 100%;
  max-width: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0,0,0,0.55);
}
.mockup-img-wrap img { width: 100%; height: auto; display: block; }

/* Carousel arrows */
.carousel-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.carousel-arrow:hover  { background: rgba(255,255,255,0.2); }
.carousel-arrow:disabled { opacity: 0.25; cursor: default; }

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: #a78bfa;
  transform: scale(1.3);
}
@media (min-width: 900px) {
  .carousel-dots  { display: none; }
  .carousel-arrow { display: none; }
}

/* ── SOCIAL PROOF BAR ──────────────────────────────────────────────────────── */
.proof-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 24px;
  text-align: center;
}
.proof-bar p { color: var(--gray-600); font-size: 0.875rem; font-weight: 500; }
.proof-bar strong { color: var(--gray-800); }

/* ── SHARED SECTION ────────────────────────────────────────────────────────── */
section { padding: 96px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 800px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── PROBLEM ───────────────────────────────────────────────────────────────── */
.problem { background: var(--gray-50); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px;
}
.problem-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #eae2fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #5d26dc;
}
.problem-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.problem-card p  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ── HOW IT WORKS ──────────────────────────────────────────────────────────── */
.how-it-works { background: var(--white); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.how-step { text-align: center; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step p  { font-size: 14px; color: var(--gray-600); }
.callout {
  background: var(--purple-light);
  border: 3px solid var(--purple);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--gray-800);
  line-height: 1.7;
}
.callout strong { color: var(--purple-dark); }

/* ── FEATURES ──────────────────────────────────────────────────────────────── */
.features { background: var(--gray-50); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(26,39,68,0.08);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }
.free-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── PRO FEATURES ──────────────────────────────────────────────────────────── */
.pro-section { background: var(--gradient); }
.pro-section .section-label { color: var(--cyan-light); }
.pro-section .section-title { color: var(--white); }
.pro-section .section-sub   { color: rgba(255,255,255,0.7); }
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.pro-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.pro-card:hover { background: rgba(255,255,255,0.12); }
.pro-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
}
.pro-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.pro-card p  { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 16px; }
.pro-scenario {
  background: rgba(0,0,0,0.2);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--cyan-light);
  font-style: italic;
  line-height: 1.5;
}

/* ── ATTRIBUTION ───────────────────────────────────────────────────────────── */
.attribution-section { background: var(--gray-50); }
.attribution-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 56px 0 40px;
}
.flow-step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  width: 230px;
  flex-shrink: 0;
}
.flow-step .flow-icon { font-size: 2rem; margin-bottom: 10px; color: var(--purple); }
.flow-step h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.flow-step p  { font-size: 0.8rem; color: var(--gray-600); line-height: 1.5; }
.flow-arrow { font-size: 1.5rem; color: var(--purple); padding: 0 12px; flex-shrink: 0; }
.attribution-note {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.attribution-note .note-icon { font-size: 2rem; flex-shrink: 0; color: var(--cyan-light); }
.attribution-note h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.attribution-note p  { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.attribution-note strong { color: var(--cyan-light); }

/* ── COMPARISON TABLE ──────────────────────────────────────────────────────── */
.compare { background: var(--gray-100); }
.compare-wrap {
  overflow-x: auto;
  margin-top: 48px;
  box-shadow: 0 4px 24px rgba(26,39,68,0.06);
  border-radius: 16px;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}
.comp-table th,
.comp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.comp-table th { background: var(--purple-light); font-weight: 700; color: var(--navy); }
.comp-table th:nth-child(2),
.comp-table th:nth-child(3) { text-align: center; }
.comp-table td:nth-child(2),
.comp-table td:nth-child(3) { text-align: center; font-size: 18px; }
.comp-table tr:hover td { background: #faf5ff; }
.check   { color: #059669; }
.cross   { color: #dc2626; }
.partial { color: #d97706; font-size: 0.8rem; font-weight: 600; }

/* ── PRICING ───────────────────────────────────────────────────────────────── */
.pricing { background: var(--white); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 56px;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
}
.price-card.free {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
}
.price-card.pro {
  background: var(--gray-50);
  border: 2px solid var(--purple);
}
.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.price-name   { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-600); }
.price-amount { font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; color: var(--navy); }
.price-amount span { font-size: 1.2rem; font-weight: 500; color: var(--gray-400); }
.price-period { font-size: 0.85rem; margin-bottom: 28px; color: var(--gray-400); }
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; padding: 6px 0; color: var(--gray-600);
}
.price-features li::before { content: '✓'; font-weight: 700; flex-shrink: 0; margin-top: 1px; color: #059669; }
.btn-price-free {
  display: block; text-align: center;
  padding: 14px; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--gray-200);
  transition: border-color 0.2s;
}
.btn-price-free:hover { border-color: var(--navy); color: var(--navy); }
.btn-price-pro {
  display: block; text-align: center;
  padding: 14px; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  background: var(--gradient-accent); color: var(--white);
  transition: opacity 0.2s;
  box-shadow: 0 4px 16px rgba(6,182,212,0.3);
}
.btn-price-pro:hover { opacity: 0.9; color: var(--white); }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { background: var(--gray-50); }
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none;
  padding: 20px 24px; text-align: left;
  font-size: 0.95rem; font-weight: 600; color: var(--navy);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--purple); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem; color: var(--gray-600); line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── FINAL CTA ─────────────────────────────────────────────────────────────── */
.final-cta {
  background: var(--gradient);
  padding: 96px 24px;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.final-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 500px; margin: 0 auto 40px; line-height: 1.7;
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); padding: 40px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-widgets-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav-links {
  display: flex; align-items: center; gap: 20px;
  list-style: none; flex-wrap: wrap;
}
.footer-nav-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-nav-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
}
.footer-copy a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-copy a:hover { color: var(--white); }

/* ── PAGE HERO (blog, page, single) ───────────────────────────────────────── */
.page-hero {
  background: var(--gradient);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; color: var(--white);
  letter-spacing: -0.03em; line-height: 1.15;
  margin-top: 12px;
}
.page-hero-sub { font-size: 1rem; color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 600px; margin-left: auto; margin-right: auto; }
.post-cat-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gradient-accent);
  color: var(--white);
  padding: 4px 12px; border-radius: 100px;
  text-decoration: none;
}
.post-hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.post-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
}
.post-author img { border-radius: 50%; }
.post-date,
.post-read-time { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* ── BLOG LISTING ──────────────────────────────────────────────────────────── */
.blog-section { background: var(--gray-50); padding: 56px 24px 96px; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 300px; }
}

/* Featured (first) post */
.blog-post-featured {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: box-shadow 0.2s;
  margin-bottom: 8px;
}
.blog-post-featured:hover { box-shadow: 0 8px 32px rgba(26,39,68,0.09); }
@media (min-width: 768px) {
  .blog-post-featured { grid-template-columns: 1fr 1fr; }
}
.blog-featured-thumb { display: block; overflow: hidden; }
.blog-featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-featured-thumb:hover img { transform: scale(1.03); }
.blog-featured-body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.25;
  margin: 12px 0 16px;
}
.blog-featured-title a { text-decoration: none; color: inherit; }
.blog-featured-title a:hover { color: var(--purple); }

/* Card grid */
.blog-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
/* The featured post spans full width; cards follow in a subgrid */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(26,39,68,0.08);
  transform: translateY(-3px);
}

/* When there is no sidebar we use a 2-col card grid */
@media (min-width: 768px) {
  .blog-main:has(.blog-post-featured) ~ .blog-main,
  .blog-layout:not(:has(.blog-sidebar)) .blog-main {
    display: block;
  }
}

.blog-card-thumb { display: block; overflow: hidden; height: 200px; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  line-height: 1.3; margin: 10px 0 10px;
}
.blog-card-title a { text-decoration: none; color: inherit; }
.blog-card-title a:hover { color: var(--purple); }
.blog-excerpt { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.blog-excerpt--sm { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--gray-400);
  margin-top: auto; flex-wrap: wrap;
}
.post-meta .post-author { color: var(--gray-600); }

/* No posts */
.no-posts {
  text-align: center; padding: 80px 24px;
  color: var(--gray-400);
}
.no-posts .material-icons { font-size: 3rem; display: block; margin-bottom: 16px; }
.no-posts h2 { font-size: 1.5rem; color: var(--gray-600); margin-bottom: 8px; }

/* Pagination */
.lbt-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.lbt-page-item a,
.lbt-page-item span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gray-200);
  color: var(--gray-600); background: var(--white);
  transition: border-color 0.2s, color 0.2s;
}
.lbt-page-item a:hover { border-color: var(--purple); color: var(--purple); }
.lbt-page-item .current { background: var(--purple); color: var(--white); border-color: var(--purple); }

/* ── SIDEBAR ───────────────────────────────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 32px; }
.widget { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 24px; }
.widget-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px; }
.widget ul { list-style: none; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { text-decoration: none; color: var(--gray-600); transition: color 0.2s; }
.widget ul li a:hover { color: var(--purple); }

/* ── SINGLE POST ───────────────────────────────────────────────────────────── */
.post-featured-image { background: var(--gray-50); padding: 0 24px 40px; }
.post-thumb-img {
  display: block; max-width: 860px; width: 100%;
  margin: 0 auto; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26,39,68,0.12);
}
.post-body-section { background: var(--gray-50); padding: 56px 24px 96px; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: 1fr 300px; }
}
.post-content { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 48px; }
.entry-content { font-size: 1rem; line-height: 1.85; color: var(--gray-800); }
.entry-content h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 36px 0 12px; letter-spacing: -0.02em; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.entry-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.entry-content p  { margin-bottom: 20px; }
.entry-content a  { color: var(--purple); text-decoration: underline; }
.entry-content a:hover { color: var(--purple-dark); }
.entry-content ul,
.entry-content ol { padding-left: 28px; margin-bottom: 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--purple);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--purple-light);
  border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--navy);
}
.entry-content pre,
.entry-content code {
  background: var(--gray-100);
  border-radius: 6px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
}
.entry-content pre  { padding: 20px 24px; overflow-x: auto; margin-bottom: 20px; }
.entry-content code { padding: 2px 6px; }
.entry-content img  { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.entry-content hr   { border: none; border-top: 1px solid var(--gray-200); margin: 40px 0; }
.post-tags { font-size: 0.875rem; color: var(--gray-600); margin-top: 32px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-tags a { background: var(--gray-100); border-radius: 6px; padding: 4px 10px; text-decoration: none; color: var(--gray-600); font-size: 0.8rem; }
.post-tags a:hover { background: var(--purple-light); color: var(--purple); }
.post-author-box {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--gray-50); border-radius: 16px; padding: 24px;
  margin-top: 48px;
}
.post-author-box img { border-radius: 50%; flex-shrink: 0; }
.post-author-box h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.post-author-box p  { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 40px;
}
.post-nav-link {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s;
}
.post-nav-link:hover { border-color: var(--purple); }
.post-nav-next { text-align: right; }
.post-nav-dir  { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); }
.post-nav-title { font-size: 0.9rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.post-comments { margin-top: 40px; }

/* ── PAGE TEMPLATE ─────────────────────────────────────────────────────────── */
.page-body-section { background: var(--gray-50); padding: 50px 0 80px; }
.page-content-wrap { max-width: 820px; margin: 0 auto; }
.page-content-wrap .post-content { border: none; box-shadow: none; padding: 16px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 8px 0; z-index: 199; }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-hamburger { display: flex; }

  section { padding: 72px 20px; }
  .hero   { padding: 72px 20px 40px; }
  .flow-arrow   { display: none; }
  .attribution-flow { gap: 16px; }
  .attribution-note { flex-direction: column; }
  .post-content { padding: 28px 20px; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .blog-post-featured { grid-template-columns: 1fr; }
  .page-body-section { padding-top: 0;}
  .page-content-wrap .post-content { padding: 30px; }
}
