:root{
  --slate-50:#f8fafc;
  --slate-100:#f1f5f9;
  --slate-200:#e2e8f0;
  --slate-500:#64748b;
  --slate-600:#475569;
  --slate-700:#334155;
  --slate-900:#0b1220;
  --blue-600:#2563eb;
  --blue-700:#1d4ed8;
  --navy:#0f172a;
  --navy-700:#0b1220;
  --emerald-500:#10b981;
}

/* System font lock inside our mount */
:where(html, body, #mapranker-root, #mapranker-root *):not(svg *, .dashicons, [class*="wp-block-code"] *, .components-button svg *){
  font-family: apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea{ font: inherit !important; }

html{scroll-behavior:smooth}
*{box-sizing:border-box}

body{ margin:0; color:var(--slate-900); background:var(--slate-50); }
a{color:inherit;text-decoration:none}

.container{max-width:1152px;margin:0 auto;padding:0 16px}

/* ===== Header (fixed at very top) ===== */
header.header{
  position:fixed !important; top:0; left:0; right:0; width:100%;
  z-index:1000;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(6px);
  border-bottom:1px solid var(--slate-200);
  margin:0 !important;
  padding-left:clamp(16px,3vw,32px) !important;
  padding-right:clamp(16px,3vw,32px) !important;
  box-sizing:border-box;
}
#mapranker-header-spacer{ width:100%; height:52px; } /* JS will update precisely */

.header-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;padding:12px 0}
.nav{display:flex;gap:32px;justify-content:center;color:#64748b;font-size:14px}
.nav a:hover{color:#0f172a}

.logo{display:flex;align-items:center;gap:12px;justify-self:start}
.logo-badge{height:36px;width:36px;border-radius:12px;background:linear-gradient(135deg,#3b82f6,#10b981);display:grid;place-items:center;box-shadow:0 1px 2px rgba(0,0,0,.06)}

.cta{display:inline-block;padding:10px 18px;border-radius:999px;font-weight:700;color:#fff;background:var(--navy)}
.cta:hover{background:var(--navy-700)}
.cta-dark{background:var(--navy)}
.cta-dark:hover{background:var(--navy-700)}
.header-cta{justify-self:end}

/* Buttons */
.btn{
  display:inline-block;border-radius:12px;padding:10px 14px;font-weight:700;
  color:#fff;background:var(--emerald-500);text-align:center;font-size:14px
}
.btn:hover{background:#059669}
.btn-outline{background:#fff;color:#0f172a;border:1px solid var(--slate-200)}
.btn-blue{background:var(--blue-600)}
.btn-blue:hover{background:var(--blue-700)}

.menu-cta{display:none}
.header-cta{display:inline-block}

/* Mobile toggle */
.nav-toggle{
  display:none;appearance:none;border:1px solid var(--slate-200);
  background:#fff;border-radius:12px;width:40px;height:40px;padding:0;
  color:#334155;cursor:pointer;line-height:0
}
.nav-toggle svg{width:22px;height:22px;display:block;margin:auto}

/* ===== Sections / grids ===== */
.section{padding:48px 0} /* tighter overall */
#hero.section{padding-top:22px} /* extra-tight under header */

.grid{display:grid;gap:16px}
@media(min-width:768px){.grid-2{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.grid-3{grid-template-columns:repeat(3,1fr)}}

/* ===== Typography ===== */
.h1{ font-size:34px; line-height:1.15; font-weight:800; letter-spacing:-.01em; color:var(--navy-700) }
@media(min-width:640px){.h1{font-size:44px}}
.p{color:#475569;font-size:16px}
.grad-text{background:linear-gradient(90deg,#2563eb 0%, #10b981 100%);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ===== Badges & cards ===== */
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;background:#fff;border:1px solid var(--slate-200);border-radius:999px;color:#475569;font-size:12px}
.hero-badge{font-size:14px;padding:8px 14px} /* bigger hero badge */
.dot{height:8px;width:8px;border-radius:999px;background:var(--emerald-500)}
.card{background:#fff;border:1px solid var(--slate-200);border-radius:16px;padding:14px;box-shadow:0 2px 8px rgba(15,23,42,.06)}

/* ===== Form ===== */
.input{width:100%;padding:13px 16px;border:1px solid var(--slate-200);border-radius:14px;font-size:15px;outline:none;line-height:1.3}
.input:focus{box-shadow:0 0 0 3px rgba(37,99,235,.25)}
.label{display:block;font-size:13px;font-weight:600;color:#334155}
#mapranker-form .grid{row-gap:14px}

/* ===== KPIs ===== */
.kpi{font-size:32px;font-weight:700}
.kpi-sub{font-size:12px;color:#475569}

/* ===== Testimonials ===== */
.testi-img-card{padding:0;overflow:hidden;border-radius:16px}
.testi-img{display:block;width:100%;height:auto;border-radius:16px}

@media (max-width:470px){
  .testi-img-card{padding:0 !important}
  .testi-img{border-radius:12px}

	
	#start{
		margin-top: 55px
	}	
	
}

/* 2 per row on tablet/desktop */
#testimonials .grid-3{grid-template-columns:1fr !important;gap:18px}
@media (min-width:640px){
  #testimonials .grid-3{grid-template-columns:1fr 1fr !important;}
}
#testimonials .testi-img-card{border-radius:18px}
#testimonials .testi-img{border-radius:18px}

/* Full-bleed on mobile */
@media (max-width:640px){
  #testimonials{
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    padding-left:calc(50vw - 50%);
    padding-right:calc(50vw - 50%);
    overflow:hidden;
  }
  #testimonials .container{padding-left:0 !important;padding-right:0 !important}
  #testimonials .grid-3{gap:12px}
  #testimonials .testi-img-card{border-radius:0 !important}
  #testimonials .testi-img{border-radius:0 !important}
}

/* ===== How section ===== */
.how-step-title{ display:flex; align-items:center; gap:10px; font-weight:800; color:var(--navy-700); margin-bottom:6px; }
.step-badge{
  display:inline-grid; place-items:center;
  width:34px; height:34px; flex:0 0 34px;
  border-radius:10px;
  background:linear-gradient(135deg,#2563eb,#10b981);
  color:#fff; font-weight:900; font-size:16px;
  box-shadow:0 2px 8px rgba(15,23,42,.15);
}

/* ===== Case Studies ===== */
#case-studies .grid-cases{display:grid; gap:16px}
@media (min-width:768px){ #case-studies .grid-cases{ grid-template-columns:1fr 1fr } }
.case-card .case-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px }
.case-badge{
  display:inline-grid; place-items:center; width:28px; height:28px; border-radius:8px;
  background:linear-gradient(135deg,#2563eb,#10b981); color:#fff; font-weight:800; font-size:14px;
}
.chart-wrap{ position:relative; width:100%; height:220px }
.chart-wrap canvas{ position:absolute; inset:0; width:100% !important; height:100% !important }

/* ===== Footer ===== */
.footer{ padding:0 !important; background:#f8fafc; border-top:1px solid var(--slate-200) }
.footer > .container{ padding-top:6px !important; padding-bottom:6px !important }
.footer .small{font-size:12px;color:#64748b;line-height:1;margin:0}

/* ===== Utilities ===== */
.err{color:#dc2626;font-size:13px}
.hidden{display:none}
.span-2{grid-column:1/-1}
section[id]{scroll-margin-top:76px} /* account for fixed header */
#start{scroll-margin-top:76px}
.no-scroll, .no-scroll body{overflow:hidden}

/* ===== Mobile header grid ===== */
@media (max-width:820px){
  #hero .btn,#hero .btn-outline{display:block;width:65%;margin-left:auto;margin-right:auto}
  #hero .btn + span{display:none}
  #hero .btn + span + .btn,
  #hero .btn + span + .btn-outline,
  #hero .btn-outline + span + .btn,
  #hero .btn-outline + span + .btn-outline{margin-top:-11px}

  .nav-toggle{display:inline-grid;place-items:center}
  .header-cta{display:none}
  .menu-cta{display:block}

  .nav{
    display:none;position:fixed;top:56px;left:0;right:0;width:100vw;background:#fff;
    border-top:1px solid var(--slate-200);
    padding:14px max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left));
    flex-direction:column;gap:12px;box-shadow:0 12px 30px rgba(15,23,42,.12);
    z-index:9999;margin:0;box-sizing:border-box
  }
  .nav.open{display:flex !important}
  .nav a{display:block;padding:10px 6px;border-radius:10px;font-size:15px;color:#0f172a}
  .nav a:hover{background:#f1f5f9}
  .nav .menu-cta{background:var(--navy) !important;color:#fff !important;border:0 !important;font-weight:800;text-align:center;margin-top:8px}
  .nav .menu-cta:hover{background:var(--navy-700) !important}
}
@media (min-width:821px){.nav a{padding:8px 0}}

/* Hero heading exact size */
#hero .h1{ font-size:36px !important; line-height:1.15 !important; font-weight:800 !important; letter-spacing:-.01em !important }

/* Buttons hover transitions */
@media (hover:hover){
  .btn,.btn-blue,.btn-outline,.cta,.nav .menu-cta{
    transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,color .15s ease,border-color .15s ease,filter .15s ease;
    will-change:transform,box-shadow
  }
  .btn:hover,.btn-blue:hover,.btn-outline:hover,.cta:hover,.nav .menu-cta:hover{
    transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,23,42,.12)
  }
  .btn-outline:hover{background:#f8fafc;border-color:var(--slate-200)}
}
.btn:active,.btn-blue:active,.btn-outline:active,.cta:active,.nav .menu-cta:active{
  transform:translateY(0);box-shadow:0 2px 8px rgba(15,23,42,.10)
}
@media (prefers-reduced-motion:reduce){
  .btn,.btn-blue,.btn-outline,.cta,.nav .menu-cta{transition:none}
}
/* ===== PRICING (Redesigned) ===== */
.pricing-sec{
  background: linear-gradient(180deg, rgba(15,23,42,.02), rgba(15,23,42,.04));
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.pricing-head{
  text-align:center;
  margin-bottom:18px;
}
.pricing-grid{
  display:grid; gap:18px;
}
@media (min-width:768px){
  .pricing-grid{ grid-template-columns: repeat(3,1fr); align-items:stretch; }
}

/* Card container */
.plan-card{
  position:relative;
  border:1px solid var(--slate-200);
  border-radius:20px;
  background:#fff;
  box-shadow:0 6px 20px rgba(15,23,42,.06);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(15,23,42,.12);
  border-color:#cbd5e1;
}
.plan-inner{
  display:flex; flex-direction:column;
  height:100%;
  padding:18px 18px 16px 18px;
}

/* Ribbon for popular */
.plan-ribbon{
  position:absolute; top:12px; right:-36px;
  background:linear-gradient(135deg,#2563eb,#10b981);
  color:#fff; font-weight:800; font-size:12px;
  padding:6px 46px; transform:rotate(15deg);
  box-shadow:0 6px 18px rgba(37,99,235,.25);
  letter-spacing:.02em;
}
.plan-popular{
  outline:2px solid rgba(37,99,235,.18);
  box-shadow:0 10px 28px rgba(37,99,235,.12);
}

/* Header bar */
.plan-head{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fafc,#eef2f7);
  border:1px solid var(--slate-200);
}
.plan-icon{
  width:34px; height:34px; border-radius:10px;
  display:grid; place-items:center;
  background:linear-gradient(135deg,#2563eb,#10b981);
  color:#fff;
  box-shadow:0 4px 12px rgba(37,99,235,.25);
}
.plan-title{
  margin:0; font-size:20px; font-weight:800; color:var(--navy-700);
}

/* Price */
.plan-price-wrap{
  display:flex; align-items:baseline; justify-content:space-between;
  margin:14px 2px 8px 2px;
}
.plan-price{
  display:flex; align-items:flex-end; gap:2px;
  line-height:1;
}
.plan-currency{ font-weight:800; font-size:18px; color:#0f172a }
.plan-amount{ font-weight:900; font-size:36px; color:#0f172a; letter-spacing:-.02em }
.plan-period{ font-weight:700; font-size:12px; color:#475569; margin-left:3px }
.plan-note{ font-size:12px; color:#475569; }

/* Features */
.plan-features{
  list-style:none; padding:0; margin:12px 0 16px 0;
  display:grid; gap:8px;
}
.plan-features li{
  position:relative; padding-left:26px; color:#334155;
}
.plan-features li::before{
  content:""; position:absolute; left:0; top:2px;
  width:18px; height:18px; border-radius:6px;
  background:linear-gradient(135deg,#10b981,#22c55e);
  box-shadow:0 3px 10px rgba(16,185,129,.25);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z"/></svg>') no-repeat center / 14px 14px;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z"/></svg>') no-repeat center / 14px 14px;
}

/* CTA inside card */
.plan-cta{
  width:100%; text-align:center; font-weight:800;
  border-radius:12px; padding:12px 14px;
  background:#0f172a; color:#fff !important;
  box-shadow:0 10px 20px rgba(15,23,42,.15);
}
.plan-popular .plan-cta{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 12px 24px rgba(37,99,235,.25);
}
.plan-cta:hover{ filter:brightness(.98); transform:translateY(-1px) }

/* Footnote */
.pricing-footnote{
  text-align:center; color:#64748b; font-size:13px; margin-top:10px;
}

/* ===== FAQs — full-width white background via ::before layer ===== */
#faqs{
  position:relative; z-index:3;
  padding-top:28px; padding-bottom:56px !important;
  margin:0 !important; padding-left:0 !important; padding-right:0 !important;
  background:transparent !important; border:none !important;
}
#faqs::before{
  content:""; position:absolute; z-index:-1; top:0; bottom:0;
  left:50%; right:50%; margin-left:-50vw; margin-right:-50vw; /* true full-bleed */
  background:#fff;
  box-shadow:
    0 -1px 0 0 var(--slate-200) inset,
    0  1px 0 0 var(--slate-200) inset;
}
#faqs .container{padding-left:16px !important; padding-right:16px !important}
@media (min-width:768px){
  #faqs .container{padding-left:24px !important; padding-right:24px !important}
}
#faqs .grid-2{ display:grid; grid-template-columns:1fr; gap:16px }
@media (min-width:768px){ #faqs .grid-2{ grid-template-columns:1fr 1fr; align-items:start } }
#faqs .faq{margin:0; position:relative; z-index:4}

.faq{ position:relative;border:1px solid var(--slate-200);border-radius:16px;background:#fff; box-shadow:0 2px 8px rgba(15,23,42,.06);overflow:hidden;width:100% }
.faq-summary{ list-style:none;display:flex;align-items:center;justify-content:space-between; padding:18px 20px;min-height:56px;line-height:1.25;cursor:pointer }
.faq-summary::-webkit-details-marker{display:none}
.faq-q{font-size:18px;font-weight:700;color:var(--slate-900);margin-right:12px}
@media(min-width:768px){.faq-q{font-size:20px}}
.faq-caret{width:18px;height:18px;color:#94a3b8;flex:0 0 18px;transition:transform .2s ease,color .15s ease; display:inline-block; will-change:transform}
.faq[open] .faq-summary{border-bottom:1px solid var(--slate-200)}
.faq[open] .faq-caret{transform:rotate(180deg);color:#64748b}
.faq-a{padding:16px 20px 20px 20px;color:#475569}
@media (hover:hover){.faq-summary:hover{background:#f8fafc}}

/* ===== Footer slim enforcement ===== */
.wp-site-blocks, .wp-block-template-part[area="footer"], .site-footer, #colophon{
  --wp--style--root--padding-bottom: 0 !important; --wp--custom--spacing--large: 0 !important; --wp--style--block-gap: 0 !important;
  padding-bottom:0 !important;
}
footer.footer{
  background:#f8fafc !important; border-top:1px solid var(--slate-200) !important;
  padding-top:8px !important; padding-bottom:8px !important;
  margin-block:0 !important; min-height:0 !important; height:auto !important; line-height:1 !important; overflow:hidden !important;
}
footer.footer > .container, footer.footer .container{
  display:flex !important; align-items:center !important; justify-content:space-between !important; flex-wrap:wrap !important; gap:12px !important;
  min-height:0 !important; height:auto !important; padding:0 !important; margin:0 !important;
}
footer.footer::before, footer.footer::after{content:none !important;display:none !important}
footer.footer *{margin-top:0 !important;margin-bottom:0 !important}
footer.footer .logo{display:flex !important;align-items:center !important;gap:12px !important}
footer.footer .logo-badge{
  height:36px !important;width:36px !important;border-radius:12px !important;
  background:linear-gradient(135deg,#3b82f6,#10b981) !important;box-shadow:0 1px 2px rgba(0,0,0,.06) !important;
}
footer.footer .logo span{font-weight:700 !important;color:var(--slate-900) !important}
#mapranker-root{margin-bottom:0 !important}
#mapranker-root + *{margin-bottom:0 !important;padding-bottom:0 !important}
footer, .site-footer, #colophon{ min-height:0 !important;height:auto !important;padding-top:8px !important;padding-bottom:8px !important;margin:0 !important;line-height:1 !important }

/* ===== FINAL OVERRIDE: mobile hamburger on the right edge ===== */
@media (max-width:820px){
  header.header .header-inner{
    grid-template-columns: auto 1fr auto !important;
  }
  header.header .logo{
    grid-column: 1 !important;
    justify-self: start !important;
  }
  header.header .nav{
    grid-column: 2 !important;
    justify-self: center !important;
  }
  header.header .nav-toggle{
    grid-column: 3 !important;
    justify-self: end !important;
    margin-right: 0 !important;
  }
}

/* ===== Facebook embeds responsive & fallback ===== */
.fb-post,
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget iframe{
  max-width:100% !important;
  width:100% !important;
}
.fb-fallback{
  border:1px solid var(--slate-200);
  border-radius:14px;
  padding:14px;
  background:#fff;
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.fb-fallback .fb-icon{
  width:20px; height:20px; border-radius:4px;
  background:#1877f2; flex:0 0 20px;
}
.fb-fallback .fb-title{font-weight:700; color:#0f172a; margin:0 0 6px 0}
.fb-fallback .fb-desc{color:#475569; margin:0 0 10px 0; font-size:14px}
.fb-fallback .fb-btn{
  display:inline-block; padding:8px 12px; border-radius:10px; font-weight:700;
  background:#1877f2; color:#fff; text-decoration:none; font-size:14px;
}
.fb-fallback .fb-btn:hover{filter:brightness(.95)}
