/* ═══════════════════════════════════════════════════════
   KodeAjans Blog — Styles
   ═══════════════════════════════════════════════════════ */

:root {
  --primary-50: #eef4ff;
  --primary-100: #dbe7fd;
  --primary-200: #b6d2f9;
  --primary-300: #8ab7f2;
  --primary-400: #5b99e9;
  --primary-500: #2e79e2;
  --primary-600: #1e6ae1;
  --primary-700: #1757bd;
  --primary-800: #13408c;
  --primary-900: #0f2d62;

  --accent-400: #fbbf24;
  --accent-500: #f59e0b;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --bg: #ffffff;
  --bg-alt: var(--gray-50);
  --bg-dark: var(--gray-900);
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --border: var(--gray-200);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .12);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 90px;
}

/* ── Light blue scrollbar (site-wide) ── */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 106, 225, 0.4) #F7F9FC;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F7F9FC;
}

::-webkit-scrollbar-thumb {
  background: rgba(30, 106, 225, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 106, 225, 0.45);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input {
  font: inherit;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.highlight {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════
   BLOG NAVBAR
   ══════════════════════════════════════════ */
.site-nav {
  position: static;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

body.blog-site .site-nav,
body.no-sticky-header .site-nav {
  position: static;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color .25s var(--ease);
}

.site-nav-links a:hover,
.site-nav-links a.active,
.site-nav-links button.site-nav-trigger.active {
  color: var(--primary-600);
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--primary-600);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.site-nav-cta:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Services dropdown */
.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown > a,
.site-nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav-dropdown > button {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: color .25s var(--ease);
}

.site-nav-dropdown:hover > a,
.site-nav-dropdown:hover > button,
.site-nav-dropdown:focus-within > a,
.site-nav-dropdown:focus-within > button {
  color: var(--primary-600);
}

.site-nav-dropdown .caret {
  width: 14px;
  height: 14px;
  transition: transform .25s var(--ease);
}

.site-nav-dropdown:hover .caret,
.site-nav-dropdown:focus-within .caret {
  transform: rotate(180deg);
}

.site-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 1001;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu,
.site-nav-dropdown:focus-within .site-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}

.site-nav-dropdown-menu a:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.site-nav-dropdown-sep {
  display: block;
  height: 1px;
  background: var(--gray-200);
  margin: 6px 8px;
}

/* Mega menu */
.site-nav-mega {
  min-width: 740px;
  padding: 14px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.mega-grid a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
}

.mega-grid a:hover {
  background: var(--primary-50);
}

.mega-item-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-600);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}

.mega-item-icon svg {
  width: 18px;
  height: 18px;
}

.mega-grid a:hover .mega-item-icon {
  background: var(--primary-100);
  color: var(--primary-700);
}

.mega-item-text {
  min-width: 0;
}

.mega-item-title {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}

.mega-item-desc {
  display: block;
  font-size: .74rem;
  line-height: 1.45;
  color: var(--gray-500);
}

.mega-grid a:hover .mega-item-title {
  color: var(--primary-700);
}

@media (max-width: 1024px) {
  .site-nav-mega {
    min-width: 580px;
  }

  .mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-nav-mega {
    min-width: 0;
    padding: 4px 6px;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mega-grid a {
    padding: 10px 12px;
  }
}

@media (max-width: 1280px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav-mega {
    min-width: 0;
  }

  .mega-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav-cta {
    display: none;
  }
}

@media (max-width: 1280px) {
  .site-nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .16);
    padding: 12px 20px 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }

  .site-nav.is-open .site-nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-nav-links > a {
    display: block;
    padding: 14px 8px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--gray-800);
    border-radius: 10px;
  }

  .site-nav-links > a:hover,
  .site-nav-links > a.active,
  .site-nav-links > button.site-nav-trigger.active {
    background: var(--primary-50);
    color: var(--primary-700);
  }

  .site-nav-dropdown {
    position: static;
  }

  .site-nav-dropdown > button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 8px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--gray-800);
    border-radius: 10px;
  }

  .site-nav-dropdown > button:hover {
    background: var(--primary-50);
    color: var(--primary-700);
  }

  .site-nav-dropdown:hover .caret,
  .site-nav-dropdown:focus-within .caret {
    transform: none;
  }

  .site-nav-dropdown.is-open .caret {
    transform: rotate(180deg);
  }

  .site-nav-dropdown-menu {
    display: none;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    background: var(--gray-50);
    border: none;
    border-radius: 14px;
    box-shadow: none;
    padding: 6px 8px;
    margin: 4px 0 10px;
    opacity: 1;
    visibility: visible;
  }

  .site-nav-dropdown.is-open .site-nav-dropdown-menu {
    display: block;
  }

  .site-nav-dropdown:hover .site-nav-dropdown-menu,
  .site-nav-dropdown:focus-within .site-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav-dropdown-menu a {
    display: block;
    padding: 11px 12px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 8px;
  }

  .site-nav-dropdown-menu a:hover {
    background: #ffffff;
    color: var(--primary-700);
  }
}

