/* ==========================================================================
   OkCredit modern visual layer (Jul 2026)
   Inspiration: clevertype.co — soft gradient canvas, pill badges, gradient
   headlines, floating hero, count-up stat cards, feature cards, scroll
   reveals. Adapted to OkCredit brand (navy #14374d / green #4caf50).
   Additive: overrides sit on top of styles.css; remove this file + modern.js
   to fully revert.
   ========================================================================== */

:root {
  --okc-navy: #14374d;
  --okc-blue: #1273a6;
  --okc-green: #2e9e44;
  --okc-green-bright: #4caf50;
  --okc-amber: #f5a623;
  --okc-ink: #22313f;
  --okc-muted: #5c6b78;
  --okc-card-shadow: 0 6px 24px rgba(20, 55, 77, 0.08);
  --okc-card-shadow-hover: 0 16px 40px rgba(20, 55, 77, 0.16);
  --okc-radius: 18px;
}

/* ---- Soft gradient canvas ------------------------------------------------ */
body {
  background:
    radial-gradient(1000px 500px at 85% -5%, rgba(76, 175, 80, 0.10), transparent 60%),
    radial-gradient(900px 480px at -10% 12%, rgba(18, 115, 166, 0.10), transparent 60%),
    radial-gradient(800px 500px at 50% 45%, rgba(20, 55, 77, 0.05), transparent 65%),
    #fbfdfe;
}

/* ---- Nav: frosted, elevates on scroll ------------------------------------ */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow 0.3s ease;
}
.navbar-custom.okc-nav-elevated {
  box-shadow: 0 6px 24px rgba(20, 55, 77, 0.12) !important;
}

/* ---- Pill badge ----------------------------------------------------------- */
.okc-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--okc-navy);
  background: linear-gradient(90deg, rgba(18, 115, 166, 0.12), rgba(76, 175, 80, 0.14));
  border: 1px solid rgba(18, 115, 166, 0.18);
  margin-bottom: 14px;
}

/* ---- Gradient headline word ---------------------------------------------- */
.okc-gradient-text {
  background: linear-gradient(92deg, var(--okc-blue) 0%, var(--okc-green) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--okc-blue); /* fallback */
}

/* ---- Hero ------------------------------------------------------------------ */
.hero-section {
  background-image: none; /* replace old svg bg with gradient canvas */
  position: relative;
  overflow: hidden;
}
.okc-hero-glow {
  position: absolute;
  right: -8%;
  top: 6%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.20) 0%, rgba(18, 115, 166, 0.10) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-img {
  animation: okc-float 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(20, 55, 77, 0.18));
}
@keyframes okc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* CTA hover polish (existing store badges) */
.play-store-badge { transition: transform 0.25s ease, filter 0.25s ease; }
a:hover .play-store-badge { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 8px 18px rgba(20, 55, 77, 0.25)); }

/* ---- Stat cards (replaces image-based showoff) ---------------------------- */
.okc-stats { position: relative; }
.okc-stat-card {
  background: #ffffff;
  border-radius: var(--okc-radius);
  box-shadow: var(--okc-card-shadow);
  border: 1px solid rgba(20, 55, 77, 0.06);
  padding: 28px 18px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.okc-stat-card:hover { transform: translateY(-6px); box-shadow: var(--okc-card-shadow-hover); }
.okc-stat-emoji { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.okc-stat-number {
  font-family: 'futura-bold', 'Arial', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--okc-navy);
}
.okc-stat-number .okc-accent-green { color: var(--okc-green-bright); }
.okc-stat-label { color: var(--okc-muted); font-size: 0.95rem; margin-top: 4px; }

/* ---- Feature cards --------------------------------------------------------- */
.okc-feature-card {
  background: #ffffff;
  border-radius: var(--okc-radius);
  box-shadow: var(--okc-card-shadow);
  border: 1px solid rgba(20, 55, 77, 0.06);
  padding: 26px 24px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.okc-feature-card:hover { transform: translateY(-6px); box-shadow: var(--okc-card-shadow-hover); }
.okc-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(18, 115, 166, 0.12), rgba(76, 175, 80, 0.16));
}

/* ---- Section shells (big soft cards, clevertype-style) --------------------- */
.okc-section-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 55, 77, 0.06);
  border-radius: 26px;
  box-shadow: var(--okc-card-shadow);
  padding: 40px 28px;
}
@media (min-width: 768px) { .okc-section-card { padding: 56px 48px; } }

