/* ============================================================
   TheFinBaba — Programmatic SEO page layout (sp-*)
   Structure ported from the instacode.in reference, restyled
   with TheFinBaba's brand tokens from includes/styles.css.

   Used by: seo-page.php (city / audience / pillar pages)
            blog posts rendered from the SEO engine
   ============================================================ */

/* ---------- HERO ---------- */
.sp-hero {
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(79, 70, 229, .34) 0%, transparent 62%),
    radial-gradient(900px 460px at 88% 110%, rgba(245, 158, 11, .16) 0%, transparent 58%),
    linear-gradient(150deg, #1e1b4b 0%, #312e81 45%, #3730a3 100%);
  color: #fff;
  padding: 78px 0 68px;
  position: relative;
  overflow: hidden;
}
.sp-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.sp-hero > .container { position: relative; z-index: 2; }

.sp-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3.15rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.028em;
  margin-bottom: 18px; max-width: 22ch;
}
.sp-hero h1 .accent   { color: var(--fb-accent, #f59e0b); }
.sp-hero h1 .gradient { color: var(--fb-accent, #f59e0b); }

.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #e0e7ff; font-size: .82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.sp-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fb-accent, #f59e0b); display: inline-block;
}

.sp-intro p { color: #cbd5e1; line-height: 1.8; font-size: 1.06rem; margin-bottom: 14px; max-width: 68ch; }
.sp-intro strong { color: #fff; }

.sp-hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.sp-price-label  { color: #94a3b8; font-size: .9rem; }
.sp-price        { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.sp-price-strike { color: #94a3b8; text-decoration: line-through; font-size: 1.05rem; }
.sp-price-note   { color: #a5b4fc; font-size: .86rem; }

.sp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.sp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.sp-trust li { color: #c7d2fe; font-size: .88rem; }

/* ---------- BUTTONS ---------- */
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .2s, background .2s, color .2s;
}
.sp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.sp-btn-primary { background: var(--fb-accent, #f59e0b); color: #431407; }
.sp-btn-primary:hover { background: var(--fb-accent-dark, #d97706); color: #431407; }
.sp-btn-wa { background: #25d366; color: #05310f; }
.sp-btn-wa:hover { background: #1eb658; color: #05310f; }
.sp-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.sp-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.sp-side .sp-btn-ghost {
  background: #fff; color: var(--fb-ink, #0f172a);
  border-color: var(--fb-border, #e2e8f0); box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.sp-side .sp-btn-ghost:hover { border-color: var(--fb-primary, #4f46e5); color: var(--fb-primary, #4f46e5); }
.sp-btn-block { display: flex; width: 100%; }

/* ---------- BODY GRID (main + sticky sidebar) ---------- */
.sp-body { padding: 54px 0 70px; background: #fff; }
.sp-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;      /* sticky sidebar ke liye zaroori */
}
.sp-content { min-width: 0; }   /* grid overflow guard */

/* ---------- CONTENT TYPOGRAPHY ---------- */
.sp-block { margin-bottom: 44px; }
.sp-block:last-child { margin-bottom: 0; }

.sp-content h2 {
  color: var(--fb-ink, #0f172a); font-size: 1.65rem; font-weight: 800;
  line-height: 1.3; letter-spacing: -.01em;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--fb-border, #e2e8f0);
}
.sp-content h3 { color: var(--fb-ink, #0f172a); font-size: 1.18rem; font-weight: 700; margin: 26px 0 10px; }
.sp-content h4 { color: var(--fb-ink, #0f172a); font-size: 1.02rem; font-weight: 700; margin: 20px 0 8px; }
.sp-content p  { color: var(--fb-text, #334155); line-height: 1.82; margin-bottom: 15px; font-size: 1.005rem; }
.sp-content ul, .sp-content ol { margin: 0 0 18px 22px; }
.sp-content li { color: var(--fb-text, #334155); line-height: 1.78; margin-bottom: 9px; }
.sp-content strong { color: var(--fb-ink, #0f172a); font-weight: 700; }
.sp-content a { color: var(--fb-primary, #4f46e5); font-weight: 600; }

.sp-content table {
  width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: .93rem;
  display: block; overflow-x: auto;      /* mobile par scroll, page nahi tootega */
}
.sp-content table thead th {
  background: var(--fb-bg, #f8fafc); color: var(--fb-ink, #0f172a); text-align: left;
  font-weight: 700; padding: 11px 14px; border-bottom: 2px solid var(--fb-border, #e2e8f0);
}
.sp-content table td { padding: 11px 14px; border-bottom: 1px solid var(--fb-border, #e2e8f0); color: var(--fb-text, #334155); }
.sp-content blockquote {
  border-left: 3px solid var(--fb-primary, #4f46e5); background: var(--fb-bg, #f8fafc);
  padding: 14px 20px; margin: 0 0 20px; border-radius: 0 10px 10px 0; color: var(--fb-text, #334155);
}

/* ---------- PRICE / PLAN BLOCK ---------- */
.sp-plans {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--fb-border, #e2e8f0); border-radius: 20px; padding: 34px 30px;
}
.sp-plans h2 { border-bottom: 0; padding-bottom: 0; }
.sp-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.sp-plan-price .now    { font-size: 2rem; font-weight: 800; color: var(--fb-ink, #0f172a); }
.sp-plan-price .was    { text-decoration: line-through; color: var(--fb-muted, #64748b); }
.sp-plan-price .note   { color: var(--fb-muted, #64748b); font-size: .9rem; }

/* ---------- FAQ (native <details>, koi JS nahi) ---------- */
.sp-faq-item {
  border: 1px solid var(--fb-border, #e2e8f0); border-radius: 14px; margin-bottom: 10px;
  background: #fff; overflow: hidden;
  transition: border-color .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1);
}
.sp-faq-item:hover { border-color: #cbd5e8; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
.sp-faq-item[open] {
  border-color: var(--fb-primary, #4f46e5);
  box-shadow: 0 2px 6px rgba(79,70,229,.08), 0 10px 26px rgba(79,70,229,.10);
}
.sp-faq-item summary {
  cursor: pointer; padding: 15px 46px 15px 18px; font-weight: 700;
  color: var(--fb-ink, #0f172a); font-size: .98rem; line-height: 1.5;
  list-style: none; position: relative;
}
.sp-faq-item summary::-webkit-details-marker { display: none; }
.sp-faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--fb-primary, #4f46e5);
  border-bottom: 2px solid var(--fb-primary, #4f46e5);
  transform: translateY(-70%) rotate(45deg); transform-origin: center;
  transition: transform .24s cubic-bezier(.16,1,.3,1);
}
.sp-faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.sp-faq-a { padding: 0 18px 16px; color: var(--fb-text, #334155); line-height: 1.78; font-size: .96rem; }
.sp-faq-a p { margin-bottom: 10px; }
.sp-faq-a p:last-child { margin-bottom: 0; }

/* ---------- FINAL CTA ---------- */
.sp-final {
  position: relative;
  background:
    radial-gradient(700px 320px at 20% -20%, rgba(79,70,229,.38) 0%, transparent 60%),
    linear-gradient(140deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
  border-radius: 20px; padding: 44px 34px; text-align: center; overflow: hidden;
  box-shadow: 0 8px 20px rgba(15,23,42,.14), 0 24px 60px rgba(15,23,42,.18);
}
.sp-final::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000 20%, transparent 72%);
          mask-image: radial-gradient(70% 70% at 50% 0%, #000 20%, transparent 72%);
  pointer-events: none;
}
.sp-final > * { position: relative; z-index: 1; }
.sp-final h2 { border-bottom: 0; padding-bottom: 0; color: #fff !important; }
.sp-final p  { color: #cbd5e1; max-width: 56ch; margin: 0 auto 24px; }
.sp-final .sp-hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- STICKY SIDEBAR ---------- */
.sp-side {
  position: sticky;
  top: calc(var(--fb-nav-h, 72px) + 20px);   /* fixed navbar ke neeche */
  display: flex; flex-direction: column; gap: 16px;
}
.sp-side-card {
  background: #fff; border: 1px solid var(--fb-border, #e2e8f0);
  border-radius: 16px; padding: 22px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05);
  transition: box-shadow .22s cubic-bezier(.16,1,.3,1);
}
.sp-side-card:hover { box-shadow: 0 4px 8px rgba(15,23,42,.05), 0 14px 32px rgba(15,23,42,.09); }
.sp-side-card h3 {
  font-size: .98rem; font-weight: 800; color: var(--fb-ink, #0f172a);
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--fb-border, #e2e8f0);
}
.sp-side-card ul { list-style: none; margin: 0; padding: 0; }
.sp-side-card li { margin-bottom: 9px; line-height: 1.5; }
.sp-side-card li a {
  display: inline-flex; align-items: flex-start; gap: 6px;
  color: var(--fb-primary, #4f46e5); text-decoration: none; font-size: .9rem; font-weight: 600;
  transition: gap .14s cubic-bezier(.16,1,.3,1), color .14s;
}
.sp-side-card li a::before { content: "\203A"; color: var(--fb-primary, #4f46e5); font-weight: 700; }
.sp-side-card li a:hover { gap: 10px; color: var(--fb-primary-dark, #4338ca); text-decoration: underline; }
.sp-side-card p { font-size: .88rem; line-height: 1.65; color: var(--fb-text, #334155); margin-bottom: 14px; }
.sp-side-cta { background: var(--fb-bg, #f8fafc); }
.sp-side-note { font-style: italic; font-size: .82rem; color: var(--fb-muted, #64748b); }

/* Sidebar ke andar price mini-card */
.sp-side-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sp-side-price .now { font-size: 1.5rem; font-weight: 800; color: var(--fb-ink, #0f172a); }
.sp-side-price .was { text-decoration: line-through; color: var(--fb-muted, #64748b); font-size: .92rem; }

/* ---------- DISCLAIMER ---------- */
.sp-disclaimer {
  margin-top: 34px; padding: 16px 18px;
  background: var(--fb-bg, #f8fafc); border: 1px solid var(--fb-border, #e2e8f0);
  border-radius: 12px; color: var(--fb-muted, #64748b);
  font-size: .85rem; line-height: 1.7;
}

/* ---------- BREADCRUMB ---------- */
.sp-crumbs { font-size: .84rem; color: #a5b4fc; margin-bottom: 14px; }
.sp-crumbs a { color: #c7d2fe; text-decoration: none; }
.sp-crumbs a:hover { color: #fff; text-decoration: underline; }
.sp-crumbs span { color: #818cf8; margin: 0 6px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .sp-body-grid { grid-template-columns: 1fr; gap: 34px; }
  .sp-side { position: static; }          /* mobile par sticky nahi */
  .sp-hero h1 { font-size: 2.05rem; }
  .sp-body { padding: 40px 0 54px; }
}
@media (max-width: 600px) {
  .sp-hero { padding: 42px 0 38px; }
  .sp-hero h1 { font-size: 1.68rem; max-width: none; }
  .sp-hero-cta { gap: 9px; }
  .sp-btn { padding: 11px 18px; font-size: .9rem; }
  .sp-content h2 { font-size: 1.34rem; }
  .sp-plans, .sp-final { padding: 22px 18px; }
  .sp-price { font-size: 1.7rem; }
}