/* ══════════════════════════════════════════
   PAGE HERO (Banner)
   ══════════════════════════════════════════ */
.blog-hero {
  background: linear-gradient(165deg, #eff6ff 0%, #ffffff 50%, #eef4ff 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--primary-100);
  filter: blur(90px);
  opacity: .5;
  top: -140px;
  right: -120px;
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero-inner {
  max-width: 760px;
}

.blog-hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 100px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 620px;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  font-size: .85rem;
  color: var(--gray-500);
}

/* ══════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════ */
.breadcrumbs {
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: .82rem;
  color: var(--gray-500);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gray-300);
}

.breadcrumbs a:hover {
  color: var(--primary-600);
}

.breadcrumbs [aria-current="page"] {
  color: var(--gray-800);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   BLOG LAYOUT (listing)
   ══════════════════════════════════════════ */
.blog-layout {
  padding: 56px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

/* ── Search box ── */
.blog-search {
  position: relative;
  display: block;
  margin-bottom: 40px;
}

.blog-search input {
  width: 100%;
  padding: 15px 18px 15px 50px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  background: #fff;
  font-size: .95rem;
  color: var(--gray-800);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.blog-search input::placeholder {
  color: var(--gray-400);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px var(--primary-50);
}

.blog-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.search-results-count {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--gray-400);
  min-height: 18px;
}

/* ── Filter chips ── */
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-400);
  margin-right: 4px;
}

.chip {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all .25s var(--ease);
}

.chip:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
}

.chip.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 106, 225, .3);
}

/* ── Blog cards grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 760px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--primary-600);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  color: var(--gray-400);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.blog-card-title a {
  transition: color .25s var(--ease);
}

.blog-card:hover .blog-card-title a,
.blog-card-title a:hover {
  color: var(--primary-600);
}

.blog-card-excerpt {
  font-size: .92rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-card-author img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  box-sizing: border-box;
  padding: 4px;
  background: #ffffff;
  border: 2px solid var(--primary-600);
  border-radius: 50%;
}

.blog-card-author span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-600);
  transition: gap .25s var(--ease);
  cursor: pointer;
}

.read-more:hover {
  gap: 10px;
}

/* Empty state */
.no-results {
  display: none;
  text-align: center;
  padding: 60px 24px;
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-500);
}

.no-results.visible {
  display: block;
}

.no-results svg {
  margin: 0 auto 16px;
  color: var(--gray-300);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all .25s var(--ease);
}

.pagination a:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
}

.pagination .active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

.pagination .disabled {
  opacity: .4;
  pointer-events: none;
}

/* ── Sidebar widgets ── */
.widget {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px;
}

.widget h3 {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-900);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-100);
}

.widget-cat-list li {
  margin-bottom: 4px;
}

.widget-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all .25s var(--ease);
}

.widget-cat-list a:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.widget-cat-list a.is-empty {
  opacity: .45;
  pointer-events: none;
}

.widget-cat-list .count {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 9px;
  border-radius: 100px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all .25s var(--ease);
}

.tag:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.widget-cta {
  background: #eef4ff;
  border: 1px solid #dbe7fd;
  color: var(--gray-800);
  text-align: center;
}

.widget-cta h3 {
  color: var(--gray-900);
  border-color: rgba(15, 23, 42, .1);
}

.widget-cta p {
  font-size: .92rem;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.widget-cta .btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 106, 225, .35);
}

/* ══════════════════════════════════════════
   SINGLE POST LAYOUT
   ══════════════════════════════════════════ */
.post-layout {
  padding: 40px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

/* Right column: TOC + SEO audit */
.post-sidebar {
  position: sticky;
  top: 20px;
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

/* ── TOC sidebar ── */
.post-toc {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.post-toc h4 {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.post-toc nav {
  border-left: 2px solid var(--gray-100);
  padding-left: 16px;
}

.post-toc a {
  display: block;
  font-size: .86rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: 5px 0;
  line-height: 1.45;
  transition: color .2s var(--ease);
}

.post-toc a:hover {
  color: var(--primary-600);
}

.post-toc a.active {
  color: var(--primary-600);
  font-weight: 700;
}

.post-toc a.is-h3 {
  padding-left: 14px;
  font-size: .8rem;
}

/* ── Mobile: collapsible Table of Contents (default closed) ── */
@media (max-width: 1024px) {
  .post-toc h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    user-select: none;
    cursor: pointer;
  }

  .post-toc h4::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gray-500);
    border-bottom: 2px solid var(--gray-500);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform .25s var(--ease);
  }

  .post-toc nav {
    display: none;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
  }

  .post-toc.is-open nav {
    display: block;
  }

  .post-toc.is-open h4::after {
    transform: rotate(225deg);
  }

  .post-toc h4 {
    transition: color .2s var(--ease);
  }

  .post-toc h4:hover {
    color: var(--primary-600);
  }

  .post-toc h4:hover::after {
    border-color: var(--primary-600);
  }
}

/* ── Share (icon row below article) ── */
.post-share-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.post-share-bottom .share-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.share-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-500);
  transition: all .25s var(--ease);
}

