/**
 * Main menu pages (services, explainers, company pages)
 * Shared section components, prefixed pg-. Loaded after main.css (and pricing.css on service pages).
 */

.pg {
  --pg-ink: #0b1437;
  --pg-text: #1e293b;
  --pg-muted: #475569;
  --pg-line: #e2e8f0;
  --pg-surface: #f3f7ff;
  --pg-radius: 16px;
  --pg-shadow: 0 1px 2px rgba(11, 20, 55, 0.06), 0 12px 32px -16px rgba(11, 20, 55, 0.22);
  --pg-glow: 0 24px 60px -24px rgba(37, 99, 235, 0.55);
  color: var(--pg-text);
}

.pg p {
  line-height: 1.75;
}

/* ------------------------------------------------------------------ hero */
.pg .page-hero {
  color: #ffffff;
  padding: 6.5rem 0 7.5rem;
  position: relative;
  overflow: hidden;
}

.pg-hero {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pg-eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.pg-hero h1 {
  color: #ffffff;
  font-size: clamp(2.375rem, 5.2vw, 3.75rem);
  margin-bottom: 1.25rem;
}

.pg-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 720px;
}

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.pg-btn-ghost-dark {
  color: var(--primary-color);
  border-color: #bfdbfe;
  background: #ffffff;
}

.pg-btn-ghost-dark:hover {
  background: #eff6ff;
  border-color: var(--primary-color);
}

.pg-meta {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* -------------------------------------------------- answer box (in short) */
.pg-answer-wrap {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}

.pg-answer {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  border-radius: var(--pg-radius);
  background: #ffffff;
  border: 1px solid var(--pg-line);
  box-shadow: 0 30px 60px -30px rgba(11, 20, 55, 0.45);
}

.pg-answer-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.pg-answer h2 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
}

.pg-answer p {
  margin: 0;
  font-size: 1.0625rem;
}

.pg-takeaways {
  list-style: none;
  display: grid;
  gap: 0.875rem;
  align-content: center;
  padding-left: 2rem;
  border-left: 1px solid var(--pg-line);
}

.pg-takeaways li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.55;
}

.pg-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  -webkit-mask: radial-gradient(circle, transparent 0 0.2rem, #000 0.22rem);
  mask: radial-gradient(circle, transparent 0 0.2rem, #000 0.22rem);
}

/* --------------------------------------------------------------- sections */
.pg-section {
  padding: 5.5rem 0;
  background: #ffffff;
  position: relative;
}

.pg-section-alt {
  background: var(--pg-surface);
}

.pg-section-dark {
  background: radial-gradient(ellipse 80% 60% at 85% 0%, rgba(37, 99, 235, 0.35) 0%, rgba(7, 15, 43, 0) 60%), var(--hero-gradient);
  color: rgba(255, 255, 255, 0.88);
}

.pg-section-dark h2,
.pg-section-dark h3 {
  color: #ffffff;
}

.pg-section-dark a:not(.btn) {
  color: #93c5fd;
}

.pg-head {
  max-width: 760px;
  margin-bottom: 2.75rem;
}

.pg-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pg-kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.pg-section-dark .pg-kicker {
  color: var(--cyan);
}

.pg-head h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
}

.pg-head p {
  font-size: 1.125rem;
  color: var(--pg-muted);
  margin: 0;
}

.pg-section-dark .pg-head p {
  color: rgba(255, 255, 255, 0.78);
}

.pg-prose {
  max-width: 760px;
}

.pg-prose p,
.pg-prose li {
  font-size: 1.0625rem;
}

.pg-prose ul,
.pg-prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.pg-prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* A quotable answer under a question heading */
.pg-quotable {
  font-size: 1.1875rem !important;
  color: var(--pg-ink);
  line-height: 1.7;
}

.pg-section-dark .pg-quotable {
  color: #ffffff;
}

/* ------------------------------------------------- layout with a sidebar TOC */
.pg-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.pg-toc {
  position: sticky;
  top: 96px;
  font-size: 0.9375rem;
}

