/* =====================================================
   TranslateXYZ — Product Pages
   Loaded on /plugin/{slug}/ pages via extra_css
   ===================================================== */

/* ===========================================
   PRODUCT HERO — dark gradient, 2-col layout
   =========================================== */
.product-hero {
    position: relative;
    background:
        radial-gradient(900px 500px at 85% 30%, rgba(48,178,48,.18), transparent 55%),
        radial-gradient(700px 500px at 10% -10%, rgba(48,178,48,.08), transparent 60%),
        linear-gradient(160deg, #0A1A0A 0%, #051005 100%);
    color: var(--text-on-dark);
    padding: var(--sp-10) 0 var(--sp-11);
    overflow: hidden;
}
.product-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(900px 500px at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(900px 500px at 50% 30%, #000 30%, transparent 80%);
}

.product-hero .container { position: relative; z-index: 1; }

.product-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--sp-9);
    align-items: center;
}

.product-hero__content { position: relative; min-width: 0; }

/* Addon name chip — "AutoPoly · POLYLANG ADDON" */
.product-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    background: rgba(48,178,48,0.10);
    border: 1px solid rgba(48,178,48,0.30);
    border-radius: var(--r-pill);
    padding: 4px 14px 4px 4px;
    margin-bottom: var(--sp-5);
}
.product-hero__chip-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-500);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    padding: 4px 12px 4px 4px;
    border-radius: var(--r-pill);
    line-height: 1;
}
.product-hero__chip-name img {
    width: 18px; height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}
.product-hero__chip-sep {
    width: 1px;
    height: 14px;
    background: rgba(48,178,48,0.35);
}
.product-hero__chip-sub {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--green-300);
    letter-spacing: var(--ls-wider);
}

.product-hero__h1 {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extra);
    color: var(--text-on-dark-strong);
    letter-spacing: var(--ls-tighter);
    line-height: 1.05;
    margin-bottom: var(--sp-4);
}
.product-hero__h1-accent {
    color: var(--green-400);
    background: linear-gradient(180deg, var(--green-300), var(--green-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-hero__desc {
    font-size: var(--fs-md);
    color: var(--text-on-dark-muted);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--sp-6);
    max-width: 540px;
}

/* Inline 3-stat row */
.product-hero__stats {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
    padding: var(--sp-4) 0;
    margin-bottom: var(--sp-5);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.product-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
}
.product-hero__stat-ico {
    width: 22px; height: 22px;
    color: var(--green-400);
    flex-shrink: 0;
}
.product-hero__stat-val {
    font-size: var(--fs-lg);
    font-weight: var(--fw-extra);
    color: var(--text-on-dark-strong);
    line-height: 1;
    letter-spacing: var(--ls-tighter);
}
.product-hero__stat-lbl {
    font-size: 11px;
    color: var(--text-on-dark-muted);
    margin-top: 3px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}

.product-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-bottom: var(--sp-6);
}

/* btn-outline variant for dark hero */
.product-hero .btn-outline {
    color: var(--text-on-dark);
    border-color: var(--border-dark-strong);
}
.product-hero .btn-outline:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* Support team row */
.product-hero__support {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    align-self: flex-end;
}
.product-hero__support-img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}
.product-hero__support-label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-on-dark);
}

/* ===========================================
   PRODUCT HERO — Right side: Demo card with play button
   =========================================== */
.product-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex-direction: column;
}

.product-demo-card {
    appearance: none;
    background: linear-gradient(160deg, #16291A 0%, #0F2614 100%);
    border: 4px solid rgb(48 178 48 / 15%);
    border-radius: 18px;
    padding: 0;
    width: 100%;
    max-width: 560px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(48, 178, 48, 0.10), 0 0 80px rgba(48, 178, 48, 0.10);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    color: var(--text-on-dark);
}
.product-demo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(48,178,48,0.45);
    box-shadow:
        0 32px 72px rgba(0,0,0,0.55),
        0 0 0 1px rgba(48,178,48,0.20),
        0 0 100px rgba(48,178,48,0.18);
}
.product-demo-card:focus-visible {
    outline: none;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.5),
        0 0 0 3px rgba(48,178,48,0.55);
}