.share-btn:hover {
  color: #fff;
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 106, 225, .3);
}

.share-btn[data-share="twitter"]:hover,
.share-btn[data-share="x"]:hover {
  background: #111;
  border-color: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.share-btn[data-share="facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 6px 16px rgba(24, 119, 242, .32);
}

.share-btn[data-share="linkedin"]:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 6px 16px rgba(10, 102, 194, .32);
}

/* ── SEO audit card ── */
.audit-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: #eef4ff;
  border: 1px solid #dbe7fd;
  color: var(--gray-800);
  text-align: center;
}

.audit-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.audit-card p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 18px;
}

.audit-card .btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 106, 225, .35);
}

/* ── Post article ── */
.post-article {
  min-width: 0;
}

.post-header {
  margin-bottom: 36px;
}

.post-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .85rem;
  color: var(--gray-500);
}

.post-author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-mini img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  box-sizing: border-box;
  padding: 5px;
  background: #ffffff;
  border: 2px solid var(--primary-600);
  border-radius: 50%;
}

.post-author-mini .pa-name {
  font-weight: 700;
  color: var(--gray-800);
}

.post-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-size: .76rem;
  font-weight: 600;
  color: var(--gray-600);
}

.pill svg {
  color: var(--primary-500);
}

.post-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  flex-shrink: 0;
}

.post-cover figcaption {
  padding: 12px 16px;
  font-size: .78rem;
  color: var(--gray-400);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  order: 2;
}

/* ── Article prose ── */
.post-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--gray-700);
}

.post-body > * + * {
  margin-top: 1.4em;
}

.post-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-top: 2.2em;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.post-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 1.8em;
  scroll-margin-top: 100px;
}

.post-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 1.6em;
}

.post-body p {
  margin-top: 1.4em;
}

.post-body ul,
.post-body ol {
  margin-top: 1.4em;
  padding-left: 1.4em;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: .6em;
}

.post-body li::marker {
  color: var(--primary-500);
}

.post-body blockquote {
  margin-top: 1.8em;
  padding: 24px 28px;
  border-left: 4px solid var(--primary-500);
  background: var(--primary-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--gray-700);
}

.post-body blockquote p {
  margin-top: 0;
}

.post-body a {
  color: var(--primary-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary-200);
  text-underline-offset: 3px;
}

.post-body a:hover {
  text-decoration-color: var(--primary-600);
}

.post-body img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.post-body code {
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.post-body pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.7;
}

/* Light-blue mobile-friendly variant (scope/offer breakdown) */
.post-body pre.scope-note {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--gray-800);
  overflow-x: visible;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1rem;
  line-height: 1.8;
}

.post-body pre.scope-note code {
  background: none;
  white-space: pre-wrap;
}

.post-body pre.scope-note .sn-head {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--primary-200);
  color: var(--primary-700);
  font-weight: 700;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.post-body th,
.post-body td {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.post-body th {
  background: var(--primary-50);
  color: var(--gray-800);
  font-weight: 700;
}

.callout {
  display: flex;
  gap: 14px;
  margin-top: 1.8em;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-200);
  background: var(--primary-50);
}

.callout svg {
  flex-shrink: 0;
  color: var(--primary-600);
  margin-top: 2px;
}

.callout strong {
  color: var(--gray-900);
}

.callout p {
  margin-top: 0;
}