.pg-toc p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pg-muted);
  margin-bottom: 0.75rem;
}

.pg-toc ol {
  list-style: none;
  border-left: 2px solid var(--pg-line);
}

.pg-toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--pg-muted);
  line-height: 1.4;
}

.pg-toc a:hover,
.pg-toc a.is-active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  text-decoration: none;
}

/* ------------------------------------------------------ text + image split */
.pg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.pg-split-flip > :first-child {
  order: 2;
}

.pg-figure {
  margin: 0;
}

.pg-figure img {
  width: 100%;
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-glow);
  background: var(--night);
  aspect-ratio: 40 / 21;
  object-fit: cover;
}

.pg-figure figcaption {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--pg-muted);
}

.pg-section-dark .pg-figure figcaption {
  color: rgba(255, 255, 255, 0.65);
}

.pg-figure-wide {
  margin: 0 0 3rem;
}

/* ------------------------------------------------------- numbered pillars */
.pg-pillars {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: pillar;
}

.pg-pillar {
  counter-increment: pillar;
  padding: 2rem;
  border-radius: var(--pg-radius);
  background: #ffffff;
  border: 1px solid var(--pg-line);
  box-shadow: var(--pg-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pg-pillar:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--pg-glow);
}

.pg-pillar::before {
  content: counter(pillar, decimal-leading-zero);
  display: block;
  margin-bottom: 1.25rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-pillar h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
}

.pg-pillar p {
  margin-bottom: 1rem;
  color: var(--pg-muted);
}

.pg-pillar ul {
  list-style: none;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--pg-line);
}

.pg-pillar li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pg-pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: rotate(45deg);
}

.pg-section-dark .pg-pillar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.pg-section-dark .pg-pillar p,
.pg-section-dark .pg-pillar li {
  color: rgba(255, 255, 255, 0.78);
}

.pg-section-dark .pg-pillar ul {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------------- comparison table */
.pg-table-wrap {
  overflow-x: auto;
  border-radius: var(--pg-radius);
  border: 1px solid var(--pg-line);
  background: #ffffff;
  box-shadow: var(--pg-shadow);
}

.pg-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9875rem;
  /* The table is always white, so it must not inherit white text from a dark section */
  color: var(--pg-text);
}

.pg-table th,
.pg-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pg-line);
  line-height: 1.55;
}

.pg-table thead th {
  background: var(--night);
  color: #ffffff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.0625rem;
}

.pg-table thead th.is-current {
  background: var(--primary-color);
}

.pg-table tbody th {
  width: 22%;
  color: var(--pg-ink);
  font-weight: 600;
  background: #f8fafc;
}

.pg-table td.is-current {
  background: #eff6ff;
  color: var(--pg-ink);
}

.pg-table tr:last-child th,
.pg-table tr:last-child td {
  border-bottom: none;
}

.pg-table-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--pg-muted);
}

/* Phones: each row becomes a card. The row heading is the card title, and each cell shows
   its column name from data-label (added to every td of a .pg-table). */
@media (max-width: 680px) {
  .pg-table-wrap {
    overflow: visible;
  }

  .pg-table {
    min-width: 0;
  }

  .pg-table,
  .pg-table tbody,
  .pg-table tr,
  .pg-table th,
  .pg-table td {
    display: block;
    width: auto;
  }

  .pg-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .pg-table tbody tr {
    border-bottom: 1px solid var(--pg-line);
  }

  .pg-table tbody tr:last-child {
    border-bottom: none;
  }

  .pg-table tbody th {
    width: auto;
    padding: 0.875rem 1.125rem;
    background: var(--night);
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.0625rem;
    border-bottom: none;
  }

  .pg-table tbody tr:first-child th {
    border-radius: var(--pg-radius) var(--pg-radius) 0 0;
  }

  .pg-table td {
    padding: 0.75rem 1.125rem;
    border-bottom: 1px solid var(--pg-line);
  }

  .pg-table tr td:last-child {
    border-bottom: none;
  }

  .pg-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pg-muted);
  }

  .pg-table td.is-current {
    box-shadow: inset 3px 0 0 var(--primary-color);
  }

  .pg-table td.is-current::before {
    color: var(--primary-color);
  }
}

