/*
 * AInovaq Child — BOFU-specific CSS
 * Scoped under .bofu-article so nothing leaks to other pages.
 */

/* ══ Hero ══ */
.bofu-hero {
  padding: 72px 0 56px;
  animation: fadeInUp 0.6s ease both;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.bofu-hero__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.bofu-hero__content { max-width: 520px; }

.bofu-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 6px; border-radius: 999px;
  background: #F3F5F9; border: 1px solid #EEF0F6;
  font-size: 12px; font-weight: 500; color: #7A8DB5;
  margin-bottom: 24px;
}
.bofu-hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #70C3C5; animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.bofu-hero__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.03em;
  color: #202323; margin-bottom: 20px;
}
.bofu-hero__desc {
  font-size: 1.1rem; line-height: 1.65; color: #7A8DB5; margin-bottom: 32px;
}
.bofu-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.bofu-btn-primary {
  padding: 14px 32px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #243C8F 0%, #70C3C5 100%); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.bofu-btn-primary svg { width: 15px; height: 15px; }
.bofu-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.bofu-btn-secondary {
  padding: 13px 32px; border-radius: 999px;
  border: 1.5px solid #E2E6EF; background: #fff;
  color: #202323; font-family: 'Inter', sans-serif;
  font-size: 0.92rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.bofu-btn-secondary:hover { border-color: #243C8F; color: #243C8F; text-decoration: none; }

.bofu-hero__preview {
  border-radius: 14px; border: 1px solid #E2E6EF;
  overflow: hidden; box-shadow: 0 16px 48px rgba(15,29,82,0.10);
  background: #fff;
}
.bofu-hero__preview-bar {
  height: 36px; background: #F3F5F9;
  border-bottom: 1px solid #E2E6EF;
  display: flex; align-items: center; padding: 0 14px; gap: 7px;
}
.bofu-hero__preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E6EF; }
.bofu-hero__preview-body {
  min-height: 320px; padding: 32px;
  display: flex; align-items: center; justify-content: center;
}
.bofu-hero__preview-body img { width: 100%; height: auto; border-radius: 8px; }

/* ══ Body wrapper ══ */
.bofu-body {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.bofu-content { width: 100%; }

/* ══ Content typography & spacing ══ */
.bofu-content h2.wp-block-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #202323;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 64px;
  margin-bottom: 16px;
}
.bofu-content h2.wp-block-heading:first-child {
  margin-top: 48px;
}
.bofu-content h3.wp-block-heading {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #202323;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 12px;
}
.bofu-content p.wp-block-paragraph,
.bofu-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: #4A5568;
  margin-bottom: 20px;
  max-width: 780px;
}
.bofu-content ul.wp-block-list {
  padding-left: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bofu-content ul.wp-block-list li {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #4A5568;
}
.bofu-content .feature-grid,
.bofu-content .comparison-grid {
  margin-top: 28px;
  margin-bottom: 16px;
}
.bofu-content .callout,
.bofu-content .table-wrap {
  margin-top: 28px;
  margin-bottom: 28px;
}
.bofu-content .stats {
  margin-top: 36px;
  margin-bottom: 36px;
}

/* ══ Section utilities (scoped) ══ */
.bofu-article .section-label,
.bofu-section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: #9BA8C7; margin-bottom: 14px;
}
.bofu-article .section-title,
.bofu-section-title {
  font-family: 'Inter', sans-serif; font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  color: #202323; margin-bottom: 14px;
}
.bofu-article .section-desc {
  font-size: 1.05rem; color: #7A8DB5; max-width: 560px; line-height: 1.6;
}
.bofu-article .section-desc.center { margin: 0 auto; }
.bofu-article .section-pad { padding: 80px 0; }
.bofu-article .section-border { border-top: 1px solid #EEF0F6; }
.bofu-article .text-center { text-align: center; }
.bofu-article .grad-text {
  background: linear-gradient(135deg, #243C8F 0%, #70C3C5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ══ Feature Grid ══ */
.bofu-article .feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
}
.bofu-article .feature-card {
  padding: 28px; border-radius: 14px;
  border: 1px solid #EEF0F6; background: #fff;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.bofu-article .feature-card:hover {
  box-shadow: 0 4px 16px rgba(15,29,82,0.06); border-color: #E2E6EF; transform: translateY(-2px);
}
.bofu-article .feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(36,60,143,0.06) 0%, rgba(112,195,197,0.06) 100%);
  border: 1px solid #EEF0F6;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.bofu-article .feature-icon svg { width: 22px; height: 22px; color: #243C8F; }
.bofu-article .feature-card h3 { font-size: 1rem; font-weight: 600; color: #202323; margin-bottom: 8px; }
.bofu-article .feature-card p { font-size: 0.9rem; color: #7A8DB5; line-height: 1.55; margin: 0; }

/* ══ Comparison Grid ══ */
.bofu-article .comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px;
}
.bofu-article .comp-card {
  padding: 32px; border-radius: 14px; border: 1px solid #E2E6EF;
}
.bofu-article .comp-card--old { background: #F3F5F9; }
.bofu-article .comp-card--new {
  background: linear-gradient(135deg, rgba(36,60,143,0.06) 0%, rgba(112,195,197,0.06) 100%);
  border-color: rgba(36,60,143,0.15); position: relative;
}
.bofu-article .comp-card--new::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(135deg, #243C8F 0%, #70C3C5 100%); border-radius: 14px 14px 0 0;
}
.bofu-article .comp-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.bofu-article .comp-card--old .comp-label { color: #9BA8C7; }
.bofu-article .comp-card--new .comp-label {
  background: linear-gradient(135deg, #243C8F 0%, #70C3C5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.bofu-article .comp-card h3 { font-size: 1.1rem; font-weight: 600; color: #202323; margin-bottom: 14px; }
.bofu-article .comp-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bofu-article .comp-list li {
  font-size: 0.9rem; line-height: 1.5; color: #4A5568;
  display: flex; align-items: flex-start; gap: 10px;
}
.bofu-article .comp-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.bofu-article .comp-card--old .comp-list li svg { color: #9BA8C7; }
.bofu-article .comp-card--new .comp-list li svg { color: #70C3C5; }

/* ══ FAQ ══ */
.bofu-faq-section {
  border-top: 1px solid #EEF0F6; padding: 80px 0;
}
.bofu-faq-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.bofu-faq-inner .bofu-section-label { margin-bottom: 14px; }
.bofu-faq-inner .bofu-section-title { margin-bottom: 40px; text-align: center; }
.bofu-faq-grid { max-width: 720px; margin: 0 auto; }
.bofu-faq-item { border-bottom: 1px solid #EEF0F6; padding: 20px 0; }
.bofu-faq-question {
  font-size: 1rem; font-weight: 600; color: #202323;
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  background: none; border: none; width: 100%; text-align: left; padding: 0;
  font-family: 'Inter', sans-serif; line-height: 1.4;
}
.bofu-faq-question svg { width: 18px; height: 18px; flex-shrink: 0; color: #9BA8C7; transition: transform 0.3s; }
.bofu-faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.bofu-faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.35s; }
.bofu-faq-answer__inner { padding-top: 12px; font-size: 0.95rem; line-height: 1.7; color: #4A5568; }
.bofu-faq-answer.open { max-height: 500px; }

/* ══ Callout boxes ══ */
.bofu-article .callout {
  padding: 20px 24px; border-radius: 12px; margin: 28px 0;
  background: #F0F4FF; border: 1px solid #C7D2F0;
  font-size: 0.95rem; line-height: 1.65; color: #4A5568;
}
.bofu-article .callout--gold {
  background: #FFFBEB; border-color: #F59E0B;
}
.bofu-article .callout--green {
  background: #F0FDF4; border-color: #22C55E;
}

/* ══ Feature card label ══ */
.bofu-article .feature-card__label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #9BA8C7; margin-bottom: 10px;
}

/* ══ Stats block ══ */
.bofu-article .stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin: 32px 0;
}
@media (max-width: 768px) {
  .bofu-article .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bofu-article .stats { grid-template-columns: 1fr; }
}
.bofu-article .stat {
  padding: 24px 16px; border-radius: 12px;
  background: #fff; border: 1px solid #EEF0F6; text-align: center;
}
.bofu-article .stat__value {
  display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #243C8F 0%, #70C3C5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.2; margin-bottom: 6px;
}
.bofu-article .stat__label {
  font-size: 0.82rem; color: #9BA8C7; line-height: 1.4;
}

/* ══ Table wrap ══ */
.bofu-article .table-wrap {
  overflow-x: auto; margin: 28px 0;
}
.bofu-article .table-wrap table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.bofu-article .table-wrap th {
  background: #F3F5F9; padding: 12px 16px; text-align: left;
  font-size: 0.8rem; font-weight: 600; color: #7A8DB5;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid #EEF0F6;
}
.bofu-article .table-wrap td {
  padding: 12px 16px; border-bottom: 1px solid #EEF0F6;
  color: #4A5568; vertical-align: top;
}
.bofu-article .table-wrap tr:last-child td { border-bottom: none; }
.bofu-article .table-wrap tr:hover td { background: #FAFBFD; }

/* ══ Key Takeaways ══ */
.bofu-key-takeaways {
  background: #F0F4FF; border: 1px solid #C7D2F0;
  border-radius: 12px; padding: 28px 32px; margin: 40px 0;
}
.bofu-kt-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #243C8F; margin-bottom: 16px;
}
.bofu-kt-list {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px;
}
.bofu-kt-list li {
  font-size: 0.95rem; line-height: 1.6; color: #4A5568;
  padding-left: 20px; position: relative;
}
.bofu-kt-list li::before {
  content: '→'; position: absolute; left: 0;
  color: #243C8F; font-weight: 700;
}

/* ══ Steps (numbered) ══ */
.bofu-steps {
  display: flex; flex-direction: column; gap: 0; margin: 28px 0;
}
.bofu-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid #EEF0F6;
}
.bofu-step:last-child { border-bottom: none; }
.bofu-step__num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #243C8F 0%, #70C3C5 100%);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.bofu-step__content h4 {
  font-size: 1rem; font-weight: 700; color: #202323;
  margin-bottom: 6px; line-height: 1.3;
}
.bofu-step__content p {
  font-size: 0.92rem; color: #4A5568; line-height: 1.65; margin: 0;
}

/* ══ Checklist ══ */
.bofu-checklist {
  display: flex; flex-direction: column; gap: 12px; margin: 20px 0;
}
.bofu-checklist__item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-radius: 10px;
  background: #FAFBFD; border: 1px solid #EEF0F6;
  font-size: 0.93rem; line-height: 1.6; color: #4A5568;
}
.bofu-checklist__item svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: #70C3C5; margin-top: 2px;
}

/* ══ Inline content alignment fixes ══ */

/* FAQ grid used inline in article body — left-align, full width */
.bofu-content .bofu-faq-grid {
  max-width: 100%;
  margin: 0;
}

/* Ordered list — match ul.wp-block-list styling */
.bofu-content ol.wp-block-list {
  padding-left: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bofu-content ol.wp-block-list li {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #4A5568;
}

/* Step paragraphs — fill the full step column, not capped at 780px */
.bofu-content .bofu-step__content p {
  max-width: none;
}

/* Callout paragraphs — fill the full callout width */
.bofu-content .callout p {
  max-width: none;
  margin-bottom: 8px;
}
.bofu-content .callout p:last-child {
  margin-bottom: 0;
}

/* Comparison card paragraphs — fill card width */
.bofu-content .comp-card > p {
  max-width: none;
  margin-bottom: 12px;
}

/* Feature card paragraphs — fill card width */
.bofu-content .feature-card p {
  max-width: none;
}

/* ══ Responsive ══ */
@media (max-width: 1024px) {
  .bofu-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .bofu-hero__content { max-width: 100%; }
  .bofu-article .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* ── Hero ── */
  .bofu-hero { padding: 48px 0 40px; }
  .bofu-hero__inner { padding: 0 20px; }
  .bofu-hero__title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .bofu-hero__desc { font-size: 1rem; margin-bottom: 24px; }
  .bofu-hero__actions { flex-direction: column; gap: 10px; }
  .bofu-hero__preview-body { min-height: 200px; padding: 20px; }
  .bofu-btn-primary,
  .bofu-btn-secondary { text-align: center; justify-content: center; width: 100%; }

  /* ── Grids ── */
  .bofu-article .feature-grid,
  .bofu-article .comparison-grid { grid-template-columns: 1fr; gap: 14px; }

  /* ── Body & headings ── */
  .bofu-body { padding: 0 20px; }
  .bofu-content h2.wp-block-heading { margin-top: 40px; margin-bottom: 12px; }
  .bofu-content h3.wp-block-heading { margin-top: 28px; margin-bottom: 10px; }
  .bofu-content p.wp-block-paragraph,
  .bofu-content p { max-width: 100%; }

  /* ── Key takeaways ── */
  .bofu-key-takeaways { padding: 20px; margin: 24px 0; }
  .bofu-kt-list li { font-size: 0.9rem; }

  /* ── Tables ── */
  .bofu-article .table-wrap { margin: 20px 0; }
  .bofu-article .table-wrap table { font-size: 0.78rem; min-width: 480px; }
  .bofu-article .table-wrap th { padding: 10px 12px; font-size: 0.72rem; }
  .bofu-article .table-wrap td { padding: 10px 12px; }

  /* ── Callouts ── */
  .bofu-article .callout { padding: 16px 18px; }

  /* ── Steps ── */
  .bofu-step { gap: 14px; padding: 20px 0; }
  .bofu-step__num { width: 30px; height: 30px; font-size: 0.78rem; flex-shrink: 0; }
  .bofu-step__content h4 { font-size: 0.95rem; }

  /* ── Cards ── */
  .bofu-article .feature-card { padding: 20px; }
  .bofu-article .comp-card { padding: 24px 20px; }
  .bofu-article .comp-list li { font-size: 0.85rem; }

  /* ── Checklist ── */
  .bofu-checklist__item { padding: 12px 16px; font-size: 0.88rem; }

  /* ── FAQ ── */
  .bofu-faq-inner { padding: 0 20px; }
  .bofu-faq-section { padding: 48px 0; }
  .bofu-faq-answer.open { max-height: 800px; }
  .bofu-faq-question { font-size: 0.95rem; }

  /* ── Lists ── */
  .bofu-content ol.wp-block-list { padding-left: 18px; }

  /* ── CTA band ── */
  .bofu-article .article-cta-band__heading { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  /* Stack steps vertically on very small screens */
  .bofu-step { flex-direction: column; gap: 10px; }

  /* Tables tighter */
  .bofu-article .table-wrap table { font-size: 0.72rem; min-width: 400px; }
  .bofu-article .table-wrap th,
  .bofu-article .table-wrap td { padding: 8px 10px; }

  /* Key takeaways */
  .bofu-key-takeaways { padding: 16px; }
  .bofu-kt-list li { font-size: 0.85rem; }

  /* Comp list items */
  .bofu-article .comp-list li { gap: 8px; font-size: 0.82rem; }

  /* Checklist */
  .bofu-checklist__item { padding: 12px 14px; gap: 10px; }
}