.product-demo-card__img {
    width: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
    transition: opacity var(--t-base), transform var(--t-base);
}
.product-demo-card::after {
    /* subtle vignette so the play button reads clearly on any image */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(closest-side, rgba(5,16,5,0.35), rgba(5,16,5,0) 65%);
    pointer-events: none;
}
.product-demo-card:hover .product-demo-card__img {
    transform: scale(1.01);
    opacity: 0.85;
}

/* ----- Play button: centered, glowing, with pulsing waves ----- */
.product-demo-card__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 82px; height: 82px;
    pointer-events: none;
    z-index: 2;
}

/* Static halo behind the button — gives it a constant green glow */
.product-demo-card__halo {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(48,178,48,0.55) 0%, rgba(48,178,48,0.15) 45%, transparent 70%);
    filter: blur(6px);
    z-index: 0;
}

/* 3 staggered pulsing rings */
.product-demo-card__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(48,178,48,0.45) 0%, rgba(52, 217, 52, 0.45) 55%, rgba(48,178,48,0) 70%);
    animation: product-demo-pulse 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
    z-index: 1;
}
.product-demo-card__pulse--1 { animation-delay: 0s;    }
.product-demo-card__pulse--2 { animation-delay: 0.85s; }
.product-demo-card__pulse--3 { animation-delay: 1.70s; }

@keyframes product-demo-pulse {
    0%   { transform: scale(0.9);  opacity: 0.9; }
    70%  {                          opacity: 0.15; }
    100% { transform: scale(2.3);  opacity: 0; }
}

/* Actual button: white circle with green play icon + crisp ring */
.product-demo-card__play-btn {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #ffffff 0%, #F3FBF3 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.10),
        0 0 0 1px rgba(48,178,48,0.35),
        0 14px 36px rgba(0,0,0,0.45),
        inset 0 -2px 6px rgba(48,178,48,0.10);
    transition: transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
    z-index: 2;
}
.product-demo-card__play-btn svg {
    width: 54px; height: 54px;
    margin-left: 2px; /* optical centering of triangle */
    filter: drop-shadow(0 2px 4px rgba(48,178,48,0.25));
}
.product-demo-card:hover .product-demo-card__play-btn,
.product-demo-card:focus-visible .product-demo-card__play-btn {
    transform: scale(1.08);
    color: var(--green-700);
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.16),
        0 0 0 1px rgba(48,178,48,0.55),
        0 18px 44px rgba(0,0,0,0.55),
        inset 0 -2px 6px rgba(48,178,48,0.12);
}

/* ===========================================
   SECONDARY STICKY NAV (product page)
   Slides down once the hero exits viewport
   =========================================== */
.product-stickynav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 26, 10, 0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(48,178,48,0.20);
    z-index: 45;
    transform: translateY(-100%);
    transition: transform var(--t-base);
    color: var(--text-on-dark);
}
.product-stickynav.is-visible {
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .product-stickynav { transition: none; }
}
.product-stickynav__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    padding: 10px var(--container-pad);
}
.product-stickynav__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    text-decoration: none;
    color: #fff;
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    flex-shrink: 0;
}
.product-stickynav__brand img {
    width: 28px; height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}
.product-stickynav__links {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.product-stickynav__links::-webkit-scrollbar { display: none; }
.product-stickynav__links li { flex-shrink: 0; }
.product-stickynav__links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    color: var(--text-on-dark-muted);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}
.product-stickynav__links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.product-stickynav__links a.is-active {
    color: var(--green-300);
    background: rgba(48,178,48,0.15);
}
.product-stickynav__cta {
    flex-shrink: 0;
}

/* ===========================================
   VIDEO LIGHTBOX MODAL
   =========================================== */
.product-video-modal[hidden] { display: none !important; }
.product-video-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-5);
    opacity: 0;
    transition: opacity var(--t-base);
}
.product-video-modal.is-open {
    opacity: 1;
}
.product-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.product-video-modal__dialog {
    position: relative;
    width: min(1080px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    transform: scale(0.96);
    transition: transform var(--t-base);
}
.product-video-modal.is-open .product-video-modal__dialog {
    transform: scale(1);
}
.product-video-modal__frame { width: 100%; height: 100%; }
.product-video-modal__frame iframe {
    width: 100%; height: 100%;
    border: 0;
    display: block;
}
.product-video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast);
}
.product-video-modal__close:hover { background: rgba(255,255,255,0.20); }
.product-video-modal__close svg { width: 14px; height: 14px; }
body.no-scroll { overflow: hidden; }