/* ------------------------------------------------------- flow diagram */
.pg-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.pg-flow li {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pg-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.875rem;
  width: 0.75rem;
  height: 0.75rem;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  transform: translateY(-50%) rotate(45deg);
}

.pg-flow li:last-child {
  border-color: rgba(255, 176, 32, 0.6);
  background: rgba(255, 176, 32, 0.1);
}

.pg-flow strong {
  display: block;
  margin-bottom: 0.375rem;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.125rem;
}

.pg-flow span {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------- timeline steps */
.pg-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}

.pg-steps::before {
  content: "";
  position: absolute;
  top: 1.375rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #22d3ee, #ffb020);
}

.pg-steps li {
  counter-increment: step;
  position: relative;
}

.pg-steps li::before {
  content: counter(step);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--cyan);
  color: #ffffff;
  font-weight: 700;
}

.pg-steps li:last-child::before {
  border-color: var(--amber);
  background: var(--cta);
  color: var(--cta-ink);
}

.pg-steps h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pg-steps p {
  color: var(--pg-muted);
  margin: 0;
  font-size: 0.975rem;
}

.pg-section-dark .pg-steps p {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------- proof cards */
.pg-proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pg-proof-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--pg-radius);
  background: #ffffff;
  border: 1px solid var(--pg-line);
  box-shadow: var(--pg-shadow);
}

.pg-proof-figure {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  background: var(--warm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-proof-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.pg-proof-card p {
  color: var(--pg-muted);
  font-size: 0.9375rem;
  flex: 1;
}

.pg-proof-card a {
  font-weight: 600;
}

.pg-section-dark .pg-proof-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.pg-section-dark .pg-proof-card p {
  color: rgba(255, 255, 255, 0.75);
}

.pg-fineprint {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--pg-muted);
}

.pg-section-dark .pg-fineprint {
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------- callout and examples */
.pg-callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
  border: 1px solid #bfdbfe;
  font-size: 1rem;
}

.pg-callout strong {
  color: var(--pg-ink);
}

.pg-callout p:last-child {
  margin: 0;
}

.pg-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pg-example {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--pg-line);
  background: #ffffff;
}

.pg-example .pg-query {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--pg-line);
  font-size: 0.875rem;
  color: var(--pg-ink);
}

.pg-example .pg-query::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--pg-muted);
  border-radius: 50%;
  box-shadow: 0.35rem 0.35rem 0 -0.28rem var(--pg-muted);
}

.pg-example h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.pg-example p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 0.9375rem;
}

/* -------------------------------------------------------- handoff band */
.pg-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--pg-radius);
  background: var(--band-gradient);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pg-glow);
}

.pg-handoff h2,
.pg-handoff h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.pg-handoff p {
  margin: 0;
}

.pg-handoff .btn {
  flex-shrink: 0;
}

/* -------------------------------------------------------------- CTA band */
.pg-cta {
  padding: 5.5rem 0;
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(255, 138, 61, 0.28) 0%, rgba(7, 15, 43, 0) 70%), var(--hero-gradient);
  color: rgba(255, 255, 255, 0.85);
}

.pg-cta h2 {
  color: #ffffff;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  max-width: 760px;
  margin: 0 auto 1rem;
}

.pg-cta p {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.pg-cta .pg-actions {
  margin-bottom: 0;
}

/* ---------------------------------------------------------- link chips */
.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
}

.pg-chips a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--pg-line);
  background: #ffffff;
  color: var(--pg-ink);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pg-chips a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}

