/* ============================================================
   PRODUCT PAGES (Our Products) — shared template styles.
   Builds on ai-agent-modern.css, qa-modern.css,
   digital-marketing-modern.css, seo-modern.css and ppc-modern.css.
   --pp is the per-product accent colour set on <main>.
   ============================================================ */

.pp-main {
  --pp: #6366f1;
  --pp-soft: color-mix(in srgb, var(--pp) 12%, #fff);
}
.pp-hero h1 {
  max-width: 660px;
}

/* ── Hero visual: AI image frame + live app phone ────── */
.pp-visual {
  position: relative;
  width: min(100%, 560px);
  justify-self: center;
  padding: 10px 0 40px 40px;
}
.pp-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ag-line);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 50px 90px -40px rgba(79, 70, 229, 0.55);
}
.pp-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.ec-motion .pp-visual.is-in .pp-frame img {
  animation: ppZoom 14s ease-in-out infinite alternate;
}
.pp-frame-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: ppSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.pp-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 220px;
  padding: 14px;
  border: 6px solid #0f172a;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 70px -30px rgba(15, 23, 42, 0.6);
}
.ec-motion .pp-visual.is-in .pp-phone {
  animation: ppRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
}
.pp-phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pp-phone-top strong {
  color: var(--ag-ink);
  font-size: 14px;
}
.pp-app-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--pp);
  color: #fff;
}
.pp-live {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}
.pp-phone-steps {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  list-style: none;
}
.pp-phone-steps::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: #e5e7eb;
}
.pp-phone-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 0;
  border-radius: 10px;
  color: var(--ag-muted);
  font-size: 12.5px;
  font-weight: 600;
  animation: ppStep 8s infinite;
  animation-delay: calc(var(--i) * 2s);
}
.pp-phone-steps li span {
  position: relative;
  z-index: 1;
  flex: none;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d1d5db;
  box-shadow: 0 0 0 1px #d1d5db;
  animation: ppDot 8s infinite;
  animation-delay: calc(var(--i) * 2s);
}
.pp-phone-cta {
  display: block;
  padding: 9px;
  border-radius: 12px;
  background: var(--pp);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.pp-chip {
  align-items: center;
  z-index: 3;
}
.pp-chip > svg {
  padding: 6px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pp-soft);
  color: var(--pp);
}
.pp-chip strong {
  display: block;
  font-size: 13.5px;
}
.pp-chip small {
  color: var(--ag-muted);
  font-size: 11.5px;
  font-weight: 500;
}
.pp-chip--1 {
  top: -6px;
  right: -14px;
}
.pp-chip--2 {
  right: 18px;
  bottom: 6px;
  animation-delay: -2s;
}

@keyframes ppStep {
  0%,
  22% {
    background: var(--pp-soft);
    color: var(--ag-ink);
  }
  27%,
  100% {
    background: transparent;
    color: var(--ag-muted);
  }
}
@keyframes ppDot {
  0%,
  22% {
    background: var(--pp);
    box-shadow:
      0 0 0 1px var(--pp),
      0 0 0 6px color-mix(in srgb, var(--pp) 25%, transparent);
  }
  27%,
  100% {
    background: #d1d5db;
    box-shadow: 0 0 0 1px #d1d5db;
  }
}
@keyframes ppZoom {
  to {
    transform: scale(1.08);
  }
}
@keyframes ppSweep {
  0%,
  30% {
    background-position: 150% 0;
  }
  70%,
  100% {
    background-position: -50% 0;
  }
}
@keyframes ppRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* ── Consultation points ─────────────────────────────── */
.pp-consult-points {
  display: grid;
  gap: 12px;
  margin: 26px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}
.pp-consult-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
}
.pp-consult-points svg {
  color: #34d399;
}

/* ── How it works: horizontal journey ────────────────── */
.pp-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.pp-journey::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--pp), #6366f1, #22d3ee);
  opacity: 0.45;
}
.pp-journey::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pp);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--pp) 22%, transparent);
  animation: ppTravel 6s ease-in-out infinite;
}
.pp-journey li {
  position: relative;
  text-align: center;
}
.pp-journey-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border: 1px solid var(--ag-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 36px -20px rgba(79, 70, 229, 0.55);
  color: var(--pp);
  transition: transform 0.3s;
}
.pp-journey li:hover .pp-journey-node {
  transform: translateY(-5px) rotate(-4deg);
}
.pp-journey-node b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-size: 11px;
}
.pp-journey h3 {
  color: var(--ag-ink);
  font-size: 17px;
}
.pp-journey p {
  margin-top: 6px !important;
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.6;
}
@keyframes ppTravel {
  0% {
    left: 10%;
  }
  100% {
    left: 90%;
  }
}

