/* ===================================================
   Zipflow — Sub-page Styles (pages.css)
   Shared across all pages except index.html
   Requires: bootstrap.min.css, style.css, components.css
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* -----------------------------------------------
   Base
   ----------------------------------------------- */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; }

/* -----------------------------------------------
   Nav overrides for sub-pages
   ----------------------------------------------- */
.nav-demo-btn {
  background: #00b8d9 !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 6px 18px !important;
  font-weight: 600;
  margin-left: 8px;
  border: none;
}
.nav-demo-btn:hover { background: #0096b4 !important; color: #fff !important; }
.dropdown-menu {
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0;
}
.dropdown-item { font-size: 0.9rem; padding: 8px 18px; color: #444; }
.dropdown-item:hover { background: #f0fbfd; color: #00b8d9; }

/* -----------------------------------------------
   Breadcrumb Bar
   ----------------------------------------------- */
.breadcrumb-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
}
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 0.85rem; }
.breadcrumb-item a { color: #00b8d9; text-decoration: none; }
.breadcrumb-item.active { color: #666; }
.breadcrumb-item + .breadcrumb-item::before { content: "\203A"; color: #aaa; }

/* -----------------------------------------------
   Page Hero (Sub-pages)
   ----------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #007a94 100%);
  padding: 80px 0 70px;
  color: #fff;
}
.page-hero .badge-tag {
  display: inline-block;
  background: rgba(0,184,217,0.2);
  border: 1px solid rgba(0,184,217,0.5);
  color: #4dd8f0;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}
.page-hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 28px;
  line-height: 1.7;
}
@media (max-width: 768px) { .page-hero h1 { font-size: 1.8rem; } }

/* -----------------------------------------------
   Section Layout
   ----------------------------------------------- */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.bg-light-gray { background: #f8f9fa; }
.bg-dark-navy { background: #0d1b2a; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; font-weight: 800; color: #1a2332; margin-bottom: 12px; }
.section-title p { font-size: 1rem; color: #666; max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* -----------------------------------------------
   Feature Cards
   ----------------------------------------------- */
.feature-box {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}
.feature-box:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.feature-box .feat-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #00b8d9, #0096b4);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.4rem; color: #fff;
}
.feature-box h4 { font-size: 1.05rem; font-weight: 700; color: #1a2332; margin-bottom: 8px; }
.feature-box p { font-size: 0.9rem; color: #666; margin: 0; line-height: 1.65; }

/* -----------------------------------------------
   How It Works — Steps
   ----------------------------------------------- */
.steps-wrap { counter-reset: step-counter; }
.step-item { position: relative; padding: 28px 24px 28px 80px; margin-bottom: 20px; background: #fff; border-radius: 12px; border: 1px solid #e8ecf0; }
.step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: linear-gradient(135deg, #00b8d9, #0096b4);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
}
.step-item h4 { font-size: 1rem; font-weight: 700; color: #1a2332; margin-bottom: 6px; }
.step-item p { font-size: 0.9rem; color: #666; margin: 0; }

/* -----------------------------------------------
   Stats Strip
   ----------------------------------------------- */
.stats-strip { background: #00b8d9; padding: 50px 0; text-align: center; }
.stat-item h3 { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.stat-item p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0; }

/* -----------------------------------------------
   Comparison Table
   ----------------------------------------------- */
.compare-table-wrap { overflow-x: auto; margin-bottom: 40px; }
.comparison-table {
  width: 100%; border-collapse: collapse;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.comparison-table thead th {
  background: #1a2332; color: #fff;
  padding: 16px 20px; font-size: 0.92rem; font-weight: 700; text-align: left;
}
.comparison-table thead th.col-zipflow { background: #00b8d9; }
.comparison-table thead th:first-child { width: 38%; }
.comparison-table tbody tr:nth-child(even) { background: #f8f9fa; }
.comparison-table tbody td {
  padding: 13px 20px; font-size: 0.88rem; color: #444;
  border-bottom: 1px solid #eee; vertical-align: middle;
}
.comparison-table tbody td:first-child { font-weight: 600; color: #1a2332; }
.check-yes { color: #22c55e; font-weight: 700; font-size: 1.1rem; }
.check-no { color: #ef4444; font-size: 1.1rem; }
.check-partial { color: #f59e0b; font-size: 1.1rem; }

/* -----------------------------------------------
   Pricing Cards
   ----------------------------------------------- */
.pricing-card {
  background: #fff; border: 2px solid #e8ecf0;
  border-radius: 16px; padding: 36px 28px;
  margin-bottom: 24px; text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.pricing-card.popular { border-color: #00b8d9; box-shadow: 0 8px 30px rgba(0,184,217,0.15); }
/* Action footer (show-all + CTA) pinned to the bottom so cards line up */
.pricing-card .card-actions { margin-top: auto; }
.pricing-card .btn-block { margin-top: 0; }
.popular-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #fbbf24; color: #1a2332; padding: 3px 11px;
  border-radius: 20px; font-size: 0.52rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(251,191,36,0.4);
}
.plan-name { font-size: 0.85rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.plan-price { line-height: 1; margin-bottom: 6px; }
.plan-price .price-val { font-size: 3rem; font-weight: 800; color: #1a2332; letter-spacing: -1px; }
.plan-price .price-val-sm { font-size: 2rem; letter-spacing: 0; }
.plan-price span { font-size: 1rem; font-weight: 400; color: #888; }

/* Collapsible feature list + show-all toggle */
.pricing-card .extra-feature { display: none; }
.pricing-card.expanded .extra-feature { display: flex; }
.show-all-features {
  background: none; border: none; cursor: pointer;
  color: #00b8d9; font-size: 0.82rem; font-weight: 600;
  padding: 0; margin: 0 0 14px; display: block; width: 100%; text-align: center;
}
.show-all-features:hover { color: #0096b4; text-decoration: underline; }

/* Billing toggle — colours live in CSS so the active pill is always readable,
   even before the inline script runs (avoids a white-on-white / blue-on-blue flash). */
.billing-toggle-wrap .btn { color: #00b8d9; background-color: transparent; transition: background-color 0.2s, color 0.2s; }
.billing-toggle-wrap .btn.active { color: #fff !important; background-color: #00b8d9 !important; }
.plan-desc { font-size: 0.85rem; color: #888; margin-bottom: 24px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.plan-features li {
  padding: 8px 0; font-size: 0.88rem; color: #444;
  border-top: 1px solid #f0f0f0;
  display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before { content: "\2713"; color: #22c55e; font-weight: 700; flex-shrink: 0; }

/* -----------------------------------------------
   CTA Banner
   ----------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
  padding: 80px 0; text-align: center; color: #fff;
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-banner p { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 28px; }

/* -----------------------------------------------
   Blog Listing Cards
   ----------------------------------------------- */
.blog-card {
  background: #fff; border: 1px solid #e8ecf0;
  border-radius: 12px; overflow: hidden;
  margin-bottom: 28px; transition: box-shadow 0.25s, transform 0.25s;
  display: block; text-decoration: none; color: inherit;
}
.blog-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-3px); text-decoration: none; }
.blog-card-body { padding: 24px; }
.blog-tag {
  display: inline-block; background: #e6f7fb; color: #00b8d9;
  padding: 3px 12px; border-radius: 20px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.blog-card h4 { font-size: 1.1rem; font-weight: 700; color: #1a2332; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.88rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.blog-meta { font-size: 0.78rem; color: #aaa; }
.blog-meta span { margin-right: 12px; }

/* -----------------------------------------------
   Blog Article / Cornerstone Post
   ----------------------------------------------- */
.article-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 55%, #007a94 100%);
  padding: 80px 0 60px; color: #fff;
}
.article-hero h1 { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 16px; }
.article-hero .article-meta { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.article-content { font-size: 1.05rem; line-height: 1.85; color: #333; }
.article-content h2 { font-size: 1.6rem; font-weight: 700; color: #1a2332; margin: 48px 0 16px; }
.article-content h3 { font-size: 1.25rem; font-weight: 700; color: #1a2332; margin: 32px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid #00b8d9; padding: 16px 20px;
  background: #f0fbfd; margin: 28px 0; font-style: italic; color: #444;
  border-radius: 0 8px 8px 0;
}
.article-toc {
  background: #f8f9fa; border: 1px solid #e8ecf0;
  border-radius: 12px; padding: 24px; margin-bottom: 36px;
}
.article-toc h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 14px; font-weight: 700; }
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin-bottom: 8px; }
.article-toc li a { font-size: 0.88rem; color: #00b8d9; text-decoration: none; }
.article-toc li a:hover { text-decoration: underline; }

/* -----------------------------------------------
   Integration Cards
   ----------------------------------------------- */
.integration-card {
  background: #fff; border: 1px solid #e8ecf0;
  border-radius: 12px; padding: 28px 22px; margin-bottom: 24px;
  text-align: center; transition: box-shadow 0.25s, transform 0.25s;
  display: block; text-decoration: none; color: inherit;
}
.integration-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.09); transform: translateY(-3px); text-decoration: none; }
.integration-logo { font-size: 2.2rem; margin-bottom: 12px; }
.integration-card h4 { font-size: 1rem; font-weight: 700; color: #1a2332; margin-bottom: 8px; }
.integration-card p { font-size: 0.85rem; color: #666; margin-bottom: 14px; line-height: 1.6; }
.integration-card .int-link { font-size: 0.85rem; color: #00b8d9; font-weight: 600; }

/* -----------------------------------------------
   Use Case Block (Integration pages)
   ----------------------------------------------- */
.use-case-item {
  border-left: 3px solid #00b8d9; padding: 16px 20px;
  margin-bottom: 18px; background: #f8f9fa; border-radius: 0 8px 8px 0;
}
.use-case-item h5 { font-size: 0.95rem; font-weight: 700; color: #1a2332; margin-bottom: 6px; }
.use-case-item p { font-size: 0.88rem; color: #555; margin: 0; }

/* -----------------------------------------------
   Vertical / Industry Cards (Solutions hub)
   ----------------------------------------------- */
.vertical-card {
  background: #fff; border: 1px solid #e8ecf0; border-radius: 12px;
  padding: 28px; margin-bottom: 24px; display: block;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}
.vertical-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-3px); text-decoration: none; }
.v-icon { font-size: 2rem; margin-bottom: 14px; color: #00b8d9; display: block; }
.vertical-card h4 { font-size: 1rem; font-weight: 700; color: #1a2332; margin-bottom: 8px; }
.vertical-card p { font-size: 0.88rem; color: #666; margin: 0; line-height: 1.6; }

/* -----------------------------------------------
   Inline CTA Box
   ----------------------------------------------- */
.inline-cta {
  background: linear-gradient(135deg, #e6f7fb, #cdf2fa);
  border: 1px solid #b3e8f5; border-radius: 12px;
  padding: 32px; text-align: center; margin: 40px 0;
}
.inline-cta h4 { color: #0d1b2a; font-weight: 700; margin-bottom: 8px; }
.inline-cta p { color: #555; margin-bottom: 20px; }

/* -----------------------------------------------
   FAQ (Sub-pages)
   ----------------------------------------------- */
.faq-section .card { border: 1px solid #e8ecf0; border-radius: 8px; margin-bottom: 8px; }
.faq-section .card-header { background: #fff; border-bottom: none; }
.faq-section .card-title a { color: #1a2332; font-weight: 600; font-size: 0.95rem; }
.faq-section .card-title a:hover { color: #00b8d9; }

/* -----------------------------------------------
   Responsive
   ----------------------------------------------- */
@media (max-width: 991px) {
  .page-hero { padding: 60px 0 50px; }
  .page-hero h1 { font-size: 2rem; }
  .section-title h2 { font-size: 1.7rem; }
  .cta-banner h2 { font-size: 1.7rem; }
}
@media (max-width: 767px) {
  .page-hero h1 { font-size: 1.7rem; }
  .plan-price .price-val { font-size: 2.2rem; }
  .comparison-table { font-size: 0.78rem; }
  .comparison-table thead th, .comparison-table tbody td { padding: 10px 12px; }
  .article-content h2 { font-size: 1.4rem; }
  .step-item { padding: 24px 16px 24px 72px; }
}