/* --------------------------------------------- reveal on scroll (pages.js) */
.pg-anim .pg-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pg-anim .pg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .pg-anim .pg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pg-pillar,
  .pg-pillar:hover {
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .pg-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .pg .page-hero {
    padding: 4.5rem 0 6.5rem;
  }

  .pg-answer {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .pg-takeaways {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px solid var(--pg-line);
  }

  .pg-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .pg-split-flip > :first-child {
    order: 0;
  }

  .pg-pillars,
  .pg-examples,
  .pg-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-steps::before {
    top: 0;
    bottom: 0;
    left: 1.375rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #2563eb, #22d3ee, #ffb020);
  }

  .pg-steps li {
    padding-left: 4rem;
  }

  .pg-steps li::before {
    position: absolute;
    left: 0;
    top: 0;
  }

  .pg-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .pg-flow li:not(:last-child)::after {
    top: auto;
    bottom: -0.95rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .pg-handoff {
    flex-direction: column;
    align-items: flex-start;
  }

  .pg-section,
  .pg-cta {
    padding: 4rem 0;
  }
}

@media (max-width: 600px) {
  .pg .container {
    padding: 0 1rem;
  }

  .pg-answer {
    padding: 1.5rem 1.25rem;
  }

  .pg-pillar,
  .pg-proof-card {
    padding: 1.5rem;
  }

  .pg-actions .btn,
  .pg-actions .pg-btn-ghost {
    width: 100%;
  }
}

/* Spacing between stacked blocks */
[data-gap="md"] {
  margin-top: 3rem;
}

[data-gap="lg"] {
  margin-top: 3.5rem;
}

/* Links inside white tables keep the light-page color on dark sections */
.pg-section-dark .pg-table a:not(.btn) {
  color: var(--primary-color);
}

/* Two-column card grid */
.pg-examples-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-example .pg-tag {
  display: inline-block;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.pg-example > a:last-child {
  display: inline-block;
  margin-top: 0.875rem;
  font-weight: 600;
}

/* Service pages: the plan's included list in a card, and the price block */
.pg-included {
  padding: 2rem 2.25rem;
  border-radius: var(--pg-radius);
  background: #ffffff;
  border: 1px solid var(--pg-line);
  box-shadow: var(--pg-shadow);
}

.pg-price {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.pg-price-card {
  padding: 2rem;
  border-radius: var(--pg-radius);
  background: var(--night);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--pg-glow);
}

.pg-price-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pg-price-line {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.375rem;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 1rem;
}

.pg-price-card .pg-actions {
  justify-content: flex-start;
  margin: 1.5rem 0 0;
}

.pg-price-card p:not(.pg-price-line) {
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .pg-examples-2,
  .pg-price {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-included {
    padding: 1.5rem;
  }
}

/* Industry grid: compact cards */
.pg-industries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.pg-industries li {
  padding: 1.25rem 1.375rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--pg-line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pg-industries li:hover {
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.pg-industries h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}

.pg-industries p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--pg-muted);
  line-height: 1.55;
}

.pg-industries a {
  font-weight: 600;
  white-space: nowrap;
}

.pg-pillar .pg-more {
  margin: 1.25rem 0 0;
  font-weight: 600;
  color: inherit;
}

@media (max-width: 1080px) {
  .pg-industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pg-industries {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-industries li:hover {
    transform: none;
  }
}

/* Portfolio: project cards */
.pg-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.pg-work {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--pg-radius);
  background: #ffffff;
  border: 1px solid var(--pg-line);
  box-shadow: var(--pg-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-work:hover {
  transform: translateY(-4px);
  box-shadow: var(--pg-glow);
}

.pg-work-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night);
}

.pg-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-work-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem;
}

.pg-work h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
}

.pg-work p {
  color: var(--pg-muted);
  font-size: 0.975rem;
}

.pg-work .pg-work-result {
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  background: #fff7ed;
  border-left: 3px solid var(--amber);
  color: var(--pg-ink);
  font-weight: 600;
}

.pg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0 0 1.25rem;
}

.pg-tags li {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-color);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pg-work-link {
  margin-top: auto;
  font-weight: 600;
}

/* Success stories: one story per row */
.pg-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  padding: 2.25rem;
  border-radius: var(--pg-radius);
  background: #ffffff;
  border: 1px solid var(--pg-line);
  box-shadow: var(--pg-shadow);
}

