/* Service Detail template (page-service-detail.php).
   Loaded only on pages that use that template. Uses the site's --md-* tokens
   from style.css, with fallbacks so it still renders if a token is missing.
   Motion: transform and opacity only, and all of it is switched off for people
   who prefer reduced motion. */

.sp-wrap {
  --sp-navy: var(--md-primary-dark, #0D3880);
  --sp-blue: var(--md-primary, #1A56B0);
  --sp-teal: var(--md-secondary, #0B8068);
  --sp-mint: var(--md-secondary-light, #E0F5EF);
  --sp-sky:  var(--md-primary-light, #E8EFFE);
  --sp-amber: #FFC857;
  --sp-amber-soft: #FFF3D6;
  --sp-ink: var(--md-on-surface, #1A1D26);
  --sp-ink-2: var(--md-on-surface-2, #4A5068);
  --sp-ink-3: var(--md-on-surface-3, #7880A0);
  --sp-line: var(--md-outline-variant, #E4E7EF);
  padding-top: var(--nav-h, 68px);
  background: var(--md-background, #F7F8FC);
  color: var(--sp-ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: clip;
}
.sp-container {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}
.sp-wrap a { color: var(--sp-blue); }
.sp-wrap a:focus-visible,
.sp-btn:focus-visible,
.sp-qa summary:focus-visible {
  outline: 3px solid var(--sp-teal);
  outline-offset: 3px;
}
.sp-ic { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.sp-ic-lg { width: 2rem; height: 2rem; }

/* ---------- Buttons ---------- */
.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-full, 100px);
  background: #fff;
  color: var(--sp-navy) !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(8, 28, 70, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8, 28, 70, 0.3); }
.sp-btn--primary { background: var(--sp-blue); color: #fff !important; }

/* ---------- Hero ---------- */
.sp-hero {
  position: relative;
  padding: 44px 0 96px;
  background: linear-gradient(135deg, #0D3880 0%, #1A56B0 58%, #0B8068 100%);
  color: #fff;
  overflow: clip;
}
.sp-hero::before,
.sp-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sp-hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(255,255,255,0) 68%); }
.sp-hero::after  { width: 380px; height: 380px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(255,200,87,0.20), rgba(255,200,87,0) 70%); }
.sp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: center;
}
.sp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.8);
}
.sp-crumbs a { color: #fff; text-decoration: none; }
.sp-crumbs a:hover { text-decoration: underline; }
.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-full, 100px);
  background: rgba(255,255,255,0.15);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.sp-eyebrow .sp-ic { color: var(--sp-amber); }
.sp-hero h1 {
  font-size: clamp(1.95rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
  text-wrap: balance;
}
.sp-intro {
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 0 26px;
  color: rgba(255,255,255,0.93);
}
.sp-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 26px; }
.sp-quote { font-size: 0.9rem; margin: 0; opacity: 0.92; }
.sp-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.sp-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: #fff; }
.sp-trust .sp-ic { color: var(--sp-amber); }

.sp-hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }
.sp-hero-visual svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(6, 22, 60, 0.35)); }
.sp-hero-photo { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 40px rgba(6, 22, 60, 0.4); }

/* The one orchestrated moment: the illustration builds in, once, on load. */
.sp-js .sp-v { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-pop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.sp-js .sp-v1 { animation-delay: 0.15s; }
.sp-js .sp-v2 { animation-delay: 0.55s; }
.sp-js .sp-v3 { animation-delay: 0.95s; }
@keyframes sp-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Evidence strip ---------- */
.sp-stats { position: relative; z-index: 2; margin-top: -48px; }
.sp-stats-bar {
  display: grid;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(13, 56, 128, 0.16);
  overflow: hidden;
}
.sp-stat { padding: 22px 24px; border-top: 1px solid var(--sp-line); }
.sp-stat:first-child { border-top: 0; }
.sp-stat-num {
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sp-navy);
  font-variant-numeric: tabular-nums;
}
.sp-stat p { margin: 8px 0 4px; font-size: 0.95rem; color: var(--sp-ink-2); line-height: 1.45; }
.sp-stat small { font-size: 0.78rem; color: var(--sp-ink-3); }

/* ---------- On this page ---------- */
.sp-toc-wrap { padding: 28px 0 0; }
.sp-toc { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: thin; }
.sp-toc a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-full, 100px);
  background: #fff;
  border: 1px solid var(--sp-line);
  color: var(--sp-ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sp-toc a:hover { background: var(--sp-sky); color: var(--sp-blue); border-color: transparent; }
.sp-reviewed { font-size: 0.85rem; color: var(--sp-ink-3); margin: 4px 0 0; }

/* ---------- Sections ---------- */
.sp-section { padding: 64px 0; scroll-margin-top: calc(var(--nav-h, 68px) + 8px); }
.sp-alt { background: #fff; }
.sp-head { max-width: 720px; margin: 0 0 32px; }
.sp-head h2,
.sp-engage h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--sp-navy);
  margin: 0 0 12px;
  text-wrap: balance;
}
.sp-head p { margin: 0; color: var(--sp-ink-2); }
.sp-section h3 { font-size: 1.1rem; line-height: 1.35; font-weight: 700; margin: 0 0 6px; color: var(--sp-ink); }
.sp-section p { margin: 0; color: var(--sp-ink-2); }
.sp-prose { max-width: 68ch; margin: 0 0 16px !important; }
.sp-section p a, .sp-section li a, .sp-related a { text-decoration: underline; text-underline-offset: 3px; }

.sp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--sp-sky);
  color: var(--sp-blue);
}
.sp-badge .sp-ic { width: 22px; height: 22px; }