/* ── Interactive checklist ── */
.post-body .checklist {
  list-style: none;
  margin: 1.8em 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.post-body .checklist li {
  margin: 0;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.post-body .checklist li:hover {
  border-color: var(--primary-300);
  background: #fff;
}

.post-body .checklist label {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
}

.post-body .checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid var(--gray-300);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}

.post-body .checklist input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform .2s var(--ease);
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.post-body .checklist input[type="checkbox"]:checked {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.post-body .checklist input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.post-body .checklist label:has(input:checked) {
  text-decoration: line-through;
  color: var(--gray-400);
}

/* ── Responsive table wrapper ── */
.table-wrap {
  overflow-x: auto;
  margin-top: 1.8em;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  margin: 0;
  min-width: 480px;
}

.table-wrap th,
.table-wrap td {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .table-wrap table {
    min-width: 0;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
  }

  .table-wrap td {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    white-space: normal;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-bottom: 1px solid var(--gray-100);
  }

  .table-wrap tr td:first-child {
    justify-content: flex-start;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 700;
    color: var(--gray-800);
  }

  .table-wrap tr td:last-child {
    border-bottom: none;
  }

  .table-wrap td:not(:first-child)::before {
    content: attr(data-label) ":";
    flex-shrink: 0;
    margin-right: 2px;
    font-weight: 600;
    color: var(--gray-500);
  }

  .table-wrap td:not(:first-child) .val {
    flex: 1;
    min-width: 0;
    text-align: left;
  }


  /* Stacked mobile table: label above value, left aligned */
  .table-wrap.tbl-stack td {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .table-wrap.tbl-stack td:not(:first-child)::before {
    margin-right: 0;
    color: var(--gray-500);
  }
  .table-wrap.tbl-stack td:not(:first-child) .val {
    text-align: left;
  }
  /* Marketing table: label column left (aligned) + value right */
  .table-wrap.tbl-lr td:not(:first-child) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .table-wrap.tbl-lr td:not(:first-child)::before {
    width: 150px;
    flex-shrink: 0;
    margin-right: 0;
  }

  .table-wrap.tbl-lr td:not(:first-child) .val {
    flex: 1;
    min-width: 0;
    text-align: right;
  }
}

/* ── Key takeaway box (accent) ── */
.key-takeaway {
  margin-top: 1.8em;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-50), #fff);
  border: 1px solid var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.key-takeaway > :first-child {
  margin-top: 0;
}

/* ── End-of-post CTA box ── */
.post-cta {
  position: relative;
  overflow: hidden;
  margin-top: 2.4em;
  padding: 46px 42px;
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, .16), transparent 55%),
    radial-gradient(ellipse at 92% 100%, rgba(255, 255, 255, .12), transparent 50%),
    linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.post-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: .35;
  pointer-events: none;
}

.post-cta h3 {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.post-cta p {
  position: relative;
  margin: 0 auto 24px;
  max-width: 560px;
  color: rgba(255, 255, 255, .85);
}

.post-cta .btn {
  position: relative;
}

.post-cta a {
  text-decoration: none;
}

.post-cta a:hover {
  text-decoration: none;
}

@media (max-width: 640px) {
  .post-cta {
    padding: 32px 22px;
  }

  .post-cta h3 {
    font-size: 1.3rem;
  }

  .post-cta .btn {
    white-space: normal;
    padding: 14px 24px;
    line-height: 1.4;
    text-align: center;
    max-width: 100%;
  }
}

/* ── Grid list: check tiles ── */
.post-body .check-grid,
.post-body .num-grid {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Single-column variant: each item stays on its own full line */
.post-body .check-grid.stack-1 {
  grid-template-columns: 1fr;
}

.post-body .check-grid li,
.post-body .num-grid li {
  margin: 0;
  padding: 13px 15px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 11px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.post-body .check-grid li:hover,
.post-body .num-grid li:hover {
  border-color: var(--primary-300);
  background: #fff;
  transform: translateY(-1px);
}

.post-body .check-grid li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.post-body .check-grid li a {
  font-weight: 600;
}

/* ── Grid list: numbered steps ── */
.post-body .num-grid {
  counter-reset: step;
}

/* Single-column variant: each step stays on its own full line */
.post-body .num-grid.stack-1 {
  grid-template-columns: 1fr;
}

.post-body .num-grid li {
  position: relative;
  padding-left: 56px;
  counter-increment: step;
}

.post-body .num-grid li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-300);
}

/* ── List style ── */
.post-body .chip-list {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-body .chip-list li {
  margin: 0;
  padding: 9px 17px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 100px;
  font-weight: 600;
  color: var(--primary-700);
}

.post-body .chip-list li a {
  color: var(--primary-700);
}

/* ── Feature tiles grid (services) ── */
.post-body .feature-tiles {
  list-style: none;
  margin: 1.6em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.post-body .feature-tiles li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--primary-500);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-900);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.post-body .feature-tiles li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-300);
  border-left-color: var(--primary-600);
}

.post-body .feature-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-700);
  margin-top: 1px;
}

.post-body .feature-tiles li:hover .feature-badge {
  background: var(--primary-500);
  color: #fff;
}