.pg-story + .pg-story {
  margin-top: 1.5rem;
}

/* The client's own image, from the portfolio */
.pg-story-media {
  align-self: start;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--night);
}

.pg-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Results as compact chips under the story title */
.pg-story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.pg-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 8.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--pg-surface);
  border: 1px solid #dbe5ff;
}

.pg-stat strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.625rem;
  line-height: 1.1;
  color: var(--primary-color);
}

.pg-stat span {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--pg-muted);
}

/* Results from clients we don't name: a dark band of large stats */
.pg-more-results {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  padding: 2rem;
  border-radius: var(--pg-radius);
  background: radial-gradient(120% 140% at 100% 0%, #1d3a8a 0%, rgba(29, 58, 138, 0) 60%), var(--night);
  color: rgba(255, 255, 255, 0.78);
}

.pg-more-results h3 {
  margin: 0.5rem 0;
  font-size: 1.375rem;
  color: #ffffff;
}

.pg-more-results p {
  margin: 0;
}

.pg-more-results .pg-kicker {
  color: var(--cyan);
}

.pg-more-results .pg-stat {
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.pg-more-results .pg-stat strong {
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--amber);
}

.pg-more-results .pg-stat span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
}

.pg-story h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pg-story ul:not(.pg-tags) {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--pg-muted);
}

.pg-story ul:not(.pg-tags) li {
  margin-bottom: 0.375rem;
}

@media (max-width: 900px) {
  .pg-works,
  .pg-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-story {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .pg-more-results {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-work,
  .pg-work:hover {
    transform: none;
    transition: none;
  }
}

/* Contact: form card, side cards */
.pg-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.pg-card {
  padding: 2rem;
  border-radius: var(--pg-radius);
  background: #ffffff;
  border: 1px solid var(--pg-line);
  box-shadow: var(--pg-shadow);
}

.pg-card + .pg-card {
  margin-top: 1.5rem;
}

.pg-card h2,
.pg-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pg-card-dark {
  background: var(--hero-gradient);
  border-color: rgba(96, 165, 250, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.pg-card-dark h3 {
  color: #ffffff;
}

.pg-form {
  display: grid;
  gap: 1.25rem;
}

.pg-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pg-ink);
}

.pg-form input,
.pg-form select,
.pg-form textarea {
  width: 100%;
  padding: 0.8125rem 0.9375rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font: inherit;
  font-size: 1rem;
  color: var(--pg-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pg-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.pg-form input:focus,
.pg-form select:focus,
.pg-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.pg-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.pg-form .btn {
  width: 100%;
}

.pg-form-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--pg-muted);
}

.pg-contact-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.pg-contact-list span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pg-muted);
}

.pg-contact-list p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--pg-ink);
  line-height: 1.6;
}

.pg-next {
  list-style: none;
  counter-reset: next;
  display: grid;
  gap: 1rem;
}

.pg-next li {
  counter-increment: next;
  position: relative;
  padding-left: 2.75rem;
  line-height: 1.55;
}

.pg-next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
}

.pg-next strong {
  color: #ffffff;
}

@media (max-width: 900px) {
  .pg-contact,
  .pg-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-card {
    padding: 1.5rem;
  }
}

.pg-actions-left {
  justify-content: flex-start;
}

/* ------------------------------------------------------- data evidence (Search Console / analytics visuals) */
.pg-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.pg-figure-data img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #0b1437;
}

.pg-evidence-note h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

.pg-evidence-note p {
  margin-bottom: 1rem;
}

.pg-evidence-note ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.125rem;
}

.pg-evidence-note code {
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.08);
  overflow-wrap: anywhere;
}

.pg-section-dark .pg-evidence-note code {
  background: rgba(255, 255, 255, 0.12);
}

.pg-evidence-pair .pg-head h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.5rem;
}

.pg-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .pg-evidence,
  .pg-evidence-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