/* ── Features ────────────────────────────────────────── */
.pp-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pp-feature h3 {
  margin-top: 14px !important;
  font-size: 16.5px;
}
.pp-feature p {
  margin-top: 6px !important;
  font-size: 14px;
}
.pp-feature .ag-ico {
  transition:
    transform 0.3s,
    background 0.3s,
    color 0.3s;
}
.pp-feature:hover .ag-ico {
  background: var(--pp);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

/* ── AI list ─────────────────────────────────────────── */
.pp-ai-list {
  display: grid;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.pp-ai-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
}
.pp-ai-list li:hover {
  border-color: rgba(165, 180, 252, 0.5);
  background: rgba(99, 102, 241, 0.14);
  transform: translateX(6px);
}
.pp-ai-list li > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #fff;
}
.pp-ai-list .pp-ai-note {
  align-items: flex-start;
  border-style: dashed;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
}
.pp-ai-list .pp-ai-note:hover {
  transform: none;
}
.pp-ai-note svg {
  flex: none;
  margin-top: 2px;
  color: #a5b4fc;
}

/* ── Revenue models ──────────────────────────────────── */
.pp-revenue {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.pp-rev {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border: 1px solid var(--ag-line);
  border-radius: 22px;
  background: #fff;
  transition:
    box-shadow 0.3s,
    transform 0.3s,
    border-color 0.3s;
}
.pp-rev::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--pp-soft);
  transition: transform 0.4s;
}
.pp-rev:hover {
  border-color: #c7cdfb;
  box-shadow: var(--ag-shadow);
  transform: translateY(-6px);
}
.pp-rev:hover::after {
  transform: scale(1.6);
}
.pp-rev > * {
  position: relative;
  z-index: 1;
}
.pp-rev-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--pp-soft);
  color: var(--pp);
}
.pp-rev h3 {
  margin-top: 16px !important;
  color: var(--ag-ink);
  font-size: 16.5px;
}
.pp-rev p {
  margin-top: 6px !important;
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Audience + stack ────────────────────────────────── */
.pp-audience svg {
  color: var(--pp);
}
.pp-stack-title {
  margin-top: 54px !important;
  margin-bottom: 18px !important;
  color: var(--ag-ink);
  font-size: 20px;
}
.pp-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.pp-stack-card {
  padding: 18px;
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  background: #fff;
}
.pp-stack-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ag-ink);
  font-size: 15px;
  font-weight: 700;
}
.pp-stack-card header svg {
  color: #4f46e5;
}
.pp-stack-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}
.pp-stack-card li {
  padding: 5px 10px;
  border: 1px solid #dcdcfb;
  border-radius: 999px;
  background: #f5f6ff;
  color: #3730a3;
  font-size: 12.5px;
  font-weight: 600;
}

.pp-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .pp-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pp-revenue,
  .pp-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .pp-journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .pp-journey::before {
    top: 35px;
    bottom: 35px;
    left: 34px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .pp-journey::after {
    display: none;
  }
  .pp-journey li {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
  }
  .pp-journey-node {
    grid-row: span 2;
    margin: 0;
  }
  .pp-journey h3 {
    align-self: end;
  }
  .pp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .pp-visual {
    padding: 0 0 150px;
  }
  .pp-phone {
    left: 6px;
    width: 172px;
    padding: 11px;
  }
  .pp-phone-steps li {
    font-size: 11.5px;
  }
  .pp-chip {
    max-width: 148px;
  }
  .pp-chip small {
    display: none;
  }
  .pp-chip--1 {
    top: auto;
    right: 0;
    bottom: 96px;
  }
  .pp-chip--2 {
    right: 0;
    bottom: 20px;
  }
  .pp-features,
  .pp-revenue,
  .pp-stack,
  .pp-steps,
  .pp-highlights {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pp-phone-steps li,
  .pp-phone-steps li span,
  .pp-journey::after,
  .pp-frame-scan,
  .pp-frame img {
    animation: none !important;
  }
}
