:root {
    --pg-ink: #0f172a;
    --pg-muted: #475569;
    --pg-soft: #f8fafc;
    --pg-line: rgba(15, 23, 42, 0.1);
    --pg-accent: #ec4899;
    --pg-accent-strong: #be185d;
    --pg-radius-sm: 8px;
    --pg-radius-md: 12px;
    --pg-shadow-card: 0 14px 40px rgba(15, 23, 42, 0.08);
    --pg-shadow-card-hover: 0 22px 60px rgba(15, 23, 42, 0.12);
    --pg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    color: var(--pg-ink);
    background: var(--pg-soft);
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1180px;
}

section {
    scroll-margin-top: 6rem;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.pg-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pg-section-tight {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.pg-section-header {
    max-width: 46rem;
}

.pg-eyebrow {
    color: var(--pg-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pg-card,
.premium-card,
.pulse-card,
.solution-card,
.calculator-panel,
.partner-logo-card,
details.group {
    border-radius: var(--pg-radius-sm) !important;
}

.pg-card,
.premium-card,
.pulse-card,
.partner-logo-card {
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow-card);
}

.pg-card,
.premium-card,
.pulse-card,
.solution-card,
.partner-logo-card,
a[href*="contact.html?product"]:not(footer a):not(.products-menu-link),
a[href="pulse.html"]:not(footer a):not(.products-menu-link) {
    transition:
        transform 260ms var(--pg-ease),
        box-shadow 260ms var(--pg-ease),
        border-color 260ms var(--pg-ease),
        background-color 260ms var(--pg-ease),
        color 260ms var(--pg-ease);
}

.pg-card:hover,
.premium-card:hover,
.pulse-card:hover,
.solution-card:hover,
.partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg-shadow-card-hover);
}

a[href*="contact.html?product"]:not(footer a):not(.products-menu-link),
a[href="pulse.html"]:not(footer a):not(.products-menu-link),
.pg-cta {
    border-radius: var(--pg-radius-sm) !important;
}

a[href*="contact.html?product"]:not(footer a):not(.products-menu-link):hover,
a[href="pulse.html"]:not(footer a):not(.products-menu-link):hover,
.pg-cta:hover {
    transform: translateY(-2px);
}

form a[href*="contact.html?product"],
form button,
footer a,
details a,
.fixed a[href*="contact.html?product"],
.fixed a[href="pulse.html"] {
    border-radius: inherit !important;
    transform: none !important;
}

/* --- Lenis Smooth Scroll Foundation --- */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* --- Image Mask Reveal --- */
.image-mask-target {
    clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

.hero-image-scale {
    transform: scale(1.15);
    will-change: transform;
}

/* ====================================================
   HEADER SCROLL TRANSITION
   ==================================================== */
.pg-header {
    transition:
        background-color 0.45s var(--pg-ease),
        box-shadow 0.45s var(--pg-ease),
        border-color 0.45s var(--pg-ease),
        backdrop-filter 0.45s var(--pg-ease);
}
.pg-header--scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.28) !important;
    border-bottom-color: rgba(51, 65, 85, 0.7) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    background-color: rgba(15, 23, 42, 0.97) !important;
}

/* --- Nav link hover underline --- */
.pg-nav-link {
    position: relative;
    display: inline-block;
}
.pg-nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pg-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--pg-ease);
    border-radius: 2px;
}
.pg-nav-link:hover::after,
.pg-nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* ====================================================
   HERO SCROLL INDICATOR
   ==================================================== */
.pg-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.5s ease;
}
.pg-scroll-hint--hidden {
    opacity: 0 !important;
    transition: opacity 0.35s ease;
}
.pg-scroll-hint__chevron {
    animation: pg-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes pg-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* ====================================================
   CONSULTATION PROCESS LINE
   ==================================================== */
.pg-process-line-wrap {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    right: 2.5rem;
    height: 2px;
    background: #f1f5f9;
    z-index: 0;
    overflow: hidden;
    border-radius: 2px;
}
.pg-process-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ec4899, #f43f5e);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}
.pg-process-line--animated {
    transform: scaleX(1);
}
.pg-step-circle {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.pg-step-circle--active {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.15);
}

/* ====================================================
   TRUST SECTION STATIC GRID (replaces marquee)
   ==================================================== */
.pg-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 767px) {
    .pg-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.pg-trust-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
        border-color 0.3s var(--pg-ease),
        box-shadow 0.3s var(--pg-ease),
        background-color 0.3s var(--pg-ease);
}
.pg-trust-card:hover {
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.06);
    background-color: #fff;
}
.pg-trust-card__icon {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* ====================================================
   PARTNER GRID REVEAL
   ==================================================== */
.partner-grid-reveal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem 3rem;
}

/* ====================================================
   FAQ SMOOTH ACCORDION
   ==================================================== */
details > .faq-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}
details[open] > .faq-body {
    max-height: 600px;
    opacity: 1;
}

/* ====================================================
   ROADMAP MILESTONE ACTIVE STATE
   ==================================================== */
.pg-roadmap-milestone .milestone-dot {
    transition: border-color 0.5s ease, background-color 0.5s ease;
}
.pg-roadmap-milestone.active .milestone-dot {
    border-color: #ec4899 !important;
}
.pg-roadmap-milestone.active .milestone-dot-inner {
    background-color: #ec4899 !important;
}

/* ====================================================
   STATIC MOTION ZONES (forms, legal, footer)
   — animation/transition suppression for regulated content
   ==================================================== */
form,
form *,
footer,
footer *,
.pg-static,
.pg-static *,
.pg-legal,
.pg-legal * {
    animation: none !important;
    transition-duration: 0ms !important;
}

/* details is excluded from blanket suppression so FAQ accordion works */

.pg-motion-ready form .reveal,
.pg-motion-ready footer.reveal,
.pg-motion-ready footer .reveal,
.pg-motion-ready details .reveal,
.pg-motion-ready .pg-static .reveal,
.pg-motion-ready .pg-legal .reveal {
    opacity: 1 !important;
    transform: none !important;
}

@media (min-width: 768px) {
    .pg-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (max-width: 767px) {
    .container {
        width: 100%;
    }

    h1 {
        line-height: 1.08;
    }

    .pg-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Process line is desktop-only */
    .pg-process-line-wrap {
        display: none;
    }

    /* Trust grid 2-col on mobile */
    .pg-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ====================================================
   DESKTOP SECTION SCROLL NAVIGATOR
   ==================================================== */
.pg-scroll-nav {
    display: none;
}
@media (min-width: 1024px) {
    .pg-scroll-nav {
        display: flex;
    }
}
.pg-scroll-dot-circle {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.pg-scroll-dot--active .pg-scroll-dot-circle {
    background-color: var(--pg-accent) !important;
    border-color: var(--pg-accent) !important;
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}
.pg-scroll-dot--active {
    color: var(--pg-accent) !important;
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .pg-reveal,
    .pg-hero-reveal,
    .pg-card-reveal,
    .reveal,
    .marquee-track,
    .pg-scroll-hint {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .pg-process-line {
        transform: scaleX(1) !important;
    }

    details > .faq-body {
        max-height: 600px !important;
        opacity: 1 !important;
        transition: none !important;
    }
}