.post-body .feature-tiles a {
  color: var(--gray-900);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.post-body .feature-tiles a:hover {
  color: var(--primary-700);
  border-bottom-color: var(--primary-300);
}

/* ── List style: arrows with separators ── */
.post-body .arrow-list {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
}

.post-body .arrow-list li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed var(--gray-200);
  font-weight: 500;
  color: var(--gray-700);
}

.post-body .arrow-list li::before {
  content: "→";
  position: absolute;
  left: 2px;
  top: 10px;
  color: var(--primary-600);
  font-weight: 700;
}

.post-body .arrow-list li:last-child {
  border-bottom: none;
}

/* ── List style: stacked cards ── */
.post-body .card-list,
.post-body .card-grid {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.post-body .card-grid,
.post-body .card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Marketing post: agency fit list (label + description rows) ── */
.post-body .agency-fit-list {
  list-style: none;
  margin: 1.6em 0 0;
  padding: 0;
  border-top: 1px solid var(--gray-200);
}

.post-body .agency-fit-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--gray-100);
}

.post-body .agency-fit-list .fit-label {
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.55;
}

.post-body .agency-fit-list li p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.6;
}

@media (max-width: 620px) {
  .post-body .agency-fit-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.post-body .card-list li,
.post-body .card-grid li {
  margin: 0;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.post-body .card-list li::before,
.post-body .card-grid li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: .82rem;
  font-weight: 700;
}

.post-body .card-list li:hover,
.post-body .card-grid li:hover {
  border-color: var(--primary-300);
}

/* ── List style: warning tiles (problems) ── */
.post-body .cross-grid {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.post-body .cross-grid li {
  margin: 0;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff5f5;
  border: 1px solid #f3c9cc;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--gray-700);
}

.post-body .cross-grid li::before {
  content: "✕";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -2px;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Tags under post ── */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.post-tags .label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-400);
}

/* ── Author box ── */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.post-author-box img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  box-sizing: border-box;
  padding: 8px;
  background: #ffffff;
  border: 2px solid var(--primary-600);
  border-radius: 50%;
  flex-shrink: 0;
}

.post-author-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.post-author-box .pa-role {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 8px;
}

.post-author-box p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .post-author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Prev/Next ── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}

@media (max-width: 560px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all .3s var(--ease);
}

.post-nav a:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-nav .nav-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-400);
}

.post-nav .nav-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-800);
}

.post-nav .next {
  text-align: right;
}

/* ── Related posts ── */
.related-section {
  padding: 64px 0 90px;
  background: var(--bg-alt);
  border-top: 1px solid var(--gray-100);
}

.related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.related-header h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.related-header a {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary-600);
}

@media (max-width: 600px) {
  .related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CTA band ── */
.blog-cta {
  background: #f3f6fa;
  padding: 72px 0;
}

.blog-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.blog-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.blog-cta p {
  font-size: 1.02rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 100px;
  transition: all .3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 106, 225, .35);
  padding: 16px 36px;
  font-size: 1.02rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 106, 225, .45);
}

.btn-light {
  background: #fff;
  color: var(--primary-700);
  padding: 14px 28px;
  font-size: .95rem;
}

.btn-light:hover {
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, .08);
  padding: 44px 0 28px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 36px;
}

.site-footer-grid--five {
  grid-template-columns: repeat(5, 1fr);
}

.site-footer-solutions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 36px;
}

@media (max-width: 1024px) {
  .site-footer-grid,
  .site-footer-solutions {
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .site-footer-solutions {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .site-footer-solutions {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer-brand p {
  font-size: .88rem;
  color: var(--gray-600);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 300px;
}

.site-footer-brand img {
  height: 30px;
}

.site-footer-support {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  max-width: 300px;
}

.site-footer-support .support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--primary-600);
  color: #fff;
}

.site-footer-support .support-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-footer-support .support-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}

.site-footer-support .support-mail {
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  word-break: break-word;
}

.site-footer-support .support-mail:hover {
  text-decoration: underline;
}

.site-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.site-footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--gray-600);
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}

