/* ==========================================
   ORANGE THEME – ONLY FOR GTM PLAYBOOKS PAGE
   ========================================== */

body.theme-marketing {
  --bg-1: #fed7aa;
  --bg-2: #fb923c;
  --accent: #f97316;
  --accent-blue: #f97316;
  --accent-dark: #0f172a;
}

/* Warm gradient background */
body.theme-marketing::before {
  background:
    radial-gradient(circle at 0% 0%, #fed7aa 0, transparent 46%),
    radial-gradient(circle at 100% 100%, #fed7aa 0, transparent 40%),
    linear-gradient(135deg, #fed7aa 0%, #fdba74 22%, #fb923c 55%, #ea580c 100%);
}

/* Slightly stronger overlay */
body.theme-marketing::after {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 40%, rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.28) 1px,
      transparent 1px,
      transparent 2px
    );
}

/* header edge & active nav item */
body.theme-marketing .site-header {
  border-bottom-color: rgba(249, 115, 22, 0.25);
}

body.theme-marketing .nav a[href*="gtm-playbooks"] {
  background: rgba(249, 115, 22, 0.14);
  color: #111827;
}

/* ========================
   HERO
   ======================== */

.pm-hero {
  padding-top: 110px;
}

.pm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.pm-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(120, 53, 15, 0.9);
  margin-bottom: 10px;
}

.pm-title {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 3.1vw, 3.1rem);
  letter-spacing: -0.06em;
}

.pm-lead {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.pm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-badges span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(248, 171, 89, 0.9);
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* hero card – 3D / animated */
.pm-hero-card {
  background: radial-gradient(circle at 0 0, rgba(251, 146, 60, 0.18), rgba(15, 23, 42, 0.96));
  color: #fefce8;
  border-radius: 24px;
  padding: 20px 22px 22px;
  border: 1px solid rgba(248, 171, 89, 0.9);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.7),
    0 0 0 1px rgba(248, 171, 89, 0.4);
  transform: perspective(900px) rotateX(6deg) rotateY(-6deg);
  transform-origin: center;
  animation: pm-card-float 6s ease-in-out infinite alternate;
}

.pm-hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254, 243, 199, 0.9);
  margin: 0 0 6px;
}

.pm-hero-subtitle {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.pm-hero-steps {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}

.pm-hero-note {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: rgba(254, 249, 195, 0.9);
}

@keyframes pm-card-float {
  0% {
    transform: perspective(900px) rotateX(6deg) rotateY(-6deg) translateY(0);
  }
  100% {
    transform: perspective(900px) rotateX(3deg) rotateY(-2deg) translateY(-6px);
  }
}

/* ========================
   PIPELINE CARDS
   ======================== */

.pm-section {
  position: relative;
}

.pm-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(249, 115, 22, 0.45), transparent);
  opacity: 0.7;
}

.pm-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.pm-step-card {
  background: var(--card);
  border-radius: 22px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(248, 171, 89, 0.7);
  box-shadow: var(--shadow-small);
  position: relative;
  overflow: hidden;
}

.pm-step-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(251, 146, 60, 0.22), transparent 60%);
  opacity: 0.9;
}

.pm-step-card > * {
  position: relative;
}

.pm-step-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(120, 53, 15, 0.9);
  margin-bottom: 6px;
}

.pm-step-card h3 {
  margin: 0 0 6px;
}

.pm-step-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pm-step-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  display: grid;
  gap: 4px;
  color: var(--text-muted);
}

/* ========================
   FRAMEWORK GRID
   ======================== */

.pm-framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pm-framework-card {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(251, 146, 60, 0.7);
  box-shadow: var(--shadow-small);
}

.pm-framework-card h3 {
  margin: 0 0 6px;
}

.pm-framework-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pm-framework-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  display: grid;
  gap: 4px;
  color: var(--text-muted);
}

/* ========================
   PIPELINE BAR CHART
   ======================== */

.pm-chart {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.pm-chart-row {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  align-items: center;
  gap: 10px;
}

.pm-chart-label {
  font-size: 0.9rem;
}

.pm-chart-bar {
  height: 18px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(248, 171, 89, 0.22);
}

.pm-chart-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fed7aa, #fb923c, #ea580c);
  box-shadow: 0 0 18px rgba(248, 171, 89, 0.6);
  transform-origin: left center;
  transform: scaleX(0);
  animation: pm-bar-fill 1.2s ease forwards;
}

.pm-chart-bar-1::before { animation-delay: 0.1s; transform: scaleX(1); }
.pm-chart-bar-2::before { animation-delay: 0.2s; transform: scaleX(0.45); }
.pm-chart-bar-3::before { animation-delay: 0.3s; transform: scaleX(0.18); }
.pm-chart-bar-4::before { animation-delay: 0.4s; transform: scaleX(0.08); }

.pm-chart-number {
  font-size: 0.9rem;
  text-align: right;
  color: rgba(120, 53, 15, 0.95);
}

.pm-chart-footnote {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

@keyframes pm-bar-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ========================
   TOOLS & CHECKLIST
   ======================== */

.pm-tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: flex-start;
}

.pm-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.pm-tool-card {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(248, 171, 89, 0.7);
  box-shadow: var(--shadow-small);
  font-size: 0.9rem;
}

.pm-tool-card h3 {
  margin: 0 0 6px;
}

.pm-tool-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pm-checklist-block {
  background: var(--card);
  border-radius: 24px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(248, 171, 89, 0.7);
  box-shadow: var(--shadow-soft);
}

.pm-checklist {
  margin: 10px 0 14px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pm-checklist li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
}

.pm-checklist li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(248, 171, 89, 0.16);
  border: 1px solid rgba(248, 171, 89, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(120, 53, 15, 0.96);
}

.pm-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 960px) {
  .pm-hero-grid,
  .pm-tools-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pm-hero-card {
    transform: none;
    animation: none;
  }

  .pm-chart-row {
    grid-template-columns: 130px 1fr 60px;
  }
}

@media (max-width: 640px) {
  .pm-hero {
    padding-top: 96px;
  }

  .pm-tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
