/* =====================================================================
   PRODUCTS PAGE  (glass-card UI, premium)
   Hero (JRS Innovation Products) → Products grid (glass cards w/ store
   badges) → reused "More Ways to Connect" component → footer.
   ===================================================================== */

.pp-page { overflow-x: hidden; }

.pp-section { padding: clamp(44px, 5vw, 72px) clamp(20px, 4vw, 60px); }
.pp-wrap { max-width: 1200px; margin: 0 auto; }

.grad-blue {
  background: linear-gradient(100deg, #5b8def 0%, #2f6bd8 55%, #6aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===================== HERO ===================== */
.pp-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 62vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(120px, 15vh, 175px);
  padding-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
  border-bottom: 1px solid rgba(90, 120, 180, 0.12);
}
.pp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../our-product/our-product.jpg") center 62% / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}
.pp-hero .pp-wrap { position: relative; z-index: 1; }
/* phone-specific hero background image */
@media (max-width: 700px) {
  .pp-hero::before {
    background-image: url("../our-product/our-product-phone.webp");
    background-position: center top;
    background-size: cover;
  }
}
.pp-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f6bd8;
  background: rgba(91, 141, 239, 0.08);
  border: 1px solid rgba(91, 141, 239, 0.3);
}
.pp-title {
  margin-top: 22px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #16202f;
}
.pp-hero-sub {
  margin: 20px auto 0;
  max-width: 640px;
  font-weight: 300;
  line-height: 1.7;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: #5a6478;
}

/* ===================== GRID SECTION ===================== */
.pp-grids { background: #ffffff; }
.pp-shead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: clamp(30px, 3.6vw, 46px);
}
.pp-shead svg { width: 24px; height: 24px; color: #2f6bd8; }
.pp-stitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  color: #16202f;
}

.pp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 2vw, 26px);
  max-width: 1180px;
  margin: 0 auto;
}

/* ===================== CARD (glass / premium) ===================== */
.pp-card {
  position: relative;
  flex: 0 0 calc(25% - 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 380px;
  padding: clamp(24px, 2vw, 30px);
  border-radius: 24px;
  text-decoration: none;
  /* liquid glass */
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  backdrop-filter: blur(16px) saturate(165%);
  box-shadow: 0 24px 60px rgba(40, 60, 110, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.pp-card:hover {
  transform: translateY(-7px);
  border-color: rgba(91, 141, 239, 0.4);
  box-shadow: 0 38px 80px rgba(40, 60, 110, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
/* per-product accent glow blob */
.pp-card::before {
  content: "";
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1, #5b8def), var(--g2, #6aa0ff));
  opacity: 0.16;
  filter: blur(36px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pp-card:hover::before { opacity: 0.28; }

.pp-ext {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  color: #b6c2d4;
  opacity: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.pp-card:hover .pp-ext { opacity: 1; color: #2f6bd8; }

.pp-logo {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 38px rgba(40, 60, 110, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(90, 120, 180, 0.1);
}
.pp-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

.pp-name {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.35;
  color: #16202f;
  min-height: 2.8em;
}
.pp-desc {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-weight: 300;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #5a6478;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pp-stores {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.pp-store {
  flex: 1 1 0;
  min-width: 140px;
  max-width: 175px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(120, 140, 190, 0.24);
  color: #1a2336;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(40, 60, 110, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pp-store:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(40, 60, 110, 0.16); }
.pp-store img { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; }
.pp-store span { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.pp-store small { font-size: 0.54rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #8a94a8; }
.pp-store strong { font-family: 'Outfit', sans-serif; font-size: 0.86rem; font-weight: 700; color: #1a2336; }

/* ===================== REVEAL ===================== */
.pp-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.pp-reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .pp-reveal { transition: opacity 0.3s ease; transform: none; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .pp-card { flex: 0 0 calc(50% - 13px); }
}
@media (max-width: 620px) {
  .pp-card { flex: 0 0 100%; min-height: 0; }
}

/* ===================== DARK THEME ===================== */
[data-theme="dark"] .pp-eyebrow {
  color: var(--accent-deep);
  background: rgba(91, 155, 245, 0.12);
  border-color: rgba(91, 155, 245, 0.3);
}
[data-theme="dark"] .pp-hero { border-bottom-color: var(--d-line); }
[data-theme="dark"] .pp-hero::before { opacity: 0.2; }
[data-theme="dark"] .pp-title,
[data-theme="dark"] .pp-stitle,
[data-theme="dark"] .pp-name { color: var(--d-t1); }
[data-theme="dark"] .pp-hero-sub,
[data-theme="dark"] .pp-desc { color: var(--d-t2); }
[data-theme="dark"] .pp-grids { background: var(--d-base); }
[data-theme="dark"] .pp-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--d-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .pp-logo { background: rgba(255, 255, 255, 0.95); border-color: transparent; }
[data-theme="dark"] .pp-store { background: var(--d-surface-2); border-color: var(--d-line); }
[data-theme="dark"] .pp-store strong { color: var(--d-t1); }
[data-theme="dark"] .pp-store small { color: var(--d-t2); }