.site-footer-social .social-icon:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer h4 {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.site-footer-links li {
  margin-bottom: 10px;
}

.site-footer-links a {
  font-size: .88rem;
  color: var(--gray-600);
  transition: color .2s var(--ease);
}

.site-footer-links a:hover {
  color: var(--primary-600);
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.site-footer-bottom p {
  font-size: .8rem;
  color: var(--gray-600);
}

.footer-legal {
  display: flex;
  align-items: center;
}

.footer-legal a {
  font-size: .8rem;
  color: var(--gray-600);
}

.footer-legal a + a::before {
  content: '|';
  margin: 0 14px;
  color: var(--gray-400);
}

.footer-legal a:hover {
  color: var(--primary-600);
}

/* =========================================
   OUR SERVICES
   ========================================= */

.services-tags {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.services-tags-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #344054;
}

.services-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #98a2b3;
  border-radius: 999px;
  background: transparent;
  color: #344054;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.service-tag:hover,
.service-tag:focus-visible {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 106, 225, 0.18);
}

@media (max-width: 600px) {
  .services-tags {
    margin-top: 40px;
    padding-top: 24px;
  }

  .services-tags-list {
    gap: 8px;
  }

  .service-tag {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 999;
}

.scroll-top:hover {
  background: var(--primary-700);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

/* ── Mobile: collapse all post card grids to one column ── */
@media (max-width: 560px) {
  .post-body .check-grid,
  .post-body .num-grid,
  .post-body .cross-grid,
  .post-body .card-grid,
  .post-body .card-list,
  .post-body .feature-tiles {
    grid-template-columns: 1fr;
  }

  .post-body .chip-list {
    flex-direction: column;
    align-items: stretch;
  }

  .post-body .chip-list li {
    width: 100%;
    text-align: center;
  }

  .blog-cta h2 {
    white-space: normal;
  }
}

/* ══════════════════════════════════════════
   SUBPAGES (service / pricing / contact)
   ══════════════════════════════════════════ */

.page-hero {
  background: linear-gradient(165deg, #eff6ff 0%, #ffffff 55%, #eef4ff 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero .container {
  max-width: 760px;
}

.page-hero--compact {
  padding: 56px 0 48px;
}

.page-hero--compact h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 999px;
  color: var(--primary-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.page-section {
  padding: 84px 0;
}

.page-section--alt {
  background: #f6f9fd;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.page-section-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 999px;
  color: var(--primary-700);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Service feature cards */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  border-color: var(--primary-300);
}

.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-600);
  margin-bottom: 18px;
}

.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.svc-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Benefits checklist */
.benefit-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
}

.benefit-list li {
  position: relative;
  padding-left: 28px;
  font-size: .96rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6ae1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.benefit-list strong {
  color: var(--gray-900);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 26px;
}

.step-num {
  display: inline-flex;
  align-self: flex-start;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Pricing page */
.price-hero {
  background: linear-gradient(165deg, #eff6ff 0%, #ffffff 55%, #eef4ff 100%);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.price-hero .container {
  max-width: 760px;
}

.price-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.price-hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 30px;
}

.price-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto 48px;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.price-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-600);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.price-toggle-btn.is-active {
  background: var(--primary-600);
  color: #fff;
}

.price-save {
  font-size: .72rem;
  font-weight: 700;
  background: #dcfce7;
  color: #16a34a;
  padding: 3px 9px;
  border-radius: 999px;
}

.price-toggle-btn.is-active .price-save {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 28px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .1);
}

.price-card.is-popular {
  border: 2px solid var(--primary-600);
  box-shadow: 0 20px 50px rgba(30, 106, 225, .18);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.price-card-head p {
  font-size: .88rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-amount .currency {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
}

.price-amount .price-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-amount .period {
  font-size: .95rem;
  color: var(--gray-500);
  font-weight: 600;
}

.price-note {
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.price-features {
  list-style: none;
  margin: 0 0 26px;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 26px;
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 10px;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6ae1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

.price-card .btn-light {
  background: #f1f5f9;
}

.price-card .btn {
  justify-content: center;
}

.price-guarantee {
  text-align: center;
  font-size: .9rem;
  color: var(--gray-600);
  margin-top: 40px;
  padding: 16px 20px;
  background: #f6f9fd;
  border: 1px dashed var(--primary-300);
  border-radius: 14px;
}

.price-faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s var(--ease);
}

.price-faq-item[open] {
  border-color: var(--primary-300);
}

.price-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
}

.price-faq-item summary::-webkit-details-marker {
  display: none;
}

.price-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-600);
  line-height: 1;
  transition: transform .25s var(--ease);
}

.price-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.price-faq-item p {
  padding: 0 22px 20px;
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: stretch;
}

.contact-form h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-form > p {
  font-size: .95rem;
  color: var(--gray-600);
  margin-bottom: 26px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: .94rem;
  color: var(--gray-900);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  justify-content: center;
  width: 100%;
}

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-600);
}

.info-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.info-card a,
.info-card span:not(.info-label) {
  font-size: .92rem;
  font-weight: 600;
  color: var(--gray-800);
}

.info-card a:hover {
  color: var(--primary-600);
}

/* Subpage responsive */
@media (max-width: 900px) {
  .svc-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-section {
    padding: 60px 0;
  }

  .svc-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .price-toggle-btn {
    padding: 9px 16px;
    font-size: .84rem;
  }
}

/* ── Lead magnet: interactive checklist ── */

