/* Homepage styles extracted without reordering the original cascade. */

/* Global Native Smooth Scrolling & Typography */
html { 
  scroll-behavior: smooth !important; 
}
.cf-homepage { 
  font-size: 16px; 
  color: #333; 
}
.cf-homepage main { display: block; }
.cf-homepage main section { scroll-margin-top: 80px; }
.cf-homepage .cf-section { box-sizing: border-box; height: auto; min-height: 0; padding-top: 54px; padding-bottom: 54px; border-bottom: 1px solid #ececec; }
.cf-homepage .cf-section.static { overflow: visible; }
.cf-homepage .cf-copy { box-sizing: border-box; max-width: 860px; margin: 0 auto; padding: 0 20px; text-align: left; }
.cf-homepage .cf-copy p, .cf-homepage .cf-illustrated-copy p { font-size: 1.02rem; line-height: 1.8; font-weight: 300; color: #444; overflow-wrap: break-word; }
.cf-homepage .cf-section h2 { font-size: 2.1rem; line-height: 1.25; font-weight: 400; color: #111; margin: 0 0 24px; }
.cf-homepage .cf-copy h3 { font-size: 1.3rem; line-height: 1.4; font-weight: 500; color: #222; margin: 32px 0 12px; }
.cf-homepage .cf-copy strong { font-weight: 500; color: #111; }
.cf-homepage .cf-copy a, .cf-homepage .cf-illustrated-copy a { color: #0066cc; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cf-homepage a:focus-visible, .cf-homepage .cf-table-wrap:focus-visible { outline: 2px solid #3498d9; outline-offset: 4px; }

/* Fixed Header & Clean Brand Logo */
header.clearfix { 
  background: #ffffff !important; 
  border-bottom: 1px solid #eaeaea; 
  position: sticky; 
  top: 0; 
  z-index: 10000; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
header .container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  width: 100%; 
  max-width: 1120px; 
  padding: 10px 20px; 
  box-sizing: border-box; 
}
header #logo { 
  font-size: 1.35rem !important; 
  font-weight: 800 !important; 
  color: #8B4513 !important; 
  letter-spacing: 0.5px !important; 
  text-decoration: none !important; 
  display: inline-flex !important;
  align-items: center;
}
header #logo span { 
  color: #27ae60; 
}

/* Complete Reset of Header Nav Artifacts */
header nav#navigation { 
  float: none !important; 
  margin: 0 !important; 
}
header nav#navigation ul { 
  display: flex !important; 
  align-items: center !important; 
  gap: 4px !important; 
  margin: 0 !important; 
  padding: 0 !important; 
  list-style: none !important; 
}
header #navigation ul li { 
  float: none !important; 
  margin: 0 !important; 
  padding: 0 !important; 
  background: none !important; 
  border: none !important; 
}
header #navigation ul li a { 
  display: inline-block !important; 
  padding: 7px 12px !important; 
  height: auto !important; 
  line-height: 1.4 !important; 
  background: transparent !important; 
  border: none !important; 
  box-shadow: none !important; 
  color: #4b5563 !important; 
  font-size: 0.9rem !important; 
  font-weight: 500 !important; 
  text-decoration: none !important; 
  border-radius: 6px !important; 
  transition: all 0.2s ease !important; 
  white-space: nowrap !important;
}
header #navigation ul li a:hover,
header #navigation ul li a:focus,
header #navigation ul li.current a { 
  background: #f0fdf4 !important; 
  color: #27ae60 !important; 
}
header #navigation ul li a::before,
header #navigation ul li a::after { 
  display: none !important; 
  content: none !important; 
}