/* What it is: text beside the service map */
.sp-split { display: grid; gap: 36px; align-items: start; }
.sp-family {
  padding: 24px 20px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--sp-sky), #fff);
  border: 1px solid var(--sp-line);
}
.sp-family-top, .sp-family-row { display: flex; justify-content: center; gap: 10px; }
.sp-family-top { margin-bottom: 36px; position: relative; }
.sp-family-top::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 2px; height: 18px;
  background: var(--sp-blue);
}
.sp-family-row { position: relative; flex-wrap: wrap; }
.sp-family-row::before {
  content: "";
  position: absolute;
  top: -18px; left: 16%; right: 16%;
  height: 2px;
  background: var(--sp-blue);
}
.sp-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  min-width: 112px;
  text-align: center;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--sp-blue);
  text-decoration: none !important;
  color: var(--sp-navy) !important;
  line-height: 1.25;
}
.sp-node strong { font-size: 1rem; }
.sp-node span { font-size: 0.78rem; color: var(--sp-ink-2); }
a.sp-node:hover { background: var(--sp-sky); }
.sp-node.is-current { background: var(--sp-navy); border-color: var(--sp-navy); color: #fff !important; }
.sp-node.is-current span { color: rgba(255,255,255,0.8); }
.sp-family-top .sp-node { min-width: 170px; }
.sp-family-note { margin: 22px 0 0 !important; font-size: 0.88rem; text-align: center; color: var(--sp-ink-3) !important; }

/* Facts: rows, not cards */
.sp-fact-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 0; max-width: 860px; }
.sp-fact { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--sp-line); }
.sp-fact:first-child { border-top: 0; }
.sp-fact h3 { margin-bottom: 4px; }
.sp-callout {
  max-width: 860px;
  margin: 8px 0 18px !important;
  padding: 18px 22px;
  background: var(--sp-amber-soft);
  border-left: 4px solid var(--sp-amber);
  border-radius: 6px 14px 14px 6px;
  color: var(--sp-ink) !important;
}
.sp-sources { max-width: 860px; font-size: 0.85rem; color: var(--sp-ink-3) !important; }

