/* =====================================================================
   PRODUCT PAGES: VE3, FLOW, eDGEVANTAGE
   Layered over each page's own styles: one line-icon tile, one card style,
   and the mobile layout. Page content and structure are unchanged.
   ===================================================================== */

/* ---------- Icon tile ---------- */
.pp-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--off-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.pp-icon img { width: 26px; height: 26px; object-fit: contain; transition: filter var(--transition); }
.pp-icon--lg { width: 64px; height: 64px; border-radius: 18px; background: var(--white); border-color: rgba(0, 0, 0, 0.06); }
.pp-icon--lg img { width: 30px; height: 30px; }
/* centred cards: tile sits above the label */
.product-page .edge-card > .pp-icon,
.product-page .flow-pill-card > .pp-icon { margin: 0 auto 20px; }

/* ---------- Cards ---------- */
.product-page .edge-card,
.product-page .flow-pill-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}
/* thin red line that draws across the top edge on hover */
.product-page .edge-card::after,
.product-page .flow-pill-card::after {
  content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-page .edge-card img,
.product-page .flow-pill-card img { transform: none !important; }
@media (hover: hover) {
  .product-page .edge-card:hover,
  .product-page .flow-pill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 14, 23, 0.16);
    box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.22);
  }
  .product-page .edge-card:hover::after,
  .product-page .flow-pill-card:hover::after { transform: scaleX(1); }
  .product-page :is(.edge-card, .flow-pill-card):hover .pp-icon { background: var(--red); border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(197, 14, 23, 0.5); }
  .product-page :is(.edge-card, .flow-pill-card):hover .pp-icon img { filter: brightness(0) invert(1); }
}

/* Same hero card size on all three pages (their inline min-heights differed) */
@media (min-width: 961px) {
  .product-page .edge-hero-card { min-height: 520px !important; padding: 52px 60px !important; }
}

/* Gemini / OpenAI / Oracle marks: trimmed artwork, heights balanced per logo */
.pp-partner { width: auto; max-width: 100%; object-fit: contain; }

/* =====================================================================
   RESPONSIVE
   The pages lay out their grids with inline styles, so the overrides
   match those inline values and need !important.
   ===================================================================== */
@media (max-width: 1200px) {
  .product-page [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .product-page [style*="gap: 160px"] { gap: 48px 72px !important; }
  .product-page [style*="gap: 140px"] { gap: 56px !important; }
}

@media (max-width: 960px) {
  .product-page .edge-section { padding-top: 32px !important; padding-bottom: 32px !important; }

  /* hero and closing cards: copy first, artwork below it */
  .product-page :is(.edge-hero-card, .cta-box) {
    flex-direction: column; align-items: stretch;
    min-height: 0 !important; padding: 0 !important;
  }
  .product-page :is(.edge-hero-card, .cta-box) > img:first-child {
    position: relative !important; inset: auto !important; order: 2;
    width: 100% !important; height: 300px !important;
    object-position: 85% center !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
  }
  .product-page :is(.edge-hero-card, .cta-box) > div {
    order: 1; max-width: none !important; padding: 36px 28px 8px;
  }
  .product-page :is(.edge-hero-card, .cta-box) br { display: none; }

  /* two-column rows stack */
  .product-page [style*="grid-template-columns: 1fr 1fr"],
  .product-page .dashboard-grid { grid-template-columns: 1fr !important; }
  .product-page [style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
  .product-page .dashboard-grid { margin-top: 40px !important; margin-bottom: 48px !important; }
  .product-page [style*="text-align: right"] { text-align: center !important; }
}

@media (max-width: 640px) {
  .product-page .edge-section { padding-top: 22px !important; padding-bottom: 22px !important; }
  .product-page .section-title br { display: none; }
  .product-page [style*="margin: 0 auto 55px"] { margin-bottom: 28px !important; }
  .product-page [style*="margin-top: 55px"] { margin-top: 24px !important; }

  /* hero */
  .product-page .edge-hero-card h1 { font-size: 2.1rem !important; }
  .product-page :is(.edge-hero-card, .cta-box) > div { padding: 28px 20px 4px; }
  .product-page :is(.edge-hero-card, .cta-box) > img:first-child { height: 220px !important; }
  .product-page :is(.edge-hero-card, .cta-box) .btn { width: 100%; }
  .product-page .edge-hero-card img[alt="VE3"],
  .product-page .edge-hero-card img[alt="FLOW"],
  .product-page .edge-hero-card img[alt="eDGEVANTAGE"] { height: 42px !important; margin-bottom: 18px !important; }

  /* grids */
  .product-page [style*="repeat(4, 1fr)"] { gap: 12px !important; }
  .product-page [style*="minmax(320px, 1fr)"],
  .product-page [style*="minmax(300px, 1fr)"],
  .product-page [style*="minmax(220px, 1fr)"] { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* cards */
  .product-page .edge-card,
  .product-page .flow-pill-card { padding: 22px 20px !important; }
  .product-page [style*="repeat(4, 1fr)"] > .edge-card { padding: 20px 12px !important; }
  .product-page [style*="repeat(4, 1fr)"] > .edge-card p { font-size: 0.95rem !important; }
  .pp-icon { width: 48px; height: 48px; border-radius: 14px; }
  .pp-icon img { width: 22px; height: 22px; }
  .product-page .edge-card > .pp-icon,
  .product-page .flow-pill-card > .pp-icon { margin-bottom: 14px; }
  .product-page .workflow-list li { font-size: var(--text-sm); }

  /* stats, logo rows */
  .product-page [style*="gap: 160px"] { gap: 24px 28px !important; }
  .product-page [style*="gap: 160px"] > div { max-width: 140px !important; }
  .product-page [style*="gap: 160px"] p { font-size: 0.95rem !important; }
  .product-page [style*="gap: 140px"] { gap: 32px !important; }
  .pp-partner { zoom: 0.8; }
  .product-page .client-logo-item { padding: 6px 10px; zoom: 0.8; }
  .product-page [style*="gap: 32px 48px"],
  .product-page [style*="gap: 32px 36px"] { gap: 18px 20px !important; }
  .product-page .int-logo-item img { max-height: 30px; }

  /* eDGEVANTAGE overview: 500+ and Java badges wrap */
  .product-page [style*="gap: 40px; margin-top: 40px"] { flex-wrap: wrap; gap: 20px !important; margin-top: 24px !important; }

  /* FLOW "is our answer" line */
  .product-page [style*="margin: 30px 0; display: flex"] { flex-wrap: wrap; gap: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .product-page .edge-card, .product-page .flow-pill-card, .pp-icon { transition: none; }
}