/* Report panels: a portrait layout is served below 600px (see <picture> in the pages) */
@media (max-width: 600px) {
  .pg-figure-data img {
    aspect-ratio: 3 / 4;
  }
}

/* Four-step timeline (E-commerce SEO) */
@media (min-width: 1081px) {
  .pg-steps-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mid widths: two rows of two; the connector line only works on one row. Below 900px the
   shared rule turns every timeline into a vertical list. */
@media (min-width: 901px) and (max-width: 1080px) {
  .pg-steps-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-steps-4::before {
    display: none;
  }
}

/* A section heading placed in an evidence note */
.pg-evidence-note h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.2;
}

/* ------------------------------------------------------- browser frame (a live client site) */
.pg-browser {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(11, 20, 55, 0.08), 0 40px 80px -30px rgba(11, 20, 55, 0.55), 0 0 0 1px rgba(11, 20, 55, 0.08);
}

.pg-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  height: 40px;
  padding: 0 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.pg-browser-dots {
  display: flex;
  gap: 6px;
}

.pg-browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f87171;
}

.pg-browser-dots i:nth-child(2) { background: #fbbf24; }
.pg-browser-dots i:nth-child(3) { background: #34d399; }

.pg-browser-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-browser-url svg {
  flex: none;
  color: #16a34a;
}

.pg-browser img {
  display: block;
  width: 100%;
  height: auto;
}

.pg-showcase {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.pg-showcase-side {
  position: absolute;
  bottom: -2.5rem;
  width: 38%;
}

.pg-showcase-side.is-left { left: -4%; }
.pg-showcase-side.is-right { right: -4%; }

/* ------------------------------------------------------- site stage (a client site, three pages, key facts) */
.pg-stage {
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 55% 60% at 50% 45%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 40% at 85% 85%, rgba(34, 211, 238, 0.14), transparent 70%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
}

.pg-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 20, 55, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}

.pg-stage .container {
  position: relative;
}

.pg-stage-showcase {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 0 6rem;
}

.pg-stage-main {
  position: relative;
  z-index: 2;
  width: 76%;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(11, 20, 55, 0.08), 0 50px 100px -30px rgba(11, 20, 55, 0.6), 0 0 0 1px rgba(11, 20, 55, 0.08);
}

.pg-stage-side {
  position: absolute;
  z-index: 1;
  width: 40%;
  opacity: 0.96;
  transition: transform 0.4s ease;
}

.pg-stage-side.is-left {
  left: 0;
  top: 0;
  transform: perspective(1600px) rotateY(12deg) rotateZ(-1.5deg);
  transform-origin: left center;
}

.pg-stage-side.is-right {
  right: 0;
  bottom: 0;
  transform: perspective(1600px) rotateY(-12deg) rotateZ(1.5deg);
  transform-origin: right center;
}

.pg-stage-side .pg-browser-bar {
  height: 30px;
  gap: 0.5rem;
  padding: 0 0.625rem;
}

.pg-stage-side .pg-browser-dots i {
  width: 8px;
  height: 8px;
}

.pg-stage-side .pg-browser-url {
  padding: 0.15rem 0.625rem;
  font-size: 0.6875rem;
}

.pg-stage-facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-stage-facts li {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem 1rem 0.75rem 3.125rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 18px 36px -18px rgba(11, 20, 55, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--pg-muted);
}

.pg-stage-facts li::before {
  content: "";
  position: absolute;
  left: 0.875rem;
  top: 50%;
  width: 1.625rem;
  height: 1.625rem;
  margin-top: -0.8125rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #22d3ee) center / cover;
}

.pg-stage-facts li::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  top: 50%;
  width: 1.625rem;
  height: 1.625rem;
  margin-top: -0.8125rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

.pg-stage-facts strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.9875rem;
  color: var(--pg-ink);
}

.pg-stage-facts .is-1 { left: 3%; bottom: 1.5rem; }
.pg-stage-facts .is-2 { right: 5%; top: 1.25rem; }
.pg-stage-facts .is-3 { right: 1%; top: 42%; }

.pg-stage-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.pg-stage-links span {
  margin-right: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-muted);
}