.interactive-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.checklist-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(12, 22, 38, .04);
}

.checklist-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.checklist-card-head .checklist-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-content: center;
  color: var(--primary-600);
  background: var(--primary-50);
}

.checklist-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}

.checklist-card-count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-500);
}

.checklist-card ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.checklist-card li {
  margin: 0;
  border-bottom: 1px dashed var(--gray-200);
}

.checklist-card li:last-child {
  border-bottom: none;
}

.checklist-card label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.45;
}

.checklist-card label small {
  display: block;
  margin-top: 2px;
  color: var(--gray-400);
  font-weight: 400;
  line-height: 1.4;
}

.checklist-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--gray-300);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}

.checklist-card input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform .2s var(--ease);
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checklist-card input[type="checkbox"]:checked {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.checklist-card input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.checklist-card label:has(input:checked) {
  text-decoration: line-through;
  color: var(--gray-400);
}

.checklist-progress {
  position: sticky;
  top: 84px;
  z-index: 5;
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(12, 22, 38, .05);
}

.checklist-progress-text {
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
}

.checklist-progress-bar {
  flex: 1;
  min-width: 160px;
  height: 10px;
  border-radius: 99px;
  background: var(--gray-100);
  overflow: hidden;
}

.checklist-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  transition: width .3s var(--ease);
}

.checklist-reset {
  font-weight: 600;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.checklist-reset:hover {
  background: var(--primary-100);
}

@media (max-width: 900px) {
  .interactive-checklist {
    grid-template-columns: 1fr;
  }
}

.checklist-verdict {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(120deg, var(--primary-50), #fff 55%);
  border: 1px solid var(--primary-100);
  border-radius: 18px;
  padding: 24px 28px;
}

.checklist-verdict-score {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.checklist-verdict-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1;
}

.checklist-verdict-total,
.checklist-verdict-pct {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
}

.checklist-verdict-body {
  min-width: 0;
}

.checklist-verdict-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
}

.checklist-verdict-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
}

.checklist-verdict p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: .97rem;
}

@media (max-width: 640px) {
  .checklist-verdict {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 18px;
  }
}

/* ── Question cards: questions to ask an agency ── */
.post-body .qa-list {
  list-style: none;
  margin: 1.6em 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: qa;
}

.post-body .qa-list li {
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 68px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary-500);
  border-radius: 14px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.6;
  counter-increment: qa;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.post-body .qa-list li:hover {
  background: #fff;
  border-color: var(--primary-200);
  transform: translateX(4px);
}

