/* InvoiceFast Landing Pages — Shared Styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────────────── */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header .logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #4A78FF;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header nav a {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-header nav a:hover {
  color: #4A78FF;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #4a5568;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  background: #4A78FF;
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(74, 120, 255, 0.3);
}

.btn-primary:hover {
  background: #3b63d9;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  color: #4A78FF;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: color 0.15s;
}

.btn-secondary:hover {
  color: #3b63d9;
  text-decoration: underline;
}

/* ── Content Sections ────────────────────────────────────── */

.content-section {
  padding: 2rem 0;
}

.content-section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.content-section p {
  margin-bottom: 1rem;
  color: #4a5568;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.content-section ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: #4a5568;
}

.content-section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2ECC71;
  font-weight: 700;
}

/* ── Checklist (green accent) ────────────────────────────── */

.checklist {
  background: #f7faf8;
  border: 1px solid #d4edda;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.checklist h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

/* ── FAQ ─────────────────────────────────────────────────── */

.faq-section {
  padding: 2rem 0 2.5rem;
}

.faq-section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #4a5568;
  margin: 0;
}

/* ── CTA Banner ──────────────────────────────────────────── */

.cta-banner {
  text-align: center;
  padding: 3rem 1.25rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f7ff 100%);
  border-radius: 12px;
}

.cta-banner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: #4a5568;
  margin-bottom: 1.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  color: #718096;
  font-size: 0.9rem;
}

.site-footer a {
  color: #4A78FF;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-tagline {
  margin-top: 0.5rem;
  font-style: italic;
  color: #a0aec0;
}

/* ── Related Articles ────────────────────────────────────── */

.related-articles {
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
}

.related-articles h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #718096;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.article-card {
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #2d3748;
  transition: border-color 0.15s, background 0.15s;
  display: block;
}

.article-card:hover {
  border-color: #4A78FF;
  background: #eef2ff;
}

.article-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4A78FF;
  margin-bottom: 0.35rem;
}

.article-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Internal Links ──────────────────────────────────────── */

.internal-links {
  padding: 1.5rem 0;
}

.internal-links h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #718096;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.internal-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
}

.internal-links ul li::before {
  display: none;
}

.internal-links ul li {
  padding-left: 0;
}

.internal-links a {
  color: #4A78FF;
  text-decoration: none;
  font-size: 0.9rem;
}

.internal-links a:hover {
  text-decoration: underline;
}

/* ── Template Comparison (Before / After) ────────────────── */

.template-compare {
  padding: 2.5rem 0 1.5rem;
}

.template-compare h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.template-compare .compare-subtitle {
  color: #4a5568;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.compare-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fff;
}

.compare-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.compare-card.basic .compare-card-label {
  background: #f3f4f6;
  color: #6b7280;
}

.compare-card.pro .compare-card-label {
  background: #f5f3ff;
  color: #7c3aed;
  border-bottom-color: #ddd6fe;
}

.compare-card.basic {
  border-color: #e5e7eb;
}

.compare-card.pro {
  border-color: #ddd6fe;
}

.compare-invoice {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.compare-invoice-header {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.compare-invoice-header .inv-title {
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
}

.compare-invoice-header .inv-num {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.compare-invoice-header .inv-biz {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.compare-invoice-body {
  padding: 1rem 1.25rem;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.75rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.compare-row:last-child { border-bottom: none; }

.compare-total {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.compare-parties {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.compare-party-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.compare-party-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: #111827;
}

/* ── Price Anchor ─────────────────────────────────────────── */

.price-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: #15803d;
  font-weight: 500;
}

.price-anchor .anchor-icon {
  font-size: 1rem;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .content-section h2,
  .faq-section h2,
  .cta-banner h2 {
    font-size: 1.3rem;
  }

  .btn-primary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .checklist {
    padding: 1.25rem 1.25rem;
  }

  .site-header .container {
    justify-content: center;
    text-align: center;
  }

  .internal-links ul {
    flex-direction: column;
    gap: 0.4rem;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .template-compare h2 {
    font-size: 1.3rem;
  }

  /* OR divider styling */

  .or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #888;
    font-weight: 600;
  }

  .or-divider::before,
  .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
  }

  .or-divider::before {
    margin-right: 10px;
  }

  .or-divider::after {
    margin-left: 10px;
  }
}
