:root {
  --lx-bg: #FAF8F5;
  --lx-surface: #FFFFFF;
  --lx-primary: #2563EB;
  --lx-primary-glow: rgba(37, 99, 235, 0.25);
  --lx-glass-border: rgba(28, 25, 23, 0.08);
  --lx-glass-highlight: rgba(255, 255, 255, 0.8);
  --lx-warm: #B45309;
}

body {
  background-color: var(--lx-bg);
  color: #1C1917;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 3rem;
  min-width: 7rem;
}
.site-logo {
  object-fit: contain;
  display: block;
  height: 2rem;
  width: auto;
  max-width: 9rem;
}
.site-logo--footer { height: 1.5rem; max-width: 7rem; }

/* Flex-centered header nav — 3-column grid prevents overlap with CTA buttons */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.nav-bar .nav-center {
  display: none;
}
.nav-bar .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .nav-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }
  .nav-bar .logo-link {
    grid-column: 1;
    justify-self: start;
  }
  .nav-bar .nav-center {
    display: flex;
    position: static;
    transform: none;
    left: auto;
    grid-column: 2;
    justify-self: center;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
  }
  .nav-bar .nav-actions {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .nav-bar .nav-actions .btn-primary {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    font-size: 0.875rem;
  }
}
.nav-actions .btn-outline,
.nav-actions .btn-primary {
  white-space: nowrap;
}

/* Primary buttons — explicit white text (fixes Tailwind on-primary parsing) */
.btn-primary,
a.btn-primary,
button.btn-primary {
  background-color: #2563EB;
  color: #FFFFFF !important;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background-color: #1D4ED8;
  color: #FFFFFF !important;
}

/* Symmetric layout helpers */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.section-header p { margin-left: auto; margin-right: auto; }

.btn-outline,
a.btn-outline {
  background: #FFFFFF;
  color: #2563EB !important;
  border: 2px solid #2563EB;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background: #EFF6FF;
  color: #1D4ED8 !important;
}
.btn-outline .material-symbols-outlined { font-size: 1.125rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.pill-badge--warm {
  background: rgba(180, 83, 9, 0.1);
  color: #B45309;
  border-color: rgba(180, 83, 9, 0.25);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  height: 1px;
  width: 3rem;
  background: linear-gradient(to right, transparent, #D6D3D1);
}
.section-eyebrow::after {
  background: linear-gradient(to left, transparent, #D6D3D1);
}
.section-eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563EB;
}

.design-band {
  background: linear-gradient(135deg, #F0EDE8 0%, #EFF6FF 50%, #F0EDE8 100%);
  border: 1px solid #D6D3D1;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.design-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.design-band > * { position: relative; z-index: 1; }

.blog-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 14rem;
}
@media (min-width: 768px) {
  .blog-hero { min-height: 18rem; }
}
.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
}
.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.85) 0%, rgba(28, 25, 23, 0.45) 60%, rgba(37, 99, 235, 0.2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.blog-hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
  pointer-events: none;
}

.stat-pill-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .stat-pill-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-pill {
  background: #FFFFFF;
  border: 1px solid #D6D3D1;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.04);
}
.stat-pill strong {
  display: block;
  font-size: 1.25rem;
  color: #2563EB;
  margin-bottom: 0.25rem;
}
.stat-pill span {
  font-size: 0.75rem;
  color: #57534E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-accent {
  border-left: 4px solid #2563EB;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}
.card-read-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.page-bg-mesh {
  position: relative;
}
.page-bg-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.04), transparent 50%),
              radial-gradient(ellipse at 80% 100%, rgba(180, 83, 9, 0.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.page-bg-mesh > * { position: relative; z-index: 1; }

.blog-article-wrap {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Shared card / panel styles (all pages) */
.glass-panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 245, 0.9));
  border: 1px solid var(--lx-glass-border);
  box-shadow: inset 0 1px 0 var(--lx-glass-highlight), 0 4px 24px rgba(28, 25, 23, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.glass-panel:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 var(--lx-glass-highlight), 0 12px 40px rgba(37, 99, 235, 0.08);
}

.prose h2 { font-family: Geist, sans-serif; font-size: 32px; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; line-height: 1.3; color: #1C1917; }
.prose h3 { font-family: Geist, sans-serif; font-size: 24px; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #1C1917; }
.prose p { margin-bottom: 1.25rem; line-height: 1.7; color: #57534E; }
.prose a { color: #2563EB; text-decoration: underline; }

.mid-cta-block {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 14px; color: #78716C; margin-bottom: 2rem; }
.breadcrumb a { color: #2563EB; }

img[loading="lazy"] { background: #F0EDE8; }

body.modal-open { overflow: hidden; }

/* FAQ */
.faq-item details { border-bottom: 1px solid #D6D3D1; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-weight: 600;
  transition: color 0.2s ease;
}
.faq-item summary:hover { color: var(--lx-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--lx-primary);
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}
.faq-item details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-item .faq-answer {
  padding-bottom: 1.25rem;
  color: #57534E;
  line-height: 1.7;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Exit modal */
.exit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.exit-modal-backdrop.active { opacity: 1; pointer-events: auto; }
.exit-modal {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.exit-modal-backdrop.active .exit-modal { transform: scale(1) translateY(0); }

/* Blog */
.blog-toc {
  background: #F0EDE8;
  border: 1px solid #D6D3D1;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.blog-toc h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #57534E;
}
.blog-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #57534E;
}
.blog-toc a { color: #2563EB; text-decoration: none; }
.blog-toc a:hover { text-decoration: underline; }

.blog-card-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.blog-featured-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin: 1.5rem 0 2rem;
}

.author-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid #D6D3D1;
  margin-bottom: 1.5rem;
  color: #57534E;
  font-size: 0.875rem;
}

.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #D6D3D1; }

@media (prefers-reduced-motion: reduce) {
  .glass-panel:hover { transform: none; }
}