/* ===========================================
   FEATURED FEATURE (spotlight) — image left, content right
   =========================================== */
.product-spotlight__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-9);
    align-items: center;
}
.product-spotlight__visual {
    overflow: hidden;
    background: var(--bg-light-subtle);
}
.product-spotlight__visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.product-spotlight__content {
    min-width: 0;
}
.product-spotlight__content .eyebrow {
    display: inline-block;
    margin-bottom: var(--sp-3);
}
.product-spotlight__title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extra);
    color: var(--text-on-light-strong);
    letter-spacing: var(--ls-tighter);
    line-height: 1.15;
    margin: 0 0 var(--sp-4);
}
.product-spotlight__desc {
    font-size: var(--fs-md);
    color: var(--text-on-light);
    line-height: var(--lh-relaxed);
    margin: 0 0 var(--sp-5);
}
.product-spotlight__list {
    list-style: none;
    margin: 0 0 var(--sp-6);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.product-spotlight__list li {
    position: relative;
    padding-left: 30px;
    font-size: var(--fs-base);
    color: var(--text-on-light);
    line-height: var(--lh-snug);
}
.product-spotlight__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--green-500);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-7' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}
.product-spotlight__cta {
    align-self: flex-start;
}

/* ===========================================
   FEATURES SECTION
   =========================================== */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.product-feature {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.product-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
    border-color: var(--green-200);
}

.product-feature__icon {
    width: 48px; height: 48px;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
}
.product-feature__icon svg { width: 24px; height: 24px; }

.product-feature__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text-on-light-strong);
    margin-bottom: var(--sp-2);
}

.product-feature__desc {
    font-size: var(--fs-sm);
    color: var(--text-on-light);
    line-height: var(--lh-relaxed);
}

/* ===========================================
   WHY AUTOMATE — Manual vs AI comparison
   =========================================== */
.product-why__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--sp-5);
    align-items: stretch;
    margin-bottom: var(--sp-8);
}

.product-why__card {
    border-radius: var(--r-xl);
    padding: var(--sp-7);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.product-why__card--manual {
    background: #FFF7F6;
    border: 1px solid #F3D8D3;
}
.product-why__card--ai {
    background: linear-gradient(180deg, var(--green-50) 0%, var(--bg-light) 100%);
    border: 1px solid var(--green-200);
    box-shadow: 0 0 0 1px rgba(48,178,48,0.06), 0 14px 36px rgba(15,30,15,0.05);
}

/* Decorative VS chip */
.product-why__vs {
    align-self: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--neutral-200);
    color: var(--text-on-light-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-extra);
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15,30,15,0.06);
    flex-shrink: 0;
}

.product-why__head { display: flex; flex-direction: column; gap: 8px; }
.product-why__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    padding: 5px 10px;
    border-radius: var(--r-pill);
    align-self: flex-start;
}
.product-why__chip svg { width: 12px; height: 12px; }
.product-why__chip--bad  {
    background: #FBE2DE;
    color: #B83A2B;
    border: 1px solid #F3D8D3;
}
.product-why__chip--good {
    background: var(--green-100);
    color: var(--green-700);
    border: 1px solid var(--green-200);
}
.product-why__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-extra);
    color: var(--text-on-light-strong);
    letter-spacing: var(--ls-tighter);
    line-height: 1.15;
    margin: 0;
}

/* Lists with red ✕ or green ✓ circle bullets */
.product-why__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.product-why__list li {
    position: relative;
    padding-left: 30px;
    font-size: var(--fs-sm);
    color: var(--text-on-light);
    line-height: var(--lh-snug);
}
.product-why__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
}
.product-why__list--bad li::before {
    background-color: #E74C3C;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M5 5l6 6M11 5l-6 6' stroke='white' stroke-width='2.4' stroke-linecap='round'/></svg>");
    background-size: 14px 14px;
}
.product-why__list--good li::before {
    background-color: var(--green-500);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-7' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: 14px 14px;
}

