.spcase,
.spcase-home {
  --cs-navy: #13264e;
  --cs-purple: #5e17eb;
  --cs-green: #27a43f;
  --cs-muted: #60718d;
  color: var(--cs-navy);
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
}

.spcase *, .spcase *::before, .spcase *::after,
.spcase-home *, .spcase-home *::before, .spcase-home *::after { box-sizing: border-box; }
.spcase a, .spcase-home a { text-decoration: none; }

.spcase-home {
  padding: 88px 20px 100px;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}
.spcase-home__inner, .spcase-container { width: min(100%, 1200px); margin-inline: auto; }
.spcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--cs-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.spcase-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--cs-green); }
.spcase-home__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 28px; }
.spcase-home__head h2, .spcase-intro h2 {
  max-width: 730px;
  margin: 0;
  color: var(--cs-navy);
  font-size: clamp(31px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.spcase-home__head h2 span, .spcase-intro h2 span { color: var(--cs-purple); }
.spcase-home__head > p, .spcase-intro > p {
  max-width: 360px;
  margin: 0;
  color: var(--cs-muted);
  font-size: 14px;
  line-height: 1.7;
}
.spcase-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.spcase-filter {
  cursor: pointer;
  border: 1px solid #e1e7f0;
  border-radius: 999px;
  padding: 10px 17px;
  background: #fff;
  color: #344664;
  font: 700 13px/1.3 "Plus Jakarta Sans", sans-serif;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.spcase-filter:hover, .spcase-filter:focus-visible { color: var(--cs-purple); border-color: #cdb8fa; }
.spcase-filter[aria-pressed="true"] { color: #fff; border-color: var(--cs-purple); background: var(--cs-purple); box-shadow: 0 8px 17px rgba(94, 23, 235, .2); }
.spcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.spcase-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8edf4;
  border-radius: 22px;
  background: #fff;
  color: var(--cs-navy);
  box-shadow: 0 12px 31px rgba(19, 38, 78, .065);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.spcase-card:hover, .spcase-card:focus-visible { transform: translateY(-5px); border-color: #d7caf6; box-shadow: 0 24px 45px rgba(19, 38, 78, .13); }
.spcase-card[hidden] { display: none !important; }
.spcase-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 194px;
  overflow: hidden;
  padding: 12px;
  background: linear-gradient(135deg, #f1f4fb, #f7f2ff);
}
.spcase-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 6px 12px rgba(19,38,78,.13)); }
.spcase-card[data-group="ads"] .spcase-card__media::after,
.spcase-card[data-group="sales"] .spcase-card__media::after { content: ""; position: absolute; inset: 22% 34%; background: url('/wp-content/uploads/2026/05/logo-smartproviderr.png') center/contain no-repeat; opacity: .045; pointer-events: none; }
.spcase-card__type { position: absolute; top: 14px; left: 14px; border: 1px solid rgba(94,23,235,.1); border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,.94); color: var(--cs-purple); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.spcase-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 21px 21px; }
.spcase-card__category { color: #687b94; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.spcase-card h3 { margin: 8px 0 10px; color: var(--cs-navy); font-size: 19px; font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.spcase-card p { margin: 0 0 17px; color: #596c86; font-size: 12.5px; line-height: 1.62; }
.spcase-card__metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.spcase-card__metrics span { border: 1px solid #e5e2f0; border-radius: 999px; padding: 6px 10px; background: #faf8ff; color: #4c24a0; font-size: 10px; font-weight: 800; white-space: nowrap; }
.spcase-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; border-top: 1px solid #edf0f5; padding-top: 13px; color: var(--cs-purple); font-size: 12px; font-weight: 800; }
.spcase-card__foot span:last-child { font-size: 20px; line-height: 1; transition: transform .2s; }
.spcase-card:hover .spcase-card__foot span:last-child { transform: translate(3px,-3px); }
.spcase-more { display: inline-flex; align-items: center; gap: 11px; margin-top: 32px; border: 1px solid #d7c7ff; border-radius: 999px; padding: 14px 21px; background: #f3eeff; color: var(--cs-purple) !important; font-size: 13px; font-weight: 800; transition: transform .2s, background .2s; }
.spcase-more:hover { transform: translateY(-2px); background: #e8ddff; }
.spcase-classic { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; border: 1px solid #dcd0f8; border-radius: 22px; padding: 24px; background: linear-gradient(100deg,#f7f1ff,#fff); }
.spcase-classic h3 { margin: 0 0 6px; color: #13264e; font-size: 20px; }
.spcase-classic p { margin: 0; color: #62728b; font-size: 12px; line-height: 1.6; }
.spcase-classic a { flex: none; border-radius: 999px; padding: 12px 17px; background: #5e17eb; color: #fff; font-size: 12px; font-weight: 800; }

.spcase-hero {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  padding: 188px 20px 75px;
  background: #eef2fb url('/assets/agency-heroes/case-studies-hero.png') center/cover no-repeat;
}
.spcase-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(240,245,255,.94) 0%, rgba(243,246,255,.83) 42%, rgba(243,246,255,.30) 100%); }
.spcase-hero .spcase-container { position: relative; z-index: 1; }
.spcase-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 24px; color: #6b7892; font-size: 12px; font-weight: 700; }
.spcase-breadcrumb a { color: #4d5d7a; }
.spcase-breadcrumb a:hover { color: var(--cs-purple); }
.spcase-hero h1 { max-width: 930px; margin: 0; color: var(--cs-navy); font-size: clamp(37px, 5vw, 66px); font-weight: 800; line-height: 1.06; letter-spacing: -.055em; }
.spcase-hero__lede { max-width: 780px; margin: 22px 0 0; color: #455a77; font-size: clamp(15px, 1.45vw, 18px); line-height: 1.7; }
.spcase-label { display: inline-block; margin-bottom: 18px; border: 1px solid #d6c5ff; border-radius: 999px; padding: 7px 12px; background: rgba(255,255,255,.8); color: var(--cs-purple); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.spcase-main { padding: 66px 20px 108px; background: linear-gradient(180deg, #fff, #f7fafc); }
.spcase-intro { margin: 0 0 32px; }
.spcase-intro > p { max-width: 720px; margin-top: 14px; }
.spcase-trustnote { margin: 0 0 27px; border-left: 3px solid var(--cs-purple); border-radius: 0 10px 10px 0; padding: 12px 16px; background: #f7f3ff; color: #4b5470; font-size: 12px; line-height: 1.65; }
.spcase-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 0 0 32px; }
.spcase-metric { border: 1px solid #e8eaf3; border-radius: 19px; padding: 20px; background: #fff; box-shadow: 0 10px 26px rgba(19,38,78,.055); }
.spcase-metric strong { display: block; color: var(--cs-purple); font-size: clamp(22px,2.25vw,33px); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.spcase-metric span { display: block; margin-top: 8px; color: #62728b; font-size: 11px; font-weight: 700; line-height: 1.5; }
.spcase-story-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 30px; }
.spcase-story { min-width: 0; }
.spcase-panel { margin-bottom: 19px; border: 1px solid #e7ecf3; border-radius: 22px; padding: clamp(23px,3vw,36px); background: #fff; box-shadow: 0 10px 26px rgba(19,38,78,.04); }
.spcase-panel h2 { margin: 0 0 14px; color: var(--cs-navy); font-size: clamp(23px,2.35vw,31px); line-height: 1.2; font-weight: 800; letter-spacing: -.035em; }
.spcase-panel p { margin: 0 0 14px; color: #536782; font-size: 14px; line-height: 1.85; }
.spcase-panel p:last-child { margin-bottom: 0; }
.spcase-side { position: sticky; top: 24px; border: 1px solid #e3dbf5; border-radius: 22px; padding: 23px; background: linear-gradient(145deg,#f8f4ff,#fff); box-shadow: 0 12px 30px rgba(94,23,235,.07); }
.spcase-side h2 { margin: 0 0 15px; color: var(--cs-navy); font-size: 18px; font-weight: 800; }
.spcase-side p { margin: 0 0 12px; color: #596c86; font-size: 12px; line-height: 1.7; }
.spcase-side a { display: block; border-top: 1px solid #e6e0f0; padding: 12px 0; color: var(--cs-purple); font-size: 12px; font-weight: 800; line-height: 1.5; }
.spcase-side a:hover { text-decoration: underline; }
.spcase-evidence { margin: 28px 0; }
.spcase-evidence h2 { margin: 0 0 16px; color: var(--cs-navy); font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.spcase-evidence__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.spcase-evidence__grid:has(figure:only-child) { grid-template-columns: 1fr; }
.spcase-evidence figure { margin: 0; overflow: hidden; border: 1px solid #e1e7f0; border-radius: 18px; background: #fff; box-shadow: 0 12px 25px rgba(19,38,78,.055); }
.spcase-evidence figure a { position: relative; display: block; padding: 12px; background: #f5f7fb; }
.spcase-evidence figure img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.spcase-evidence figure a.spcase-evidence--results::after { content: ""; position: absolute; inset: 24% 29%; background: url('/wp-content/uploads/2026/05/logo-smartproviderr.png') center/contain no-repeat; opacity: .045; pointer-events: none; }
.spcase-evidence figcaption { padding: 12px 15px; color: #61728b; font-size: 11px; line-height: 1.6; }
.spcase-evidence figcaption strong { color: var(--cs-navy); }
.spcase-reading { margin-top: 35px; border: 1px solid #e3e8f2; border-radius: 22px; padding: 28px; background: #f9fbfd; }
.spcase-reading h2 { margin: 0 0 16px; color: var(--cs-navy); font-size: 23px; font-weight: 800; }
.spcase-reading p { margin: 0 0 10px; color: #566984; font-size: 12px; line-height: 1.8; }
.spcase-reading ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.spcase-reading a { display: inline-flex; border: 1px solid #d9cdf5; border-radius: 999px; padding: 9px 13px; background: #fff; color: var(--cs-purple); font-size: 11px; font-weight: 800; }
.spcase-reading a:hover { background: #f1eaff; }
.spcase-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; }
.spcase-next a { color: var(--cs-purple); font-size: 13px; font-weight: 800; }
.spcase-next a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .spcase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spcase-story-layout { grid-template-columns: 1fr; }
  .spcase-side { position: static; }
  .spcase-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .spcase-home { padding: 66px 16px 76px; }
  .spcase-home__head { display: block; }
  .spcase-home__head > p { margin-top: 14px; }
  .spcase-grid { grid-template-columns: 1fr; }
  .spcase-hero { min-height: 430px; padding: 152px 18px 55px; background-position: center; }
  .spcase-hero::before { background: rgba(244,247,255,.87); }
  .spcase-main { padding: 49px 16px 70px; }
  .spcase-metrics { gap: 9px; }
  .spcase-metric { padding: 15px; }
  .spcase-evidence__grid { grid-template-columns: 1fr; }
  .spcase-next { flex-direction: column; }
  .spcase-classic { display: block; }
  .spcase-classic a { display: inline-flex; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .spcase-card, .spcase-card__foot span:last-child, .spcase-filter, .spcase-more { transition: none; }
}
