/* ---------- Product feature pages (Member Portal, Admin Portal, AI, Integrations) ---------- */

.pp-head { max-width: 760px; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.pp-head.center { margin-inline: auto; text-align: center; }
.pp-head h2, .pp-copy h2 {
  margin-top: 0.8rem; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.15; text-wrap: balance;
}

/* copy column beside a visual */
.pp-head > p, .pp-copy > p { margin-top: 0.9rem; font-size: 1.06rem; line-height: 1.75; color: var(--muted); max-width: 38rem; }
.pp-head.center > p { margin-inline: auto; }

/* ---------- Hero ---------- */
.pp-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(125deg, #101130 0%, #15163d 45%, #202158 100%);
}
.pp-hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 55% at 78% 45%, rgba(242, 146, 24, 0.14), transparent 70%),
    radial-gradient(36% 50% at 8% 10%, rgba(58, 59, 140, 0.55), transparent 70%);
}
.pp-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1.3px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(55% 70% at 75% 50%, #000, transparent 80%); mask-image: radial-gradient(55% 70% at 75% 50%, #000, transparent 80%);
}
.pp-hero-in {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(2.2rem, 4vw, 3rem) clamp(3.5rem, 7vw, 6rem);
}
.pp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; font-size: 0.88rem; color: rgba(232, 232, 248, 0.65); }
.pp-crumbs a { color: rgba(232, 232, 248, 0.85); transition: color 0.2s ease; }
.pp-crumbs a:hover { color: var(--orange); }
.pp-crumbs .i { width: 0.85rem; height: 0.85rem; }
.pp-crumbs [aria-current] { color: #fff; font-weight: 500; }

.pp-badge {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 2rem; padding: 0.45rem 1rem 0.45rem 0.45rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: #fff;
}
.pp-badge .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--orange); color: #fff; }
.pp-hero h1 {
  margin-top: 1.2rem; color: #fff; font-size: clamp(2.3rem, 3.8vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance;
}
.pp-hero h1 .hl { color: var(--orange); }
.pp-lead { margin-top: 1.3rem; max-width: 34rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.7; color: rgba(232, 232, 248, 0.82); }
.pp-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* product shot in a browser frame, with floating UI cards */
.pp-shot { position: relative; padding: 2.4rem 2.4rem 2.8rem; }
.pp-window {
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -35px rgba(0, 0, 0, 0.75);
}
.pp-window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f0f0f6; border-bottom: 1px solid var(--line); }
.pp-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d8e8; }
.pp-window-bar i:first-child { background: #f7a531; }
.pp-window-bar span { margin-left: 10px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.pp-window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

.pp-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 1rem 0.65rem 0.65rem;
  border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.55); white-space: nowrap;
}
.pp-float b { display: block; font-family: var(--f-head); font-size: 0.88rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.pp-float small { display: block; font-size: 0.74rem; color: var(--muted); }
.pf-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--orange-50); color: var(--orange-600); }
.pf-ic .i { width: 1.1rem; height: 1.1rem; }
.pp-float.f2 .pf-ic { background: var(--navy-50); color: var(--navy); }
.pp-float.f1 { left: 0; top: 16%; }
.pp-float.f2 { right: 0; top: 4%; }
.pp-float.f3 { right: 6%; bottom: 0; }
.pp-toast {
  position: absolute; z-index: 2; left: 8%; bottom: 6%; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem; border-radius: 999px; background: #1a1b4a; color: #fff; font-size: 0.8rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}
.pp-toast .i { width: 1rem; height: 1rem; color: #5dbb87; }

@media (prefers-reduced-motion: no-preference) {
  .pp-rise { opacity: 0; transform: translateY(16px); animation: pp-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .pp-hero-copy .pp-rise:nth-child(2) { animation-delay: 0.06s; }
  .pp-hero-copy .pp-rise:nth-child(3) { animation-delay: 0.12s; }
  .pp-hero-copy .pp-rise:nth-child(4) { animation-delay: 0.2s; }
  .pp-hero-copy .pp-rise:nth-child(5) { animation-delay: 0.28s; }
  .pp-shot.pp-rise { animation-delay: 0.2s; }
  .pp-float { animation: pp-float 6s ease-in-out infinite; }
  .pp-float.f2 { animation-duration: 7s; animation-delay: -2s; }
  .pp-float.f3 { animation-duration: 6.5s; animation-delay: -4s; }
  .pp-toast { animation: pp-toast 5s ease-in-out 1s infinite; }
}
@keyframes pp-rise { to { opacity: 1; transform: none; } }
@keyframes pp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pp-toast { 0%, 100% { opacity: 1; translate: 0 0; } 45%, 55% { opacity: 0.85; translate: 0 -4px; } }

/* ---------- CTA ---------- */
.pp-cta-sec { --cta-px: clamp(1.6rem, 4vw, 3rem); padding-top: 0; padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.pp-cta-box {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 3rem; flex-wrap: wrap;
  padding: clamp(1.6rem, 3vw, 2.3rem) var(--cta-px); border-radius: 26px; color: #fff;
  background: linear-gradient(110deg, #202158 0%, #2c2d74 60%, #3a2f5e 100%); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
/* wide screens: the banner reaches into the gutter so its text lines up with the sections above */
@media (min-width: 1281px) {
  .pp-cta-box { margin-inline: calc(-1 * var(--cta-px)); }
}

/* A light section's bottom padding already spaces the banner; a full-bleed dark band
   has none outside it, so the banner section adds the standard section spacing itself. */
.pp-dark-end + .pp-cta-sec { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.pp-cta-ring {
  position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; z-index: -1;
  border: 40px solid rgba(255, 152, 0, 0.14); box-shadow: 0 0 0 40px rgba(255, 152, 0, 0.06);
}
.pp-cta-box h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; }
.pp-cta-box p { margin-top: 0.5rem; max-width: 36rem; color: #cfd0e6; font-size: 1.05rem; }
.pp-cta-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pp-hero-in { grid-template-columns: 1fr; }
  .pp-shot { max-width: 680px; }
}
@media (max-width: 760px) {
  .pp-cta .btn, .pp-cta-btns .btn { flex: 1 1 100%; }
  .pp-cta-btns { width: 100%; }
  .pp-shot { padding: 1.6rem 0.4rem 2.4rem; }
  .pp-float { padding: 0.5rem 0.75rem 0.5rem 0.5rem; }
  .pp-float small { display: none; }
  .pf-ic { width: 30px; height: 30px; }
  .pp-float.f1 { left: -0.4rem; top: 26%; }
  .pp-float.f2 { right: -0.4rem; top: 0; }
  .pp-float.f3 { right: 2%; }
  .pp-toast { left: 2%; }
}