/* Overhauled Modern Split Hero */
.cf-homepage .cf-hero { 
  background: #ffffff !important; 
  background-image: none !important; 
  padding: 40px 20px 48px !important; 
  border-bottom: 1px solid #ececec;
  height: auto !important;
  min-height: 0 !important;
}
.cf-hero-grid { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 40px; 
  max-width: 1100px; 
  margin: 0 auto; 
}
.cf-hero-left { 
  flex: 1 1 52%; 
  text-align: left; 
}
.cf-hero-left h1 { 
  font-size: 2.85rem !important; 
  line-height: 1.15 !important; 
  color: #111827 !important; 
  font-weight: 700 !important; 
  margin: 0 0 16px !important; 
  letter-spacing: -0.5px;
}
.cf-meta-bar { 
  font-size: 0.875rem; 
  color: #6b7280; 
  margin-bottom: 14px; 
  display: inline-block; 
}
.cf-hero-intro { 
  font-size: 1.08rem; 
  line-height: 1.75; 
  color: #4b5563; 
  margin: 0 0 20px; 
}
.cf-hero-badges { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-bottom: 26px; 
}
.cf-badge { 
  background: #f0f9ff; 
  color: #0369a1; 
  border: 1px solid #bae6fd; 
  padding: 6px 14px; 
  border-radius: 20px; 
  font-size: 0.84rem; 
  font-weight: 500; 
}
.cf-hero-cta-group { 
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 16px; 
  margin-bottom: 18px; 
}
.cf-btn-primary { 
  display: inline-block; 
  background: #27ae60; 
  color: #ffffff !important; 
  padding: 13px 26px; 
  font-size: 1.05rem; 
  font-weight: 600; 
  border-radius: 6px; 
  text-decoration: none !important; 
  box-shadow: 0 4px 12px rgba(39,174,96,0.3); 
  transition: background 0.2s ease, transform 0.2s ease; 
}
.cf-btn-primary:hover { 
  background: #219150; 
  transform: translateY(-1px); 
}
.cf-btn-secondary { 
  display: inline-block; 
  background: #f3f4f6; 
  color: #374151 !important; 
  border: 1px solid #d1d5db; 
  padding: 12px 22px; 
  font-size: 1.02rem; 
  font-weight: 500; 
  border-radius: 6px; 
  text-decoration: none !important; 
  transition: all 0.2s ease; 
}
.cf-btn-secondary:hover { 
  background: #e5e7eb; 
}
.cf-hero-note { 
  font-size: 0.85rem; 
  color: #6b7280; 
  line-height: 1.6; 
  margin: 0; 
}

.cf-hero-right { 
  flex: 0 0 44%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.cf-hero-right img.cf-hero-mockup { 
  max-width: 100%; 
  height: auto; 
  max-height: 480px; 
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.14)); 
  display: block; 
}