.pg-stage-links a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--pg-line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pg-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pg-stage-links a::after {
  content: " \2197";
  color: #2563eb;
}

.pg-stage-links a:hover,
.pg-stage-links a:focus-visible {
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 8px 20px -12px rgba(37, 99, 235, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .pg-stage-side,
  .pg-stage-links a {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .pg-stage-facts .is-3 { top: auto; bottom: 30%; right: 0; }
}

@media (max-width: 900px) {
  .pg-stage-showcase {
    padding: 0;
  }

  .pg-stage-main {
    width: 100%;
  }

  .pg-stage-side {
    display: none;
  }

  .pg-stage-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .pg-stage-facts li {
    position: relative;
    inset: auto;
  }

  .pg-stage-facts .is-1,
  .pg-stage-facts .is-2,
  .pg-stage-facts .is-3 {
    inset: auto;
  }

  .pg-stage-links {
    margin-top: 1.75rem;
  }
}

@media (max-width: 600px) {
  .pg-stage-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-stage-links span {
    flex-basis: 100%;
    margin: 0 0 0.125rem;
    text-align: center;
  }

  .pg-stage-links a {
    font-size: 0.875rem;
  }
}

/* ------------------------------------------------------- product screenshot gallery */
.pg-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pg-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 40px -24px rgba(11, 20, 55, 0.6);
}

.pg-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.pg-shot figcaption {
  padding: 0.875rem 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.pg-shot figcaption strong {
  display: block;
  margin-bottom: 0.125rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1rem;
  color: #ffffff;
}

/* ------------------------------------------------------- facts strip */
.pg-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-facts li {
  padding: 1.25rem 1.25rem 1.125rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.pg-facts strong {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.1;
  color: var(--amber);
}

/* ------------------------------------------------------- keyword targets table */
.pg-table td a {
  font-weight: 600;
}

@media (max-width: 900px) {
  .pg-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-showcase-side {
    display: none;
  }
}

@media (max-width: 600px) {
  .pg-shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-browser-bar {
    height: 32px;
  }

  .pg-browser-url {
    font-size: 0.75rem;
  }
}

/* ------------------------------------------- resource hub (Insights pages) */
.pg-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.pg-guide,
.pg-resource {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--pg-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pg-guide {
  padding: 2.25rem;
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}

.pg-guide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.pg-guide:hover,
.pg-resource:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: var(--pg-glow);
}

.pg-guide h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pg-guide p,
.pg-resource p {
  color: var(--pg-muted);
  margin: 0 0 1.25rem;
}

.pg-guide ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem 1.25rem;
  margin: 0 0 1.75rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--pg-line);
}

.pg-guide li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--pg-text);
}

.pg-guide li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.2rem;
  width: 0.4rem;
  height: 0.75rem;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
}

.pg-res-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  min-height: 1.75rem;
  margin-bottom: 1rem;
}

.pg-format {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--topic, var(--primary-color));
}

.pg-res-stat {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--pg-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* The link covers the whole card, so the card is one click target */
.pg-res-link {
  margin-top: auto;
  font-weight: 600;
}

.pg-res-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.pg-res-link:hover {
  text-decoration: none;
}

.pg-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pg-resource {
  --topic: var(--primary-color);
  padding: 1.75rem;
  border-radius: 14px;
  border-top: 3px solid var(--topic);
}

.pg-resource[data-topic="ai"] {
  --topic: #0e7490;
}

.pg-resource[data-topic="local"] {
  --topic: #b45309;
}

.pg-resource h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
}

.pg-resource p {
  font-size: 0.9375rem;
}

.pg-chips-center {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .pg-guide,
  .pg-resource,
  .pg-guide:hover,
  .pg-resource:hover {
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .pg-guides {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pg-guide {
    padding: 1.75rem 1.5rem;
  }

  .pg-guide ul,
  .pg-resources {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-resource {
    padding: 1.5rem;
  }
}