/* ---- Check bullets ---------------------------------------------------------- */
.okc-checklist { list-style: none; padding-left: 0; }
.okc-checklist li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
  color: var(--okc-ink);
  line-height: 1.65;
}
.okc-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--okc-green-bright);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- FAQ accordion cards ----------------------------------------------------- */
.okc-faq-item {
  background: #ffffff;
  border: 1px solid rgba(20, 55, 77, 0.08);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 55, 77, 0.05);
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.okc-faq-item:hover { box-shadow: var(--okc-card-shadow); transform: translateY(-2px); }
.okc-faq-item h4 { margin-bottom: 8px; }

/* ---- Testimonials polish ------------------------------------------------------ */
.testimonial-card {
  border-radius: var(--okc-radius) !important;
  box-shadow: var(--okc-card-shadow) !important;
  border: 1px solid rgba(20, 55, 77, 0.06) !important;
}
.user-img { box-shadow: 0 8px 20px rgba(20, 55, 77, 0.18); border: 4px solid #fff; }

/* ---- Scroll reveal -------------------------------------------------------------- */
.okc-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}
.okc-reveal.okc-visible { opacity: 1; transform: translateY(0); }
.okc-reveal-delay-1 { transition-delay: 0.06s; }
.okc-reveal-delay-2 { transition-delay: 0.12s; }
.okc-reveal-delay-3 { transition-delay: 0.18s; }

/* No-JS / reduced motion: never hide content */
.no-js .okc-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .okc-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-img { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- Section headings ------------------------------------------------------------ */
.okc-section-title {
  font-family: 'futura-bold', 'Arial', sans-serif;
  font-weight: 800;
  color: var(--okc-navy);
  font-size: 2rem;
  letter-spacing: -0.3px;
}
@media (min-width: 768px) { .okc-section-title { font-size: 2.4rem; } }

/* ---- Hero trust pill (social proof under CTAs) ----------------------------- */
.okc-trust-pill {
  display: inline-block;
  background: #ffffff;
  border: 1px solid rgba(20, 55, 77, 0.08);
  box-shadow: 0 4px 16px rgba(20, 55, 77, 0.08);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  color: var(--okc-muted);
}
.okc-trust-pill strong { color: var(--okc-navy); }

/* ---- Testimonial grid cards -------------------------------------------------- */
.okc-testimonial-card {
  background: #ffffff;
  border-radius: var(--okc-radius);
  box-shadow: var(--okc-card-shadow);
  border: 1px solid rgba(20, 55, 77, 0.06);
  padding: 30px 24px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.okc-testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--okc-card-shadow-hover); }
.okc-testimonial-avatar {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(20, 55, 77, 0.18);
  margin-top: -58px; /* overlap card edge, clevertype-style */
  background: #fff;
}
#testimonials-scroll .row.no-gutters { margin-top: 46px; }
.okc-testimonial-card .testimonial-user-text { line-height: 1.7; }

/* ---- Blog index (clevertype-style card grid) -------------------------------- */
.okc-blog-hero-title {
  font-family: 'futura-bold', 'Arial', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.5px;
  color: var(--okc-navy);
}
@media (min-width: 768px) { .okc-blog-hero-title { font-size: 3.2rem; } }

.okc-mini-stat {
  background: #ffffff;
  border: 1px solid rgba(20, 55, 77, 0.07);
  box-shadow: var(--okc-card-shadow);
  border-radius: 14px;
  padding: 14px 26px;
  text-align: center;
  min-width: 130px;
}
.okc-mini-stat-number {
  display: block;
  font-family: 'futura-bold', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--okc-blue);
}
.okc-mini-stat-number.okc-accent-green { color: var(--okc-green-bright); }
.okc-mini-stat-label { display: block; font-size: 0.8rem; color: var(--okc-muted); }

.okc-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(20, 55, 77, 0.06);
  border-radius: var(--okc-radius);
  box-shadow: var(--okc-card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
  color: inherit;
}
.okc-blog-card:hover { transform: translateY(-6px); box-shadow: var(--okc-card-shadow-hover); text-decoration: none; }