/* What's included: icon, title, text. No boxes. */
.sp-feature-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 40px; }
.sp-feature { padding-top: 22px; border-top: 2px solid var(--sp-line); }
.sp-feature .sp-badge { margin-bottom: 12px; }
.sp-feature:nth-child(3n+2) .sp-badge { background: var(--sp-mint); color: var(--sp-teal); }
.sp-feature:nth-child(3n+3) .sp-badge { background: var(--sp-amber-soft); color: #9A6A00; }

/* Who it's for: four tinted tiles */
.sp-persona-grid { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.sp-persona { padding: 22px; border-radius: 18px; background: var(--sp-sky); display: flex; flex-direction: column; gap: 14px; }
.sp-persona:nth-child(2) { background: var(--sp-mint); }
.sp-persona:nth-child(3) { background: var(--sp-amber-soft); }
.sp-persona:nth-child(4) { background: var(--md-surface-2, #EDF0F8); }
.sp-persona .sp-badge { background: #fff; }
.sp-persona p { color: var(--sp-ink) !important; font-weight: 600; line-height: 1.45; }
.sp-notfit { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; font-size: 0.95rem; color: var(--sp-ink-2) !important; }
.sp-notfit .sp-ic { color: var(--md-error, #BA1A1A); margin-top: 3px; }

/* Process: a timeline that draws itself once as it scrolls into view */
.sp-timeline { list-style: none; padding: 0; margin: 0 0 28px; position: relative; display: grid; gap: 28px; }
.sp-timeline::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 3px;
  background: linear-gradient(var(--sp-blue), var(--sp-teal));
  border-radius: 3px;
  transform-origin: top;
}
.sp-step { position: relative; padding-left: 68px; }
.sp-step-dot {
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sp-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--md-background, #F7F8FC);
}
.sp-alt .sp-step-dot { box-shadow: 0 0 0 6px #fff; }
.sp-step-dot .sp-ic { width: 22px; height: 22px; }
.sp-step-dot b {
  position: absolute; right: -4px; top: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sp-amber); color: var(--sp-navy);
  font-size: 0.72rem; line-height: 20px; text-align: center;
}
.sp-step h3 { font-size: 1.2rem; padding-top: 10px; }
.sp-receive {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px !important;
  padding: 12px 14px;
  background: var(--sp-sky);
  border-radius: 12px;
  font-size: 0.95rem;
}
.sp-receive .sp-ic { color: var(--sp-blue); margin-top: 2px; }
.sp-js .sp-timeline::before { transform: scaleY(0); }
.sp-js .sp-timeline.is-in::before { transform: scaleY(1); transition: transform 1.4s ease-out; }
.sp-js .sp-step { opacity: 0; transform: translateY(12px); }
.sp-js .sp-timeline.is-in .sp-step { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i) * 0.28s + 0.15s); }

.sp-promise {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 860px;
  padding: 22px 24px;
  background: var(--sp-navy);
  border-radius: 18px;
  color: #fff;
}
.sp-promise .sp-ic { color: var(--sp-amber); margin-top: 2px; }
.sp-promise h3 { color: #fff; }
.sp-promise p { color: rgba(255,255,255,0.88) !important; }

/* Why work with me */
.sp-why { display: grid; gap: 28px; align-items: start; }
.sp-about {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(13, 56, 128, 0.08);
  text-align: center;
}
.sp-alt .sp-about { background: var(--md-background, #F7F8FC); box-shadow: none; }
.sp-about-mark, .sp-about-photo {
  width: 112px; height: 112px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sp-about-photo { object-fit: cover; }
.sp-about-mark {
  background: linear-gradient(135deg, var(--sp-navy), var(--sp-teal));
  color: #fff; font-size: 3rem; font-weight: 800;
}
.sp-about h3 { font-size: 1.25rem; }
.sp-about > p { font-size: 0.95rem; margin-bottom: 14px; }
.sp-about ul { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 8px; }
.sp-about li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.95rem; color: var(--sp-ink-2); }
.sp-about li .sp-ic { color: var(--sp-teal); margin-top: 3px; }
.sp-reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.sp-reasons li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--sp-line); }
.sp-reasons li:first-child { border-top: 0; padding-top: 0; }

/* Engagement */
.sp-engage {
  display: flex; gap: 18px; align-items: flex-start;
  max-width: 900px;
  padding: 26px 28px;
  background: var(--sp-mint);
  border-radius: 22px;
}
.sp-engage .sp-ic-lg { color: var(--sp-teal); margin-top: 4px; }
.sp-engage h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.sp-engage p { margin: 0 0 10px; color: var(--sp-ink) !important; }
.sp-engage p:last-child { margin: 0; }

/* FAQ: opens and closes on click */
.sp-qa-list { max-width: 860px; display: grid; gap: 10px; }
.sp-qa { background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; }
.sp-alt .sp-qa { background: var(--md-background, #F7F8FC); }
.sp-qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.sp-qa summary::-webkit-details-marker { display: none; }
.sp-qa summary h3 { margin: 0; font-size: 1.05rem; }
.sp-chev { color: var(--sp-blue); transition: transform 0.25s ease; }
.sp-qa[open] .sp-chev { transform: rotate(180deg); }
.sp-qa[open] { border-color: var(--sp-blue); }
.sp-qa-body { padding: 0 20px 18px; }
.sp-qa-body p { max-width: 70ch; }

/* ---------- Final CTA ---------- */
.sp-final {
  position: relative;
  padding: 72px 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0D3880 0%, #1A56B0 60%, #0B8068 100%);
  overflow: clip;
}
.sp-final::before {
  content: "";
  position: absolute; right: -120px; top: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,87,0.22), rgba(255,200,87,0) 70%);
}
.sp-final .sp-container { position: relative; max-width: 780px; }
.sp-final h2 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.015em; color: #fff; margin: 0 0 12px; text-wrap: balance; }
.sp-final p { margin: 0 0 22px; color: rgba(255,255,255,0.92); }
.sp-final .sp-trust { justify-content: center; margin-top: 22px; }
.sp-related { margin: 28px 0 0 !important; font-size: 0.95rem; }
.sp-final a:not(.sp-btn) { color: #fff; }

/* ---------- Mobile sticky CTA ---------- */
.sp-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--sp-line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sp-sticky.is-on { transform: translateY(0); }
.sp-sticky .sp-btn { width: 100%; justify-content: center; box-shadow: none; }

/* Fallback + admin note */
.sp-fallback { padding-top: 40px; padding-bottom: 40px; max-width: 860px; }
.sp-admin-note { padding: 12px 14px; background: #FFF4E5; border: 1px solid #F5C77E; border-radius: 8px; font-size: 0.9rem; margin-bottom: 20px; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .sp-stats-bar { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .sp-stat { border-top: 0; border-left: 1px solid var(--sp-line); }
  .sp-stat:first-child { border-left: 0; }
  .sp-feature-grid { grid-template-columns: 1fr 1fr; }
  .sp-persona-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .sp-hero { padding: 56px 0 120px; }
  .sp-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .sp-hero-visual { margin: 0 0 0 auto; }
  .sp-toc { flex-wrap: wrap; overflow-x: visible; }
  .sp-section { padding: 84px 0; }
  .sp-split { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .sp-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .sp-persona-grid { grid-template-columns: repeat(4, 1fr); }
  .sp-why { grid-template-columns: 320px 1fr; gap: 56px; }
  .sp-about { position: sticky; top: calc(var(--nav-h, 68px) + 24px); }
  .sp-timeline { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .sp-timeline::before { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 3px; transform-origin: left; }
  .sp-js .sp-timeline::before { transform: scaleX(0); }
  .sp-js .sp-timeline.is-in::before { transform: scaleX(1); }
  .sp-step { padding-left: 0; padding-top: 68px; }
  .sp-step h3 { padding-top: 0; }
  .sp-sticky { display: none; }
}

/* ---------- Reduced motion: show everything, animate nothing ---------- */
@media (prefers-reduced-motion: reduce) {
  .sp-js .sp-v, .sp-js .sp-step { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .sp-js .sp-timeline::before { transform: none !important; transition: none !important; }
  .sp-btn, .sp-chev, .sp-sticky { transition: none !important; }
}

/* =====================================================================
   Master services page (page-services.php)
   ===================================================================== */

.sp-btn--ghost {
  background: transparent;
  color: #fff !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
}
.sp-btn--ghost:hover { background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 2px #fff; }
.sp-hero-cta--center { justify-content: center; margin-bottom: 0; }
.sp-final .sp-hero-cta { margin-bottom: 0; }

/* Who it's for: pills */
.sp-pills { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full, 100px);
  background: #fff;
  border: 1px solid var(--sp-line);
  font-weight: 600;
  color: var(--sp-ink);
}
.sp-pills .sp-ic { color: var(--sp-teal); }

/* AI search services: four linked cards */
.sp-ai-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.sp-ai-card {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  background: var(--md-background, #F7F8FC);
  border: 1px solid var(--sp-line);
}
.sp-ai-card:hover { border-color: var(--sp-blue); }
.sp-ai-card .sp-badge { margin-bottom: 14px; }
.sp-ai-card:nth-child(2) .sp-badge { background: var(--sp-mint); color: var(--sp-teal); }
.sp-ai-card:nth-child(3) .sp-badge { background: var(--sp-amber-soft); color: #9A6A00; }
.sp-ai-card:nth-child(4) .sp-badge { background: #EFE7FF; color: #5B3CC4; }
.sp-ai-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.sp-ai-card h3 a { color: var(--sp-navy); text-decoration: none; }
.sp-ai-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.sp-ai-card p { margin-bottom: 14px; }
.sp-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; position: relative; }
.sp-more .sp-ic { width: 1em; height: 1em; }

/* Service explorer: tabs on top (phones) or on the left (desktop) */
.sp-explorer { display: grid; gap: 20px; }
.sp-tablist { display: none; }
.sp-js .sp-tablist { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.sp-tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--sp-line);
  border-radius: var(--radius-full, 100px);
  background: #fff;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  color: var(--sp-ink-2);
  cursor: pointer;
  text-align: left;
}
.sp-tab .sp-badge { width: 34px; height: 34px; border-radius: 50%; }
.sp-tab .sp-badge .sp-ic { width: 18px; height: 18px; }
.sp-tab:hover { border-color: var(--sp-blue); }
.sp-tab[aria-selected="true"] { background: var(--sp-navy); border-color: var(--sp-navy); color: #fff; }
.sp-tab[aria-selected="true"] .sp-badge { background: rgba(255,255,255,0.16); color: var(--sp-amber); }
.sp-tab:focus-visible { outline: 3px solid var(--sp-teal); outline-offset: 2px; }

.sp-panels { display: grid; gap: 20px; }
.sp-hub-panel {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(13, 56, 128, 0.06);
}
.sp-js .sp-hub-panel { display: none; }
.sp-js .sp-hub-panel.is-active { display: block; animation: sp-fade 0.3s ease; }
@keyframes sp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sp-hub-panel .sp-panel-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; color: var(--sp-navy); margin: 0 0 12px; }
.sp-panel-intro { max-width: 70ch; margin: 0 0 22px !important; }
.sp-cols { display: grid; gap: 24px; margin-bottom: 26px; }
.sp-cols h4 { font-size: 1rem; font-weight: 700; color: var(--sp-ink); margin: 0 0 10px; }
.sp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sp-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--sp-ink-2); }
.sp-checks .sp-ic { color: var(--sp-teal); margin-top: 3px; width: 1.1em; height: 1.1em; }
.sp-kw { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-kw li { padding: 4px 12px; border-radius: var(--radius-full, 100px); background: var(--sp-sky); color: var(--sp-blue); font-size: 0.82rem; font-weight: 600; }

/* Me vs a typical agency */
.sp-compare { display: grid; gap: 16px; max-width: 980px; }
.sp-compare-col { padding: 26px 24px; border-radius: 22px; }
.sp-compare-col h3 { font-size: 1.2rem; margin-bottom: 16px; }
.sp-compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sp-compare-col li { display: flex; gap: 10px; align-items: flex-start; }
.sp-compare-col .sp-ic { margin-top: 3px; width: 1.1em; height: 1.1em; }
.sp-compare-agency { background: var(--md-background, #F7F8FC); border: 1px solid var(--sp-line); }
.sp-compare-agency li { color: var(--sp-ink-2); }
.sp-compare-agency .sp-ic { color: var(--md-error, #BA1A1A); }
.sp-compare-ankit { background: var(--sp-navy); }
.sp-compare-ankit h3 { color: #fff; }
.sp-compare-ankit li { color: rgba(255,255,255,0.94); }
.sp-compare-ankit .sp-ic { color: var(--sp-amber); }

@media (min-width: 640px) {
  .sp-ai-grid { grid-template-columns: 1fr 1fr; }
  .sp-cols { grid-template-columns: 1fr 1fr; }
  .sp-compare { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .sp-ai-grid { grid-template-columns: repeat(4, 1fr); }
  .sp-explorer { grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
  .sp-js .sp-tablist { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--nav-h, 68px) + 24px); }
  .sp-tab { border-radius: 16px; width: 100%; padding: 10px 14px 10px 10px; }
  .sp-hub-panel { padding: 34px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-js .sp-hub-panel.is-active { animation: none !important; }
}