/* Stat blocks at bottom of each card */
.product-why__stats {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-top: auto;
    padding-top: var(--sp-5);
    border-top: 1px dashed #00000018;
}
.product-why__card--ai .product-why__stats {
    border-top-color: var(--green-200);
}
.product-why__stat {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.product-why__stat-ico {
    width: 42px; height: 42px;
    flex-shrink: 0;
    padding: 6px;
    border-radius: var(--r-md);
}
.product-why__stat--bad .product-why__stat-ico {
    color: #B83A2B;
    background: #FBE2DE;
    border: 1px solid #F3D8D3;
}
.product-why__stat--good .product-why__stat-ico {
    color: var(--green-700);
    background: var(--green-100);
    border: 1px solid var(--green-200);
}
.product-why__stat-val {
    font-size: var(--fs-lg);
    font-weight: var(--fw-extra);
    line-height: 1;
    letter-spacing: var(--ls-tighter);
}
.product-why__stat--bad  .product-why__stat-val { color: #B83A2B; }
.product-why__stat--good .product-why__stat-val { color: var(--green-700); }
.product-why__stat-lbl {
    font-size: var(--fs-xs);
    color: var(--text-on-light-muted);
    margin-top: 4px;
    line-height: var(--lh-snug);
}

/* Footer band: tag line + CTA + disclaimer */
.product-why__footer {
    text-align: center;
}
.product-why__tag {
    font-size: var(--fs-md);
    color: var(--text-on-light);
    margin: 0 0 var(--sp-4);
    line-height: var(--lh-snug);
}
.product-why__tag strong {
    color: var(--green-700);
    font-weight: var(--fw-extra);
}
.product-why__disclaimer {
    font-size: var(--fs-xs);
    color: var(--text-on-light-muted);
    margin: var(--sp-4) auto 0;
    max-width: 720px;
    line-height: var(--lh-relaxed);
}

/* ===========================================
   AI PROVIDERS SECTION
   Single-row integration flow:
     [Plugin] → wave → [Addon] → wave → [Provider 2x3 grid]
   =========================================== */
.product-connect {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(60px, 0.25fr) minmax(0, 0.65fr) minmax(60px, 0.25fr) minmax(0, 2.5fr);
    align-items: stretch;
    gap: var(--sp-3);
    margin-bottom: var(--sp-7);
}

/* ----- Nodes (plugin & addon) ----- */
.product-connect__node {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.product-connect__node:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}
.product-connect__node--addon {
    border-color: var(--green-300);
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--green-50) 100%);
    box-shadow: 0 4px 14px rgba(48,178,48,0.12);
}
.product-connect__role {
    font-size: 10px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-on-light-muted);
    margin-bottom: 4px;
}
.product-connect__node--addon .product-connect__role {
    color: var(--green-700);
}
.product-connect__icon {
    width: 56px; height: 56px;
    border-radius: var(--r-md);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light-subtle);
    border: 1px solid var(--border-light);
    margin-bottom: 4px;
}
.product-connect__icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.product-connect__node--addon .product-connect__icon {
    border-color: var(--green-200);
}
.product-connect__name {
    font-size: var(--fs-md);
    font-weight: var(--fw-extra);
    color: var(--text-on-light-strong);
    letter-spacing: var(--ls-tight);
    line-height: 1.2;
}
.product-connect__sub {
    font-size: var(--fs-xs);
    color: var(--text-on-light-muted);
    line-height: var(--lh-snug);
}

/* ----- Animated connection waves ----- */
.product-connect__wave {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin-left: -20px;
    margin-right: -20px;
    z-index: 1;
}
.product-connect__wave svg {
    width: 100%;
    height: 60px;
    overflow: visible;
}
.product-connect__wave svg path {
    fill: none;
    stroke: var(--green-400);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 6;
    animation: product-connect-flow 2.4s linear infinite;
    opacity: 0.85;
}
.product-connect__wave-2 {
    opacity: 0.45 !important;
    animation-direction: reverse !important;
    animation-duration: 3.4s !important;
}
@keyframes product-connect-flow {
    to { stroke-dashoffset: -22; }
}
@media (prefers-reduced-motion: reduce) {
    .product-connect__wave svg path { animation: none; }
}