.okc-blog-banner {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.okc-blog-banner-img { background-size: cover; background-position: center; }
.okc-blog-banner-0 { background: linear-gradient(135deg, #d9edf7 0%, #d2f2d8 100%); }
.okc-blog-banner-1 { background: linear-gradient(135deg, #d2f2d8 0%, #fdf0d5 100%); }
.okc-blog-banner-2 { background: linear-gradient(135deg, #fdf0d5 0%, #d9edf7 100%); }

.okc-blog-card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.okc-blog-meta { font-size: 0.8rem; color: var(--okc-muted); margin-bottom: 8px; }
.okc-blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--okc-navy);
  line-height: 1.4;
  margin-bottom: 8px;
}
.okc-blog-card:hover .okc-blog-card-title { color: var(--okc-blue); }
.okc-blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--okc-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.okc-blog-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.okc-blog-author { color: var(--okc-muted); }
.okc-blog-readmore { color: var(--okc-green); font-weight: 600; }

/* ---- Blog post page (clevertype-style article) ------------------------------- */
.okc-post-hero {
  background:
    radial-gradient(700px 300px at 80% 20%, rgba(76, 175, 80, 0.18), transparent 60%),
    linear-gradient(120deg, #0d2434 0%, #14374d 55%, #12557a 100%);
  color: #fff;
  padding: 56px 0 60px;
}
.okc-post-breadcrumb { font-size: 0.85rem; margin-bottom: 22px; color: rgba(255, 255, 255, 0.55); }
.okc-post-breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.okc-post-breadcrumb a:hover { color: #fff; text-decoration: none; }
.okc-post-breadcrumb span { margin: 0 6px; }
.okc-post-breadcrumb-current { color: rgba(255, 255, 255, 0.55); }
.okc-post-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dff3e2;
  background: rgba(76, 175, 80, 0.18);
  border: 1px solid rgba(76, 175, 80, 0.35);
  margin-bottom: 16px;
  text-transform: capitalize;
}
.okc-post-title {
  font-family: 'futura-bold', 'Arial', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #fff;
  max-width: 820px;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .okc-post-title { font-size: 2.8rem; } }
.okc-post-meta { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.okc-post-meta strong { color: #fff; font-weight: 600; }
.okc-meta-dot { color: rgba(255, 255, 255, 0.4); }
.okc-author-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--okc-green-bright), var(--okc-blue));
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sticky TOC */
.okc-toc {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid rgba(20, 55, 77, 0.07);
  border-radius: 14px;
  box-shadow: var(--okc-card-shadow);
  padding: 20px 18px;
}
.okc-toc-title { font-weight: 700; color: var(--okc-navy); font-size: 1rem; margin-bottom: 12px; }
.okc-toc ul { list-style: none; padding: 0; margin: 0; }
.okc-toc li { border-left: 2px solid rgba(20, 55, 77, 0.1); }
.okc-toc a {
  display: block;
  padding: 7px 12px;
  font-size: 0.88rem;
  color: var(--okc-muted);
  line-height: 1.4;
}
.okc-toc a:hover { color: var(--okc-blue); text-decoration: none; border-left: 2px solid var(--okc-blue); margin-left: -2px; }

/* Article body typography */
.okc-post-body { font-size: 1.05rem; line-height: 1.8; color: var(--okc-ink); }
.okc-post-body h2 {
  font-weight: 700;
  color: var(--okc-navy);
  font-size: 1.5rem;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  padding-top: 0.5rem;
  scroll-margin-top: 90px;
}
.okc-post-body h2:not(:first-child) { border-top: 1px solid rgba(20, 55, 77, 0.08); padding-top: 1.6rem; }
.okc-post-body a { color: var(--okc-blue); font-weight: 500; }
.okc-post-body a:hover { color: var(--okc-green); }
.okc-post-body strong { color: var(--okc-navy); }
.okc-post-body img { max-width: 100%; height: auto; border-radius: 14px; }
.okc-post-body blockquote { border-left: 4px solid var(--okc-green-bright); padding-left: 1rem; color: var(--okc-muted); }

/* Key takeaways box */
.okc-takeaways {
  background: linear-gradient(135deg, rgba(18, 115, 166, 0.06), rgba(76, 175, 80, 0.08));
  border: 1px solid rgba(18, 115, 166, 0.15);
  border-radius: 16px;
  padding: 26px 26px 12px;
  margin: 1.5rem 0 2rem;
}
.okc-takeaways .okc-takeaways-title {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.2rem !important;
}
.okc-post-cta {
  background: #ffffff;
  border: 1px solid rgba(20, 55, 77, 0.07);
  border-radius: var(--okc-radius);
  box-shadow: var(--okc-card-shadow);
  padding: 30px;
}

/* Blog post cover image */
.okc-post-cover {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--okc-card-shadow);
  margin-bottom: 28px;
}