.post-body .qa-list li::before {
  content: counter(qa);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ── Verified checklist: items with green check circles ── */
.post-body .con-list {
  list-style: none;
  margin: 1.6em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Single-column variant: each item stays on its own full line */
.post-body .con-list.stack-1 {
  grid-template-columns: 1fr;
}

@media (max-width: 600px) {
  .post-body .con-list {
    grid-template-columns: 1fr;
  }
}

.post-body .con-list li {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.55;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

/* Fixed title width so descriptions align on the same vertical line */
.post-body .con-list li strong {
  flex: 0 0 160px;
  font-weight: 700;
  color: var(--gray-900);
}

/* Description fills the remaining width on the same row (web) */
.post-body .con-list li span {
  flex: 1 1 0;
  min-width: 240px;
}

.post-body .con-list li:hover {
  border-color: #9dd6bd;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.post-body .con-list li::before {
  content: "✓";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #dff4e8;
  color: #1a7f4e;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

/* Plain single-column variant: no card frame, keeps green check */
.post-body .con-list.plain,
.post-body .con-list.plain li {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.post-body .con-list.plain li {
  padding: 4px 0;
  font-weight: 500;
}

.post-body .con-list.plain li:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.post-body .con-list.plain li {
  flex-wrap: nowrap;
}

.post-body .con-list.plain li span {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 600px) {
  /* Mobile: title on its own line, description below it */
  .post-body .con-list li strong {
    flex: 0 0 auto;
  }

  .post-body .con-list li span {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ── Tables: keep the period column on a single line ── */
.post-body table td:first-child {
  white-space: nowrap;
}

/* Service feature card: mini dashboard visual */
.svc-visual {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.svc-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Pricing plan comparison */
.compare-area {
  margin-top: 42px;
}
.compare-wrap {
  margin-top: 8px;
}
.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  font-size: .9rem;
}
.compare-table th {
  background: var(--gray-50);
  color: var(--gray-800);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
}
.compare-table th.is-popular {
  background: var(--primary-600);
  color: #fff;
}
.compare-table td.is-popular {
  background: var(--primary-50);
}
.compare-table tbody tr:hover td {
  background: #fbfcfe;
}
.compare-table tbody tr:hover td.is-popular {
  background: var(--primary-50);
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table .yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compare-table .no {
  color: var(--gray-400);
  font-weight: 600;
}
.compare-table .level {
  display: inline-block;
  color: var(--primary-700);
  font-weight: 700;
  font-size: .78rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 3px 11px;
  border-radius: 999px;
}

/* Mobile: comparison table scrolls horizontally */
@media (max-width: 760px) {
  .compare-scroll {
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
}

/* Integration page extras */
.int-lead {
  max-width: 780px;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Integration category tabs */
.int-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.int-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gray-700);
  border-radius: 999px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.int-tab:hover {
  border-color: var(--primary-300);
  color: var(--primary-700);
}
.int-tab.is-active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 106, 225, .22);
}
.int-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: .72rem;
  font-weight: 700;
}
.int-tab.is-active .int-tab-count {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.int-panels {
  margin-top: 6px;
}
.int-panel[hidden] {
  display: none;
}
.int-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.int-panel ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--gray-100);
  font-weight: 500;
  font-size: .88rem;
  color: var(--gray-700);
  white-space: nowrap;
}
.int-panel ul li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e3f3ea;
  color: #1a7f4e;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
}

.int-select {
  display: none;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 20px;
  border: 1.5px solid var(--primary-300);
  border-radius: 12px;
  background: #fff;
  color: var(--gray-800);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  appearance: auto;
}
@media (max-width: 600px) {
  .int-select {
    display: block;
  }
  .int-tabs {
    display: none;
  }
}

/* Plain numbered list (1., 2., 3. ...) */
.post-body .plain-steps {
  margin: 1.4em 0 0;
  padding-left: 1.6em;
}
.post-body .plain-steps li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Blog cards: keep titles & excerpts aligned across a row */
.blog-card-title {
  min-height: calc(1.22rem * 1.35 * 3);
}



/* Force horizontal scroll on mobile instead of card layout */
.table-wrap.tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
.table-wrap.tbl-scroll table {
  min-width: 520px;
}
@media (max-width: 760px) {
  .table-wrap.tbl-scroll {
    overflow: visible;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
  }
  .table-wrap.tbl-scroll table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .table-wrap.tbl-scroll th:first-child,
  .table-wrap.tbl-scroll td:first-child {
    width: 40%;
    white-space: normal;
  }
  .table-wrap.tbl-scroll th:not(:first-child),
  .table-wrap.tbl-scroll td:not(:first-child) {
    width: 60%;
    white-space: normal;
  }

  .table-wrap.tbl-scroll.tbl-3070 th:first-child,
  .table-wrap.tbl-scroll.tbl-3070 td:first-child {
    width: 30%;
    white-space: normal;
  }
  .table-wrap.tbl-scroll.tbl-3070 th:not(:first-child),
  .table-wrap.tbl-scroll.tbl-3070 td:not(:first-child) {
    width: 70%;
    white-space: normal;
  }

  .table-wrap.tbl-scroll.tbl-metrics th:nth-child(1),
  .table-wrap.tbl-scroll.tbl-metrics td:nth-child(1) {
    width: 26%;
    white-space: normal;
  }
  .table-wrap.tbl-scroll.tbl-metrics th:nth-child(2),
  .table-wrap.tbl-scroll.tbl-metrics td:nth-child(2) {
    width: 44%;
    white-space: normal;
  }
  .table-wrap.tbl-scroll.tbl-metrics th:nth-child(3),
  .table-wrap.tbl-scroll.tbl-metrics td:nth-child(3) {
    width: 30%;
    white-space: normal;
  }

  .table-wrap.tbl-scroll.tbl-equal th,
  .table-wrap.tbl-scroll.tbl-equal td {
    width: auto;
  }
  .table-wrap.tbl-scroll thead {
    display: table-header-group;
  }
  .table-wrap.tbl-scroll tr {
    display: table-row;
  }
  .table-wrap.tbl-scroll td,
  .table-wrap.tbl-scroll th {
    display: table-cell;
    white-space: normal;
    vertical-align: top;
    padding: 10px 8px;
    overflow-wrap: break-word;
    word-break: break-word;
    border: 1px solid var(--gray-100);
  }
  .table-wrap.tbl-scroll tr:last-child td {
    border-bottom: 1px solid var(--gray-100);
  }
  .table-wrap.tbl-scroll td:not(:first-child)::before {
    content: none;
  }
  .table-wrap.tbl-scroll td:not(:first-child) .val {
    text-align: left;
  }
}

/* Inline SVG illustrations inside blog articles */
.post-inline-figure {
  margin: 2.2em 0;
}
.post-inline-figure svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.post-inline-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: .82rem;
  color: var(--gray-500);
}