/* ----- Provider grid: header + 2 x 3 cards ----- */
.product-connect__providers {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-4) var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    min-width: 0;
}
.product-connect__providers-head {
    text-align: center;
}
.product-connect__providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--sp-2);
    flex: 1;
}

/* Individual provider tile — compact, clickable */
.product-connect__provider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--sp-3);
    background: var(--bg-light-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    text-decoration: none;
    color: inherit;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
    min-width: 0;
    position: relative;
    flex-direction: column;
    text-align: center;
}
.product-connect__provider:hover {
    background: var(--bg-light);
    border-color: var(--green-300);
    transform: translateY(-1px);
    box-shadow: var(--sh-sm);
}
.product-connect__provider--inactive {
    opacity: 0.55;
    cursor: default;
}
.product-connect__provider--inactive:hover {
    background: var(--bg-light-subtle);
    border-color: var(--border-light);
    transform: none;
    box-shadow: none;
}
.product-connect__provider-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--bg-light-muted);
}
.product-connect__provider-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-on-light-strong);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
/* ----- Section CTA below the integration flow ----- */
.product-providers-cta {
    text-align: center;
    margin-top: var(--sp-3);
}

/* Reviews section CSS moved to product-reviews.css
   (shared between homepage + product pages — smaller homepage payload). */

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .product-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--sp-7);
    }
    .product-hero__chip { margin-left: auto; margin-right: auto; }
    .product-hero__desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .product-hero__stats { justify-content: center; }
    .product-hero__actions { justify-content: center; }
    .product-hero__support { justify-content: center; margin-left: auto; margin-right: auto; }
    .product-hero__visual { order: -1; }

    .product-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Featured feature: stack with image on top */
    .product-spotlight__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }
    .product-spotlight__visual img { aspect-ratio: 16 / 10; }
    .product-spotlight__title { font-size: var(--fs-2xl); }

    /* Why-automate: stack the two cards with VS rotating to a between-row chip */
    .product-why__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }
    .product-why__vs {
        justify-self: center;
        width: 40px; height: 40px;
        font-size: var(--fs-xs);
    }

    /* Integration flow: stack vertically, waves rotate to vertical */
    .product-connect {
        grid-template-columns: 1fr;
        padding: var(--sp-5);
    }
    .product-connect__wave svg {
        width: 100px;
        transform: rotate(90deg);
    }
    .product-connect__providers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-stickynav__links { gap: 0; }
    .product-stickynav__links a { padding: 6px 10px; font-size: var(--fs-xs); }
}

@media (max-width: 768px) {
    .product-hero { padding: var(--sp-7) 0 var(--sp-9); }
    .product-hero__h1 { font-size: var(--fs-3xl); }
    .product-hero__stats { gap: var(--sp-4); padding: var(--sp-3) 0; }
    .product-hero__stat-val { font-size: var(--fs-md); }
    .product-demo-card__play { width: 76px; height: 76px; }
    .product-demo-card__play-btn svg { width: 28px; height: 28px; }
    .product-why__card { padding: var(--sp-5); }
    .product-why__title { font-size: var(--fs-lg); }
    .product-why__stat-val { font-size: var(--fs-2xl); }

    /* Sticky nav: hide brand label on mobile, show icon only */
    .product-stickynav__brand span { display: none; }
    .product-stickynav__cta { padding: 8px 12px; font-size: var(--fs-xs); }
    .product-video-modal__close { top: 8px; right: 8px; background: rgba(0,0,0,0.6); }

    .product-connect { padding: var(--sp-4); gap: var(--sp-2); }
    .product-connect__wave svg { width: 88px; }
    .product-hero__support { flex-direction: column;}
}

@media (max-width: 640px) {
    .product-features-grid { grid-template-columns: 1fr; }
    .product-hero__stats { align-items: flex-start; gap: var(--sp-3); }
    .product-providers-cta {
        display: flex;
        flex-direction: column;
        gap: var(--sp-3);
    }
    .product-cp-side__stat {
        border-right: 0 !Important;
        padding-left: 0 !IMPORTANT;
        padding-right: 0 !IMPORTANT;
    }

    .product-connect__providers-grid { grid-template-columns: repeat(2, 1fr); }
}