/* Direct Answer Summary Box */
.cf-summary-box { box-sizing: border-box; background: #f0f7fc; border-left: 4px solid #3498d9; padding: 20px 24px; margin: 16px 0 24px; border-radius: 4px; }
.cf-summary-box h3 { margin: 0 0 10px; font-size: 1.2rem; color: #1a5276; font-weight: 500; }
.cf-summary-box p { margin: 0; font-size: 0.98rem; line-height: 1.75; color: #333; }

/* Interactive Compatibility Finder */
.cf-finder-card { background: #ffffff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 24px; margin: 28px 0; box-shadow: 0 3px 10px rgba(0,0,0,0.04); }
.cf-finder-card h3 { margin: 0 0 14px; font-size: 1.25rem; color: #222; }
.cf-finder-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.cf-finder-field { flex: 1 1 200px; }
.cf-finder-field label { display: block; font-size: 0.875rem; margin-bottom: 6px; font-weight: 500; color: #444; }
.cf-finder-field select { width: 100%; padding: 10px 12px; font-size: 0.95rem; border: 1px solid #ccc; border-radius: 5px; background: #fff; outline: none; }
.cf-finder-output { background: #f9fafb; border: 1px solid #e1e4e8; border-radius: 5px; padding: 16px; min-height: 80px; font-size: 0.96rem; line-height: 1.7; color: #333; }
.cf-finder-cta-wrap { margin-top: 14px; }
.cf-finder-cta-btn { display: inline-block; padding: 10px 22px; font-size: 0.98rem; background: #27ae60; color: #ffffff !important; border-radius: 5px; text-decoration: none !important; font-weight: 500; }

/* Feature boxes */
.cf-homepage .cf-overview > .cf-copy > h2 { text-align: center; }
.cf-homepage .cf-feature-boxes { display: flex; flex-wrap: wrap; gap: 24px; margin: 36px 0 0; }
.cf-homepage .cf-feature-boxes .content-box { box-sizing: border-box; float: none; flex: 1 1 220px; width: auto; margin: 0; text-align: center; background: #fafafa; padding: 24px 18px; border-radius: 8px; border: 1px solid #efefef; }
.cf-homepage .cf-feature-boxes .cf-icon-wrap { width: 52px; height: 52px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.cf-homepage .cf-feature-boxes h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 500; color: #111; margin: 0 0 10px; }
.cf-homepage .cf-feature-boxes p { font-size: 0.96rem; line-height: 1.75; text-align: left; color: #555; margin: 0; }

/* Section 3 & 4 Device Art */
.cf-homepage .cf-illustrated { display: flex; align-items: center; gap: 36px; padding: 0 20px; margin-bottom: 28px; }
.cf-homepage .cf-illustrated-copy { flex: 1 1 0; min-width: 0; }
.cf-homepage .cf-device-art { 
  position: relative; 
  flex: 0 0 45%; 
  min-height: 300px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: visible; 
  padding: 10px; 
}
.cf-homepage .cf-device-art img.cf-modern-mockup { 
  max-width: 100%; 
  height: auto; 
  max-height: 480px; 
  display: block; 
  margin: 0 auto; 
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.12)); 
}

/* Comparison Tables */
.cf-homepage .cf-table-wrap { overflow-x: auto; margin: 24px 0 32px; border: 1px solid #dedede; border-radius: 6px; -webkit-overflow-scrolling: touch; }
.cf-homepage .cf-comparison { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: 0.98rem; line-height: 1.65; }
.cf-homepage .cf-comparison th, .cf-homepage .cf-comparison td { padding: 14px; border-bottom: 1px solid #dedede; vertical-align: top; }
.cf-homepage .cf-comparison th { font-weight: 500; color: #333; }
.cf-homepage .cf-comparison thead { background: #f4f7f9; }
.cf-homepage .cf-comparison tbody tr:last-child > * { border-bottom: 0; }
.cf-homepage .cf-table-caption { padding: 14px; text-align: left; font-size: .9rem; line-height: 1.6; color: #666; background: #fafafa; }
.cf-homepage .cf-status-date { margin: 10px 0 0; font-size: .9rem; color: #666; }
.cf-homepage .cf-source-note { margin-top: 18px; padding: 16px 18px; background: #f7f9fa; border-left: 3px solid #3498d9; font-size: .9375rem; line-height: 1.7; }
.cf-homepage .cf-trust-box { margin-top: 28px; padding: 20px 22px; background: #f7f9fa; border: 1px solid #e3e8eb; border-radius: 6px; }
.cf-homepage .cf-trust-box h3 { margin-top: 0; }

/* Free vs Pro Table */
.cf-vip-col { background: #f0fdf4 !important; }
.cf-vip-head { background: #dcfce7 !important; color: #166534 !important; font-weight: 600 !important; }
.cf-pro-badge { background: #e67e22; color: #fff; font-size: 0.75rem; padding: 2px 6px; border-radius: 3px; vertical-align: middle; margin-left: 4px; }
.cf-pricing-cta { display: inline-block; background: #e67e22; color: #ffffff !important; padding: 14px 32px; font-size: 1.1rem; font-weight: 600; border-radius: 6px; text-decoration: none !important; box-shadow: 0 4px 12px rgba(230,126,34,0.3); transition: all 0.2s ease; }
.cf-pricing-cta:hover { background: #d35400; transform: translateY(-1px); }

/* Gallery Slider & Loupe (Zoom) */
.cf-homepage .cf-about { overflow: hidden; }
.cf-homepage .cf-about .loupe-gallery { position: relative; width: 559px; max-width: calc(100% - 40px); margin: 36px auto 0; }
.cf-homepage .cf-about .loupe-container { display: block; }
.cf-homepage .cf-about .gallery-content { display: block; width: 100%; height: auto; }
.cf-homepage .cf-about .loupe-still { display: none; }
.cf-homepage .cf-image-caption { max-width: 740px; margin: 24px auto 0; padding: 0 20px; text-align: center; font-size: .875rem; line-height: 1.7; }
.cf-homepage .cf-gallery .bx-wrapper { background: none; padding-top: 20px; }
.cf-homepage .cf-gallery .screenshot figure { margin: 0; }
.cf-homepage .cf-gallery .screenshot img { display: block; float: none !important; max-width: 100%; height: auto; margin: 0 auto !important; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cf-homepage .cf-gallery figcaption { padding: 14px 10px; font-size: .875rem; line-height: 1.65; color: #666; background: #fff; text-align: center; }
.cf-homepage .cf-gallery .bx-prev { left: 8px; margin-left: 0; }
.cf-homepage .cf-gallery .bx-next { right: 8px; margin-right: 0; }
.cf-homepage .cf-ad { box-sizing: border-box; max-width: 100%; margin: 32px auto 0; text-align: center; }
.cf-homepage .cf-ad-desktop { width: 728px; }
.cf-homepage .cf-review-note { padding-top: 20px; border-top: 1px solid #ececec; font-size: .875rem; }
.cf-homepage footer .button.small { font-size: .875rem; }

/* Mobile Sticky Bottom Bar */
.cf-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
  padding: 10px 14px;
  box-sizing: border-box;
  z-index: 99999;
  text-align: center;
}
.cf-mobile-sticky-bar a {
  display: block;
  background: #27ae60;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(39,174,96,0.3);
}

@media only screen and (max-width:959px) {
  .cf-homepage main section { scroll-margin-top: 60px; }
  .cf-hero-left h1 { font-size: 2.3rem !important; }
}
@media only screen and (max-width:767px) {
  header nav#navigation { display: none; }
  .cf-hero-grid { flex-direction: column; gap: 24px; text-align: center; }
  .cf-hero-left { text-align: center; width: 100%; }
  .cf-hero-left h1 { font-size: 2.1rem !important; }
  .cf-hero-badges { justify-content: center; }
  .cf-hero-cta-group { justify-content: center; }
  .cf-btn-primary, .cf-btn-secondary { width: 100%; box-sizing: border-box; }
  .cf-hero-right { width: 100%; }
  .cf-hero-right img.cf-hero-mockup { max-height: 320px; margin: 0 auto; }
  
  .cf-homepage .cf-section { padding-top: 38px; padding-bottom: 38px; }
  .cf-homepage .cf-section h2 { font-size: 1.75rem; }
  .cf-homepage .cf-copy, .cf-homepage .cf-illustrated { padding-left: 14px; padding-right: 14px; }
  .cf-homepage .cf-feature-boxes { display: block; margin: 24px 0 0; }
  .cf-homepage .cf-feature-boxes .content-box { width: 100%; margin-top: 20px; }
  
  .cf-homepage .cf-illustrated { flex-direction: column; gap: 20px; }
  .cf-homepage .cf-illustrated-copy { order: 0; width: 100%; }
  .cf-homepage .cf-device-art { order: 1; flex: none; width: 100%; min-height: 0; max-width: 320px; margin: 0 auto; padding: 0; }
  .cf-homepage .cf-device-art img.cf-modern-mockup { max-height: 300px; }
  
  .cf-homepage .cf-about .loupe-gallery { max-width: calc(100% - 20px); }
  .cf-homepage .cf-gallery .screenshot { margin-bottom: 28px; }
  .cf-homepage .cf-ad-desktop { display: none; }
  
  .cf-mobile-sticky-bar { display: block; }
  body.cf-homepage { padding-bottom: 65px; }
}
