.floating-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.floating-shape-1 {
    top: 15%;
    left: 10%;
    animation: floating 8s ease-in-out infinite;
}
.floating-shape-2 {
    top: 20%;
    right: 10%;
    animation: floating 12s ease-in-out infinite;
}
.floating-shape-3 {
    bottom: 15%;
    left: 15%;
    animation: floating 9s ease-in-out infinite;
}
.floating-shape-4 {
    bottom: 25%;
    right: 15%;
    animation: floating 10s ease-in-out infinite;
}
.floating-shape-5 {
    top: 40%;
    left: 30%;
    animation: floating2 11s ease-in-out infinite;
}
.floating-shape-6 {
    top: 35%;
    right: 35%;
    animation: floating2 9s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floating2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.geometric-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.shape-1 {
    top: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    border-radius: 30%;
    background: linear-gradient(45deg, #8f76f5, #a65cef);
    transform: rotate(45deg);
}

.shape-2 {
    bottom: 15%;
    right: 5%;
    width: 180px;
    height: 180px;
    border-radius: 40%;
    background: linear-gradient(45deg, #e754a4, #ff6472);
    transform: rotate(30deg);
}

.animated-line {
    position: absolute;
    z-index: 0;
    height: 2px;
    opacity: 0.2;
    background: linear-gradient(90deg, transparent, #8f76f5, #ff6472, transparent);
}

.line-1 {
    top: 30%;
    left: 0;
    width: 100%;
    animation: line-animate 15s linear infinite;
}

.line-2 {
    top: 60%;
    left: 0;
    width: 100%;
    animation: line-animate 20s linear infinite reverse;
}

@keyframes line-animate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Sliding box styles */
.text-gradient-peacock-crome {
    background: linear-gradient(to right, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced smooth scrolling behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS devices */
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 60px; /* Less padding on mobile */
        scroll-snap-type: y proximity; /* Less strict scroll snap for mobile */
    }
    
    /* Optimize touch scrolling interaction */
    body {
        overscroll-behavior-y: contain; /* Prevent overscroll bouncing */
        touch-action: pan-y; /* Allow vertical scrolling but prevent unnecessary horizontal movement */
    }
}

/* Smooth scroll for all anchor links */
a[href^="#"]:not(.btn):not(.dl-cta):not(.dl-gate-trigger):not(.dl-card) {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

a[href^="#"]:not(.btn):not(.dl-cta):not(.dl-gate-trigger):not(.dl-card):hover {
    text-shadow: 0 0 8px rgba(143, 118, 245, 0.3);
}

/* Subtle underline animation — excluded from button-style links */
a[href^="#"]:not(.btn):not(.dl-cta):not(.dl-gate-trigger):not(.dl-card)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a[href^="#"]:not(.btn):not(.dl-cta):not(.dl-gate-trigger):not(.dl-card):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Remove conflicting animations */
a[href^="#"]:not(.btn):not(.dl-cta):not(.dl-gate-trigger):not(.dl-card):hover {
    animation: none;
}

/* Specific styles for the "Check out our previous projects" link */
.text-jade-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-jade-hover:hover {
    color: #8f76f5 !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Add a subtle glow effect on hover */
.text-jade-hover:hover {
    text-shadow: 0 0 15px rgba(143, 118, 245, 0.2);
}

/* Smooth scroll link styling */
.smooth-scroll {
    position: relative;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
}

.smooth-scroll::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #8f76f5, #a65cef);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-scroll:hover {
    color: #8f76f5;
    transform: translateY(-1px);
}

.smooth-scroll:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Refined scroll animation sequence */
@keyframes scrollSequence {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add a subtle glow pulse */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 3px rgba(143, 118, 245, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(143, 118, 245, 0.3);
    }
    100% {
        box-shadow: 0 0 3px rgba(143, 118, 245, 0.2);
    }
}

/* Modern scroll animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhance button styling for better touch targets */
.btn-gradient-peacock-blue-crome-yellow {
    background: linear-gradient(45deg, #8f76f5, #a65cef);
    color: white;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-peacock-blue-crome-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(143, 118, 245, 0.2);
    color: white;
}

.btn-gradient-peacock-blue-crome-yellow:active {
    transform: translateY(0);
}

.btn-gradient-peacock-blue-crome-yellow.btn-rounded {
    border-radius: 30px;
    padding: 12px 30px;
}

/* Improved mobile touch targets */
@media (max-width: 767px) {
    .btn {
        min-height: 44px; /* iOS recommended minimum */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-gradient-peacock-blue-crome-yellow.btn-rounded {
        padding: 12px 25px;
    }
    
    #features .btn-gradient-peacock-blue-crome-yellow {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Improve form elements for touch */
    input, button.submit {
        min-height: 44px;
    }
    
    .newsletter-style-03 {
        width: 100% !important;
    }
    
    .newsletter-style-03 .input-large {
        padding-right: 90px;
        text-align: center;
    }
    
    .newsletter-style-03 .submit {
        position: absolute;
        right: 0;
        top: 0;
        min-width: 80px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .newsletter-style-03 .submit span {
        display: none;
    }
    
    .newsletter-style-03 .submit i {
        margin-right: 0;
    }
    
    /* Ensure text doesn't overflow on small screens */
    .text-dark-gray, .fs-26, .fs-19, p {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        word-break: break-word;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    
    /* Prevent horizontal scrolling */
    .container, .container-fluid {
        overflow-x: hidden;
    }
    
    /* Adjust line height for better readability */
    .lh-32 {
        line-height: 1.4 !important;
    }
    
    /* Fix for extra-large margins on small screens */
    .mb-35px {
        margin-bottom: 25px !important;
    }
    
    /* Fix for overflow on marquee text */
    .marquees-text {
        opacity: 1 !important;
        font-size: clamp(3rem, 2rem + 5vw, 15.625rem) !important;
    }
    
    .sliding-box-content {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .btn-gradient-peacock-blue-crome-yellow.btn-rounded {
        padding: 10px 20px;
    }
    
    .newsletter-style-03 {
        margin-bottom: 30px;
    }
    
    .newsletter-style-03 .form-results {
        padding: 10px !important;
        margin-top: 10px !important;
    }
    
    .sliding-box-content {
        font-size: 12px !important;
    }
}

/* Logo positioning and styling */
.procureai-logo {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    padding-top: 15vh;
    display: block;
    transition: all 0.3s ease;
}

/* Add specific media query for 1280px width screens */
@media (max-width: 1280px) {
    /* Logo size adjustment */
    .procureai-logo {
        max-width: 320px;
        padding-top: 8vh;
    }
    
    /* Text size adjustments */
    .fs-90, .xl-fs-80 {
        font-size: 70px !important;
    }
    
    .fs-19, .fs-26 {
        font-size: 16px !important;
    }
    
    .lh-32 {
        line-height: 1.4 !important;
    }
    
    /* Reduce vertical spacing */
    .mb-35px {
        margin-bottom: 20px !important;
    }
    
    .mb-9, .mt-9 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Sliding box adjustments */
    #features .sliding-box-item {
        transform: scale(0.92);
        margin-bottom: 20px;
    }
    
    .sliding-box-content {
        padding: 40px !important;
    }
    
    .sliding-box-img {
        min-height: 360px !important;
    }
    
    /* Form and button adjustments */
    .newsletter-style-03 {
        margin-bottom: 15px;
    }
    
    /* Adjust marquee position */
    .marquees-text {
        bottom: 70px !important;
        font-size: clamp(4rem, 3rem + 5vw, 15.625rem) !important;
    }
    
    /* Reduce "Explore" section spacing */
    .row.justify-content-center.mt-120px {
        margin-top: 20px !important;
    }
    
    /* Make countdown smaller */
    .countdown-style-03 .countdown-box {
        width: 100px !important;
        margin: 0 10px !important;
    }
    
    .countdown-style-03 .countdown-box .number {
        font-size: 3.2rem !important;
        line-height: 3.2rem !important;
    }
    
    .countdown-style-03 .countdown-box span {
        font-size: 12px !important;
        line-height: 14px !important;
    }
}

@media (max-width: 991px) {
    .procureai-logo {
        padding-top: 12vh;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .procureai-logo {
        padding-top: 10vh;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .procureai-logo {
        padding-top: 8vh;
        max-width: 240px;
    }
}

@media (max-width: 375px) {
    .procureai-logo {
        padding-top: 6vh;
        max-width: 220px;
    }
}

/* Full screen sections */
.full-screen {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Section transitions */
#hero, #features {
    transition: transform 0.5s ease-in-out;
}

/* Visual separator between sections */
#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(143, 118, 245, 0.3), transparent);
}

/* Adjust container for full height */
.container-fluid.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive adjustments for full-screen sections */
@media (max-width: 991px) {
    .full-screen {
        height: auto;
        min-height: 100vh;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .container-fluid.h-100 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    #hero {
        position: relative;
        overflow: hidden;
    }
    
    #features {
        padding-top: 70px;
    }
}

@media (max-width: 767px) {
    .full-screen {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .container-fluid.h-100 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    #features {
        padding-top: 50px;
    }
}

/* Explore section styling */
.explore-section {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 10;
}

.explore-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.explore-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Update the existing row styles */
@media (min-width: 1400px) {
  .row.justify-content-center.mt-120px {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
@media (max-width: 1399px) {
  .row.justify-content-center.mt-120px {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    margin-top: 40px !important;
    padding-top: 0 !important;
    text-align: center;
  }
  .explore-text {
    font-size: 16px;
    padding: 12px 18px;
  }
}

/* Features section animation */
#features {
    position: relative;
    overflow: hidden;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(143,118,245,0.03) 100%);
    z-index: 0;
}

#features .sliding-box-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    position: relative;
}

#features .sliding-box-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(143,118,245,0.1);
}

#features .sliding-box-item.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(143,118,245,0.1);
}

#features .sliding-box-item .content-hover {
    transition: all 0.3s ease;
}

#features .sliding-box-item:hover .content-hover {
    transform: translateY(-2px);
}

#features .btn-gradient-peacock-blue-crome-yellow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#features .btn-gradient-peacock-blue-crome-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143,118,245,0.15);
}

#features .btn-gradient-peacock-blue-crome-yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.6s ease;
}

#features .btn-gradient-peacock-blue-crome-yellow:hover::before {
    left: 100%;
}

.sliding-box-img {
    min-height: 440px !important;
}

/* Responsive sliding box adjustments */
@media (max-width: 991px) {
    .sliding-box-img {
        min-height: 360px !important;
    }
    
    .sliding-box-item {
        margin-bottom: 30px !important;
    }
    
    .sliding-box-content {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .sliding-box-img {
        min-height: 280px !important;
    }
    
    .sliding-box-content {
        min-height: 0;
    }
    
    #features .sliding-box-item {
        margin-bottom: 40px !important;
    }
    
    #features .sliding-box-item:last-child {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .sliding-box-img {
        min-height: 220px !important;
    }
}

@media (max-width: 1280px) and (min-width: 1024px) {
  .row.justify-content-center.mt-120px {
    margin-top: 28px !important;
  }
  .explore-text {
    font-size: 15px;
    padding: 10px 14px;
  }
}
@media (max-width: 1023px) and (min-width: 769px) {
  .row.justify-content-center.mt-120px {
    margin-top: 18px !important;
  }
  .explore-text {
    font-size: 14px;
    padding: 8px 10px;
  }
}
@media (max-width: 480px) {
  .explore-text {
    font-size: 13px;
    padding: 6px 6px;
  }
}

@media (max-width: 1920px) and (min-width: 1601px) {
  .explore-text { font-size: 18px; padding: 14px 22px; }
  .row.justify-content-center.mt-120px { margin-top: 48px !important; }
}
@media (max-width: 1600px) and (min-width: 1400px) {
  .explore-text { font-size: 17px; padding: 13px 20px; }
  .row.justify-content-center.mt-120px { margin-top: 44px !important; }
}
@media (max-width: 768px) and (min-width: 481px) {
  .explore-text { font-size: 13.5px; padding: 7px 8px; }
  .row.justify-content-center.mt-120px { margin-top: 10px !important; }
}
@media (max-width: 375px) {
  .explore-text { font-size: 12px; padding: 4px 2px; }
}

/* Fluid Typography for better text scaling */
:root {
  --base-font-size: 16px;
  --fluid-typography-ratio: 0.5vw;
}

body {
  font-size: var(--base-font-size);
}

@media (max-width: 767px) {
  :root {
    --base-font-size: 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --base-font-size: 13px;
  }
}

.fs-19, .fs-26 {
  font-size: clamp(0.9rem, 0.8rem + var(--fluid-typography-ratio), 1.19rem);
}

/* Single unified marquee implementation */
.marquees-text {
  position: absolute;
  bottom: 95px !important;
  left: 0;
  transform: translateX(35%);
  animation: marqueeAnimation 180s linear 3s infinite;
  width: max-content;
  min-width: 100%;
  font-size: clamp(5.5rem, 4.5rem + 5vw, 18rem) !important;
  white-space: nowrap;
  overflow: visible;
  opacity: 0.3 !important;
  display: inline-block;
  color: rgba(51, 51, 51, 0.85) !important;
  text-shadow: 0px 0px 1px rgba(143, 118, 245, 0.15);
  letter-spacing: -0.05em;
  z-index: 1;
  pointer-events: none;
}

/* Single keyframes definition */
@keyframes marqueeAnimation {
  from {
    transform: translateX(35%);
  }
  to {
    transform: translateX(-150%);
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .marquees-text {
    font-size: clamp(4rem, 3rem + 5vw, 15.625rem) !important;
    bottom: 50px !important;
    animation-duration: 150s;
    opacity: 0.35 !important;
  }
}

@media (max-width: 480px) {
  .marquees-text {
    font-size: clamp(3.5rem, 2.5rem + 5vw, 15.625rem) !important;
    bottom: 40px !important;
    animation-duration: 120s;
    opacity: 0.3 !important;
  }
}

/* Make floating shapes responsive */
@media (max-width: 767px) {
    .floating-shape img {
        max-width: 80%;
        height: auto;
    }
    .floating-shape-1 {
        top: 10%;
        left: 5%;
    }
    .floating-shape-2 {
        top: 15%;
        right: 5%;
    }
    .floating-shape-3 {
        bottom: 25%;
        left: 8%;
    }
    .floating-shape-4 {
        bottom: 30%;
        right: 8%;
    }
    .floating-shape-5, .floating-shape-6 {
        display: none; /* Hide some shapes on mobile for better performance */
    }
}

@media (max-width: 480px) {
    .floating-shape img {
        max-width: 60%;
        height: auto;
    }
    .floating-shape-3, .floating-shape-4 {
        display: none; /* Hide more shapes on smaller screens */
    }
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
  .marquees-text {
    font-size: clamp(2.5rem, 1.5rem + 5vw, 15.625rem) !important;
    bottom: 80px !important;
  }
}

/* Custom Marquee Text Styles for Mobile */
@media (max-width: 767px) {
    .marquees-text.ls-minus-10px {
        font-size: 3rem !important;
        letter-spacing: -2px !important;
    }
}

@media (max-width: 575px) {
    .marquees-text.ls-minus-10px {
        font-size: 2.5rem !important;
        letter-spacing: -1px !important;
    }
    
    .marquees-text.mobile-visible {
        font-size: 2.8rem !important;
        opacity: 0.45 !important;
        bottom: 50px !important;
    }
}

@media (max-width: 480px) {
  .marquees-text {
    font-size: clamp(3.5rem, 2.5rem + 5vw, 15.625rem) !important;
    bottom: 50px !important;
  }
  
  .marquees-text.mobile-visible {
    font-size: 2.6rem !important;
    opacity: 0.5 !important;
    letter-spacing: -1px !important;
  }
}

/* Adjust hero subtitle text for better readability on mobile */
@media (max-width: 767px) {
    #hero .text-center > span.fs-19.d-block {
        font-size: 1.1rem !important; /* Increased for better readability */
        line-height: 1.5 !important;   /* Adjusted for new font size */
        margin-bottom: 30px !important; /* Fine-tune spacing below */
    }
}

@media (max-width: 575px) {
    #hero .text-center > span.fs-19.d-block {
        font-size: 1.0rem !important; /* Further refinement for very small screens */
        line-height: 1.45 !important;
        margin-bottom: 25px !important; /* Align with existing mobile margin for this class if appropriate */
    }
}

/* Custom styles for mobile visibility */
.mobile-visible {
  visibility: visible !important;
  opacity: 0.3 !important;
}

/* Custom Marquee Text Styles for Mobile */
@media (max-width: 767px) {
    .marquees-text.mobile-visible {
        font-size: 3.2rem !important;
        letter-spacing: -3px !important;
        opacity: 0.4 !important;
        bottom: 60px !important;
    }
    
    .marquees-text.ls-minus-10px {
        font-size: 3rem !important;
        letter-spacing: -2px !important;
    }
}

@media (max-width: 375px) {
  .marquees-text.mobile-visible {
    font-size: 2.2rem !important;
    opacity: 0.55 !important;
    letter-spacing: -1px !important;
    bottom: 45px !important;
  }
}

/* CSS-based floating circles */
.shape-circle {
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-shape-1 .shape-circle {
    opacity: 0.6;
    animation: pulse 4s infinite ease-in-out;
}

.floating-shape-2 .shape-circle {
    opacity: 0.4;
    animation: pulse 5s infinite ease-in-out 0.5s;
}

.floating-shape-3 .shape-circle {
    opacity: 0.5;
    animation: pulse 6s infinite ease-in-out 1s;
}

.floating-shape-4 .shape-circle {
    opacity: 0.6;
    animation: pulse 4.5s infinite ease-in-out 1.5s;
}

.floating-shape-5 .shape-circle {
    opacity: 0.3;
    animation: pulse 5.5s infinite ease-in-out 2s;
}

.floating-shape-6 .shape-circle {
    opacity: 0.4;
    animation: pulse 3.5s infinite ease-in-out 2.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Fix will-change memory consumption issues */
.will-change-transform *,
.will-change-transform,
[class*="box"] *,
.sliding-box *,
.portfolio-box,
.gallery-box,
.feature-box .content-slide-up,
.interactive-banner-style-02.hover-box *,
.process-step-style-03.hover-box *,
.rotate-box-style-01 *,
.portfolio-modern .portfolio-box,
.portfolio-transform .portfolio-box,
.portfolio-creative .portfolio-box,
.portfolio-boxed .portfolio-box,
.blog-grid .card .card-body .author,
.threeD-letter-menu .menu-item .hover-reveal .hover-reveal__img {
    will-change: auto !important;
}

/* Only use will-change for critical animations */
.floating-shape,
.animated-line,
.btn-gradient-peacock-blue-crome-yellow:hover {
    will-change: transform;
}

/* Reset will-change on smaller devices to save memory */
@media (max-width: 767px) {
    [class*="box"] *,
    .portfolio-box,
    .gallery-box,
    .feature-box .content-slide-up,
    .floating-shape,
    .animated-line {
        will-change: auto !important;
    }
}

/* ===================================================================
   Freebie-suite sections (hero v2, suite cards, SOTA, OpenClaude)
   =================================================================== */

/* Reusable gradient backgrounds */
.bg-gradient-purple        { background: linear-gradient(135deg, #8f76f5 0%, #a65cef 100%); }
.bg-gradient-violet        { background: linear-gradient(135deg, #a65cef 0%, #c74ad2 100%); }
.bg-gradient-pink          { background: linear-gradient(135deg, #c74ad2 0%, #e754a4 100%); }
.bg-gradient-coral         { background: linear-gradient(135deg, #e754a4 0%, #ff6472 100%); }
.bg-gradient-jade          { background: linear-gradient(135deg, #00bfae 0%, #8f76f5 100%); }
.bg-gradient-peacock-crome { background: linear-gradient(135deg, #8f76f5 0%, #c74ad2 50%, #ff6472 100%); }
.bg-gradient-purple-soft   { background: linear-gradient(135deg, rgba(143,118,245,0.08) 0%, rgba(231,84,164,0.08) 100%); }

/* Suite cards */
.suite-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    border: 1px solid rgba(143, 118, 245, 0.06);
}
.suite-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(143, 118, 245, 0.25), 0 12px 30px -10px rgba(231, 84, 164, 0.15) !important;
}
.suite-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -6px rgba(143, 118, 245, 0.4);
}
.suite-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(143, 118, 245, 0.08);
    color: #6a4ad8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* SOTA badges (on dark band) */
.sota-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
.sota-badge:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

/* CPO use-case cards */
.usecase-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid transparent;
}
.usecase-card:hover {
    transform: translateY(-3px);
    border-color: rgba(143, 118, 245, 0.2);
    box-shadow: 0 20px 40px -20px rgba(143, 118, 245, 0.2);
}
.usecase-num {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-right: 25px;
    flex-shrink: 0;
    letter-spacing: -2px;
}
@media (max-width: 575px) {
    .usecase-num { font-size: 40px; margin-right: 15px; }
}

/* OpenClaude features on dark band */
.openclaude-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.openclaude-feature:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    border-color: rgba(143, 118, 245, 0.3);
}

/* Transparent white outline button (for "or start with free suite first" CTA) */
.btn-transparent-white-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.btn-transparent-white-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* Trust strip gap utility (in case Bootstrap version doesn't ship gap-*) */
.gap-10px  { gap: 10px; }
.gap-15px  { gap: 15px; }
.gap-30px  { gap: 30px; }

/* Stats band — keep numbers crisp on gradient bg */
.bg-gradient-peacock-crome .opacity-9 { opacity: 0.92; }

/* Accordion polish */
.accordion-style-04 .accordion-button {
    padding: 22px 25px;
    background: transparent;
    box-shadow: none;
    border: 0;
    font-size: 16px;
}
.accordion-style-04 .accordion-button:not(.collapsed) {
    color: #8f76f5;
    background: rgba(143, 118, 245, 0.04);
}
.accordion-style-04 .accordion-button:focus { box-shadow: none; }
.accordion-style-04 .accordion-body {
    padding: 0 25px 22px;
}

/* Footer link hover */
footer a:hover { opacity: 1 !important; color: #fff !important; }

/* Section padding helpers */
.pt-6 { padding-top: 70px; }
.pb-6 { padding-bottom: 70px; }
.pt-7 { padding-top: 100px; }
.pb-7 { padding-bottom: 100px; }
@media (max-width: 767px) {
    .pt-6, .pt-7 { padding-top: 50px; }
    .pb-6, .pb-7 { padding-bottom: 50px; }
}

/* Override the original hero full-screen so the page actually scrolls */
html { scroll-snap-type: none; }
#hero.full-screen { height: auto; min-height: 100vh; }
@media (max-width: 991px) {
    #hero.full-screen { height: auto; min-height: 90vh; }
}

/* Bring page elements above the hero marquee on shorter viewports */
#hero .marquees-text { z-index: 0; opacity: 0.06 !important; }

/* Inline form result colors */
.bg-light-green { background-color: #d1f5e0 !important; color: #137b3e !important; }
.bg-light-red   { background-color: #fde0e2 !important; color: #b3121a !important; }

/* =======================================================================
   v2 (moleculeone-IA inspired): sticky nav, hero, why-grid, skills,
   readiness, resources, modal
   ======================================================================= */

/* Sticky nav */
.pai-nav {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(143,118,245,0.08);
    padding: 14px 0;
}
.pai-nav-logo img { height: 32px; width: auto; }
.pai-nav-links { gap: 28px; }
.pai-nav-links a {
    color: #383838;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pai-nav-links a:hover { color: #8f76f5; }
.pai-nav .btn-small { padding: 8px 18px; font-size: 13px; }
@media (max-width: 991px) {
    .pai-nav-links { display: none !important; }
}

/* Hero (v2 — clean, centered, dual-CTA) */
.pai-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #faf9ff 60%, #fff5fa 100%);
    overflow: hidden;
}
.pai-hero-inner { position: relative; z-index: 9; }
.bg-white-opacity-80 { background: rgba(255,255,255,0.85) !important; }
.gap-12px { gap: 12px; }
.gap-15px { gap: 15px; }
.gap-20px { gap: 20px; }
@media (max-width: 767px) {
    .pai-hero { padding: 90px 0 50px; }
}

.pai-hero-form {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 90px;
}
.pai-hero-form:hover { transform: translateY(-2px); }
.pai-hero-input { padding: 14px 18px; }
.pai-hero-input:focus { box-shadow: none; outline: none; }

/* ---------- Hero form v2 — bigger, more decisive, with chromatic accent ---------- */
.pai-hero-form-v2 {
    padding: 36px 32px 28px;
    border-radius: 18px;
    border: 1px solid rgba(143,118,245,0.18);
    box-shadow: 0 24px 60px -20px rgba(143,118,245,0.35), 0 8px 24px -8px rgba(0,0,0,0.08);
    position: relative;
}
@media (max-width: 575px) {
    .pai-hero-form-v2 { padding: 28px 22px 22px; border-radius: 14px; }
}

/* Gradient accent bar at the top of the card */
.pai-hero-form-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8f76f5 0%, #c74ad2 50%, #ff6472 100%);
}

/* Big, sleek email input */
.pai-hero-form-v2 .pai-hero-input {
    padding: 16px 18px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.pai-hero-form-v2 .pai-hero-input::placeholder { color: #9aa0aa; }
.pai-hero-form-v2 .pai-hero-input:focus {
    border-color: #8f76f5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(143,118,245,0.12);
    outline: none;
}

/* Submit button polish — slightly taller + a soft glow */
.pai-hero-form-v2 .pai-hero-submit {
    padding: 16px 24px;
    font-size: 15px;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px -8px rgba(143,118,245,0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.pai-hero-form-v2 .pai-hero-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(143,118,245,0.65);
}

/* Trust markers — light, with coloured dots instead of dark pills */
.pai-hero-meta {
    gap: 8px 18px;
    font-size: 12px;
    color: #6a6a6a;
    font-weight: 500;
}
.pai-hero-meta .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
    transform: translateY(-1px);
}

/* ---------- "How to use" 3-step cards ---------- */
.how-step {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 14px -8px rgba(143,118,245,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.how-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px rgba(143,118,245,0.35);
}
.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f76f5 0%, #c74ad2 100%);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 6px 14px -4px rgba(143,118,245,0.45);
}
.how-step code {
    background: rgba(143,118,245,0.08);
    color: #6a4ad8;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ---------- "Free tools" / "Pages" footer link spacing ---------- */
.pai-policy-body h2 { margin-top: 30px; }
.pai-policy-body h2:first-child { margin-top: 0; }

.btn-outline-dark-gray {
    background: transparent;
    color: #232323;
    border: 1.5px solid rgba(35,35,35,0.2);
    padding: 12px 28px;
    transition: all 0.3s ease;
}
.btn-outline-dark-gray:hover {
    background: #232323;
    color: #fff;
    border-color: #232323;
    transform: translateY(-2px);
}

/* Trust strip */
.pai-trust { padding: 32px 0; border-top: 1px solid rgba(0,0,0,0.04); }

/* Generic section paddings */
.pai-section { padding: 100px 0; }
.pai-section-tight { padding: 60px 0; }
@media (max-width: 767px) {
    .pai-section { padding: 60px 0; }
    .pai-section-tight { padding: 40px 0; }
}

/* "Why" cards (6-card 3x2 grid) */
.why-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    border: 1px solid rgba(0,0,0,0.02);
}
.why-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 20px 50px -20px rgba(143,118,245,0.25);
}
.why-ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(143,118,245,0.35);
}

/* Skills library + Insights — filter pills (shared styling) */
.skill-filter,
.insight-filter {
    background: #fff;
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 4px 20px -8px rgba(0,0,0,0.08);
    border: 1px solid rgba(143,118,245,0.06);
}
.skill-filter-btn,
.insight-filter-btn {
    background: transparent;
    border: 0;
    padding: 9px 20px;
    border-radius: 100px;
    color: #6a6a6a;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}
.skill-filter-btn:hover,
.insight-filter-btn:hover { color: #8f76f5; }
.skill-filter-btn.active,
.insight-filter-btn.active {
    background: linear-gradient(135deg, #8f76f5 0%, #c74ad2 50%, #ff6472 100%);
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(143,118,245,0.4);
}
@media (max-width: 575px) {
    .skill-filter-btn,
    .insight-filter-btn { padding: 7px 14px; font-size: 12px; }
}

/* Skills section badge — subtle glow lift */
.skills-section-badge {
    letter-spacing: 1.4px;
    box-shadow: 0 6px 24px -6px rgba(143, 118, 245, 0.45);
}

/* Category headers */
.skill-cat-header {
    display: flex; align-items: center;
    margin-top: 18px;
}
.skill-cat-header .cat-bar {
    display: inline-block;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    border-radius: 100px;
    margin-right: 15px;
}

/* Skill cards */
.skill-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 26px 28px;
    border: 1px solid rgba(143,118,245,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
    min-height: 100%;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px -22px rgba(143,118,245,0.3);
    border-color: rgba(143,118,245,0.25);
}
.skill-ico {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 14px -4px rgba(143,118,245,0.35);
}
.skill-ico i { color: #fff; font-size: 20px; }
.skill-name {
    font-size: 22px;
    font-weight: 700;
    color: #232323;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.skill-tagline {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}
.skill-desc {
    font-size: 14px;
    color: #6a6a6a;
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.skill-tags span {
    background: rgba(143,118,245,0.08);
    color: #6a4ad8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}
.skill-cta {
    background: transparent;
    border: 0;
    color: #232323;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 0;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.skill-cta:hover {
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-cta i { font-size: 14px; transition: transform 0.2s ease; }
.skill-cta:hover i { transform: translateX(3px); }

/* ROI band stats */
.roi-stats { box-shadow: 0 30px 60px -20px rgba(143,118,245,0.35); }
.opacity-85 { opacity: 0.85; }

/* Resource cards (2-col) */
.resource-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(143,118,245,0.06);
    color: inherit;
    cursor: pointer;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -20px rgba(143,118,245,0.25);
    color: inherit;
}
.resource-ico {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px -3px rgba(143,118,245,0.35);
}
.resource-ico i { color: #fff; font-size: 19px; }

/* OpenClaude features */
.oc-feature {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}
.oc-feature:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-3px);
    border-color: rgba(143,118,245,0.3);
}

/* Accordion */
.accordion-style-04 .accordion-item {
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px -4px rgba(0,0,0,0.05);
}
.accordion-style-04 .accordion-button {
    padding: 20px 24px; background: transparent; border: 0; box-shadow: none; font-size: 16px;
}
.accordion-style-04 .accordion-button:not(.collapsed) {
    color: #8f76f5;
    background: rgba(143,118,245,0.04);
}
.accordion-style-04 .accordion-button:focus { box-shadow: none; }
.accordion-style-04 .accordion-body { padding: 0 24px 20px; }

/* Modal */
.claim-modal {
    position: fixed; inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.claim-modal.is-open {
    display: flex;
    overscroll-behavior: contain;
}
html.claim-modal-open {
    overflow: hidden;
}
.claim-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(20,15,40,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease;
}
.claim-modal-panel {
    position: relative;
    max-width: 480px;
    width: 100%;
    z-index: 1;
    animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.claim-modal-close {
    position: absolute;
    top: 16px; right: 16px; left: auto;
    background: transparent;
    border: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #6a6a6a;
    cursor: pointer;
    transition: all 0.2s ease;
}
.claim-modal-close:hover {
    background: rgba(143,118,245,0.08);
    color: #8f76f5;
}
.claim-success-ico {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f76f5, #ff6472);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 12px 30px -10px rgba(143,118,245,0.5);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 575px) {
    .claim-modal-panel:not(.dl-gate-panel) { padding: 30px 24px; }
}

/* Download gate — hero-form parity, proper panel weight */
.dl-gate-panel {
    max-width: 440px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(143, 118, 245, 0.18);
    box-shadow:
        0 28px 70px -24px rgba(20, 15, 40, 0.5),
        0 12px 32px -12px rgba(143, 118, 245, 0.28);
}
.dl-gate-accent {
    height: 4px;
    background: linear-gradient(90deg, #8f76f5 0%, #c74ad2 50%, #ff6472 100%);
}
.dl-gate-body,
.dl-gate-success {
    padding: 40px 36px 32px;
}
.dl-gate-panel .claim-modal-close {
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.dl-gate-title {
    line-height: 1.25;
}
.dl-gate-desc {
    line-height: 1.55;
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
}
.dl-gate-label {
    margin-bottom: 10px;
}
.dl-gate-input {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dl-gate-input::placeholder {
    color: #9aa0aa;
}
.dl-gate-input:focus {
    border-color: #8f76f5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(143, 118, 245, 0.12);
    outline: none;
}
.dl-gate-submit {
    margin-bottom: 4px;
    padding: 16px 24px;
    font-size: 15px;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px -8px rgba(143, 118, 245, 0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.dl-gate-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(143, 118, 245, 0.65);
}
.dl-gate-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}
.dl-gate-dl-btn {
    padding-top: 14px;
    padding-bottom: 14px;
}
.dl-gate-legal {
    margin-top: 22px;
    margin-bottom: 0;
    line-height: 1.55;
}
.dl-gate-success .claim-success-ico {
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 575px) {
    .dl-gate-body,
    .dl-gate-success {
        padding: 32px 24px 26px;
    }
}

/* Pill overflow safeguard — all border-radius-30px badge elements */
.border-radius-30px {
    max-width: 100%;
}
@media (max-width: 575px) {
    .border-radius-30px {
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }
}

/* Misc utilities used in v2 layout */
.opacity-65 { opacity: 0.65; }
.bg-extra-dark-gray { background-color: #1a1a1a; }
.text-base-color { color: #8f76f5; }

/* Override the global scroll-snap that was breaking section scrolling */
html { scroll-snap-type: none; overflow-y: auto; }
#hero { transition: none; }
#hero, #features, .pai-section, .pai-section-tight { transition: none; }

/* The original .full-screen / 100vh hero clashes with new layout */
.pai-hero.full-screen,
section.full-screen.pai-hero { height: auto; min-height: 0; }

/* =======================================================================
   v3: Services pillars, Insights/Articles grid, Podcast cards
   ======================================================================= */

/* ---- Service pillars ---- */
.service-pillar {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    border: 1px solid rgba(143,118,245,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex; flex-direction: column;
    height: 100%;
    position: relative;
}
.service-pillar:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -22px rgba(143,118,245,0.3);
    border-color: rgba(143,118,245,0.25);
}
.service-pillar-featured {
    background: linear-gradient(180deg, #fff 0%, #fff8fc 100%);
    border-color: rgba(231,84,164,0.25);
    box-shadow: 0 20px 40px -20px rgba(231,84,164,0.2);
}
.service-pillar-featured::before {
    content: 'Most chosen';
    position: absolute;
    top: -12px; right: 28px;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    color: #fff;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 14px -4px rgba(231,84,164,0.4);
}
.service-pillar-ico {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px -4px rgba(143,118,245,0.4);
}
.service-pillar-ico i { font-size: 22px; }
.service-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.service-bullets li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.service-bullets li i { margin-top: 4px; flex-shrink: 0; font-size: 14px; }

/* Sub-pillars (4 horizontal small items inside services section) */
.sub-pillar {
    padding: 16px 20px;
    border-left: 3px solid rgba(143,118,245,0.25);
    height: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.sub-pillar:hover { border-left-color: #ff6472; background: rgba(143,118,245,0.03); }
.sub-pillar-num {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #b48cf3;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.sub-pillar-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.sub-pillar-desc {
    display: block;
    font-size: 13px;
    color: #6a6a6a;
    line-height: 1.5;
}

/* ---- Articles grid ---- */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(143,118,245,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    height: 100%;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 30px -18px rgba(143,118,245,0.22);
}
.article-card:hover {
    transform: translateY(-6px);
    color: inherit;
    box-shadow: 0 36px 64px -22px rgba(143,118,245,0.36);
    border-color: rgba(143,118,245,0.28);
}

.article-title {
    font-size: 19px;
    font-weight: 700;
    color: #232323;
    line-height: 1.35;
    letter-spacing: -0.4px;
    margin: 22px 0 12px;
}
.article-excerpt {
    font-size: 14px;
    color: #6a6a6a;
    line-height: 1.55;
    margin: 0 0 18px;
    flex-grow: 1;
}
.article-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 26px;
}
.article-cta i {
    color: #ff6472;
    -webkit-text-fill-color: #ff6472;
    transition: transform 0.2s ease;
}
.article-card:hover .article-cta i { transform: translateX(4px); }

/* ---- Insight digest CTA — soft mid-page email capture on insight articles ---- */
.insight-digest-cta {
    background: #fff;
    padding: 60px 0 40px;
}
@media (max-width: 991px) { .insight-digest-cta { padding: 40px 0 20px; } }
.insight-digest-card {
    background: linear-gradient(135deg, rgba(143,118,245,0.06) 0%, rgba(231,84,164,0.06) 100%);
    border: 1px solid rgba(143,118,245,0.12);
    border-radius: 18px;
    padding: 44px 48px;
    text-align: center;
}
@media (max-width: 767px) { .insight-digest-card { padding: 32px 24px; } }
.insight-digest-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    display: inline-block;
}
.insight-digest-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #232323;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
}
.insight-digest-sub {
    font-size: 15px;
    line-height: 1.55;
    color: #6a6a6a;
    margin: 0 auto 22px;
    max-width: 520px;
}
.insight-digest-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}

/* Article-card thumb layout — banner with pill + centered icon */
.article-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.article-thumb i {
    font-size: 56px;
    color: rgba(255,255,255,0.85);
}
.article-type {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(255,255,255,0.92);
    color: #6a4ad8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
}
.article-body {
    padding: 24px 26px 26px;
    display: flex; flex-direction: column;
    flex-grow: 1;
}
.article-meta {
    font-size: 11px;
    font-weight: 700;
    color: #b48cf3;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    display: block;
}

/* ---- Podcast cards ---- */
.podcast-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    padding: 0 0 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(143,118,245,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    height: 100%;
}
.podcast-card:hover {
    transform: translateY(-6px);
    color: inherit;
    box-shadow: 0 30px 60px -22px rgba(143,118,245,0.28);
    border-color: rgba(143,118,245,0.25);
}
.podcast-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}
.podcast-cover i {
    font-size: 64px;
    color: rgba(255,255,255,0.85);
}
.podcast-ep {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 100px;
}
.podcast-meta {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #b48cf3;
    letter-spacing: 1.2px;
    padding: 0 26px;
    margin-bottom: 8px;
}
.podcast-title {
    font-size: 18px;
    font-weight: 700;
    color: #232323;
    letter-spacing: -0.3px;
    line-height: 1.35;
    margin: 0 0 8px;
    padding: 0 26px;
}
.podcast-guest {
    font-size: 13px;
    color: #6a6a6a;
    padding: 0 26px;
    margin: 0 0 14px;
    line-height: 1.5;
}
.podcast-cta {
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.podcast-cta i {
    color: #ff6472;
    -webkit-text-fill-color: #ff6472;
    transition: transform 0.2s ease;
}
.podcast-card:hover .podcast-cta i { transform: scale(1.15); }

/* Podcast platforms strip */
.podcast-platform {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(143,118,245,0.1);
    color: #6a6a6a;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.25s ease;
}
.podcast-platform:hover {
    border-color: rgba(143,118,245,0.4);
    color: #8f76f5;
    transform: translateY(-2px);
}

/* Footer input (folded into logo column) */
.bg-white-opacity-10 {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}
.footer-input::placeholder { color: rgba(255,255,255,0.5); }
.footer-input { padding: 8px 14px; font-size: 13px; }
.footer-input:focus {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    box-shadow: none;
}
.gap-8px { gap: 8px; }

/* Responsive tweaks */
@media (max-width: 991px) {
    .service-pillar { padding: 32px 28px; }
    .article-body { padding: 20px 22px 22px; }
    .podcast-meta, .podcast-title, .podcast-guest, .podcast-cta { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 575px) {
    .service-pillar { padding: 28px 22px; }
    .service-pillar-featured::before { right: 18px; }
}

/* =======================================================================
   v4: multi-page split — sub-page heros, breadcrumbs, download cards
   ======================================================================= */

/* Sub-page hero (lighter than landing hero, used on services/insights/podcast/about) */
.pai-subhero {
    padding: 110px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #faf9ff 60%, #fff5fa 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(143,118,245,0.06);
}
.pai-subhero-dark {
    background: linear-gradient(180deg, #1a1a1a 0%, #232026 100%);
    border-bottom: 0;
}
@media (max-width: 767px) {
    .pai-subhero { padding: 90px 0 40px; }
}

/* Breadcrumb above page H1 */
.pai-breadcrumb {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #6a6a6a;
}
.pai-breadcrumb a {
    color: #8f76f5;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pai-breadcrumb a:hover { color: #ff6472; }
.pai-breadcrumb span { margin: 0 8px; opacity: 0.5; }
.pai-breadcrumb-on-dark {
    color: rgba(255,255,255,0.55);
}
.pai-breadcrumb-on-dark a { color: #b48cf3; }

/* Active nav state */
.pai-nav-links a.active {
    color: #8f76f5;
    position: relative;
}
.pai-nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 2px;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    border-radius: 100px;
}

/* Download cards on the skills landing — the 5-file showcase */
.dl-card {
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(143,118,245,0.08);
    box-shadow: 0 10px 30px -18px rgba(143,118,245,0.22);
    border-radius: 16px;
    overflow: hidden;
}
.dl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 64px -22px rgba(143,118,245,0.36);
    border-color: rgba(143,118,245,0.28);
}
.dl-thumb {
    position: relative;
    aspect-ratio: 16 / 7;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.dl-thumb i {
    font-size: 40px;
    color: rgba(255,255,255,0.85);
}
.dl-type {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255,255,255,0.92);
    color: #6a4ad8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
}
.dl-body {
    padding: 24px 26px 26px;
    display: flex; flex-direction: column;
    flex-grow: 1;
}
.dl-meta {
    font-size: 11px;
    font-weight: 700;
    color: #b48cf3;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    display: block;
}
.dl-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-top: auto;
}
.dl-cta i {
    color: #ff6472;
    -webkit-text-fill-color: #ff6472;
    transition: transform 0.2s ease;
}
.dl-card:hover .dl-cta i {
    transform: translateX(4px);
}
.dl-badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    box-shadow: 0 4px 12px -4px rgba(143,118,245,0.4);
}
.dl-card-cta {
    border-color: transparent !important;
    box-shadow: 0 12px 28px -12px rgba(231,84,164,0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dl-card-cta:hover {
    transform: translateY(-6px);
    color: #fff !important;
    box-shadow: 0 20px 40px -16px rgba(231,84,164,0.5) !important;
}
.dl-card-cta h4, .dl-card-cta p { color: #fff; }

/* dl-card responsive balance */
@media (max-width: 767.98px) {
    .dl-thumb i { font-size: 32px; }
    .dl-body { padding: 18px 20px 20px; }
    .dl-body h4 { font-size: 16px; }
    .dl-body p { font-size: 13px; }
}

/* Podcast platform pills should be clickable from podcast.html hero too */
.pai-subhero .podcast-platform {
    cursor: pointer;
    text-decoration: none;
}

/* Inline download panel — injected under any non-modal, non-digest form on success */
.pai-inline-dl {
    margin-top: 20px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(143,118,245,0.06) 0%, rgba(255,100,114,0.06) 100%);
    border: 1px solid rgba(143,118,245,0.18);
    border-radius: 12px;
    animation: slideInDl 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideInDl {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pai-inline-dl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.pai-inline-dl-secondary {
    font-size: 13px;
    font-weight: 600;
    color: #6a4ad8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pai-inline-dl-secondary:hover { color: #ff6472; }
.pai-inline-dl-meta {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: #6a6a6a;
    line-height: 1.5;
}
.pai-inline-dl-meta b { color: #232323; }
@media (max-width: 575px) {
    .pai-inline-dl { padding: 18px 20px; }
    .pai-inline-dl-row { gap: 12px; }
}


/* ============================================================
   Insight article pages — long-form playbooks, guides, frameworks
   ============================================================ */

.insight-hero {
    position: relative;
    overflow: hidden;
    padding: 130px 0 60px;
    background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}
@media (max-width: 991px) { .insight-hero { padding: 100px 0 40px; } }

.insight-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(143,118,245,0.18), transparent 70%);
    pointer-events: none;
}
.insight-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255,100,114,0.12), transparent 70%);
    pointer-events: none;
}

.insight-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(143,118,245,0.10);
    color: #6a4ad8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.insight-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f76f5, #ff6472);
}

.insight-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #1a1a1a;
    margin-bottom: 22px;
}
@media (max-width: 991px) { .insight-title { font-size: 40px; letter-spacing: -1px; } }
@media (max-width: 575px) { .insight-title { font-size: 30px; line-height: 1.15; } }

.insight-dek {
    font-size: 20px;
    line-height: 1.55;
    color: #555;
    margin-bottom: 36px;
    max-width: 760px;
}
@media (max-width: 575px) { .insight-dek { font-size: 17px; } }

/* Author byline */
.insight-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(143,118,245,0.12);
    border-bottom: 1px solid rgba(143,118,245,0.12);
    max-width: 760px;
}
.insight-byline-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 18px rgba(143,118,245,0.25);
    flex-shrink: 0;
}
.insight-byline-meta { flex: 1; min-width: 0; }
.insight-byline-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
    line-height: 1.3;
}
.insight-byline-name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(143,118,245,0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.insight-byline-name a:hover { color: #6a4ad8; border-bottom-color: #6a4ad8; }
.insight-byline-role {
    font-size: 13px;
    color: #6a6a6a;
    margin: 0;
    line-height: 1.4;
}
.insight-byline-stats {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 12px;
    color: #6a6a6a;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.insight-byline-stats span { display: inline-flex; align-items: center; gap: 6px; }
.insight-byline-stats i { font-size: 14px; color: #8f76f5; }
@media (max-width: 767px) {
    .insight-byline { flex-wrap: wrap; }
    .insight-byline-stats { width: 100%; padding-top: 8px; border-top: 1px dashed rgba(143,118,245,0.12); }
}

/* TL;DR card under hero */
.insight-tldr {
    margin-top: 36px;
    padding: 26px 30px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(143,118,245,0.07) 0%, rgba(255,100,114,0.07) 100%);
    border-left: 4px solid #8f76f5;
}
.insight-tldr-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #6a4ad8;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.insight-tldr-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}
.insight-tldr-body strong { color: #1a1a1a; }

/* Article body */
.insight-body {
    padding: 60px 0 90px;
    background: #fff;
}
.insight-prose {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: #2d2d2d;
}
.insight-prose h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #1a1a1a;
    margin: 56px 0 18px;
    line-height: 1.25;
    scroll-margin-top: 90px;
}
.insight-prose h2:first-child { margin-top: 0; }
.insight-prose h2 .h2-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #b48cf3;
    letter-spacing: 1px;
    vertical-align: middle;
    margin-right: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(143,118,245,0.10);
}
.insight-prose h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 36px 0 14px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.insight-prose h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 28px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.insight-prose p { margin: 0 0 22px; }
.insight-prose p:last-child { margin-bottom: 0; }
.insight-prose strong { color: #1a1a1a; font-weight: 700; }
.insight-prose em { color: #444; }
.insight-prose a {
    color: #6a4ad8;
    text-decoration: none;
    border-bottom: 1px solid rgba(143,118,245,0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.insight-prose a:hover { color: #ff6472; border-bottom-color: #ff6472; }
.insight-prose ul, .insight-prose ol { padding-left: 0; margin: 0 0 26px; }
.insight-prose ul li, .insight-prose ol li {
    list-style: none;
    position: relative;
    padding: 0 0 10px 28px;
    margin: 0;
}
.insight-prose ul li::before {
    content: '';
    position: absolute;
    left: 6px; top: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f76f5, #ff6472);
}
.insight-prose ol { counter-reset: lst; }
.insight-prose ol li { counter-increment: lst; }
.insight-prose ol li::before {
    content: counter(lst);
    position: absolute;
    left: 0; top: 4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f76f5, #c74ad2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.insight-prose blockquote {
    margin: 32px 0;
    padding: 24px 28px 24px 32px;
    background: #fafaff;
    border-left: 4px solid #c74ad2;
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    font-style: italic;
    color: #1a1a1a;
    line-height: 1.55;
}
.insight-prose blockquote p:last-child { margin-bottom: 0; }
.insight-prose blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: #6a4ad8;
}

/* Callouts */
.insight-callout {
    margin: 32px 0;
    padding: 22px 26px;
    border-radius: 12px;
    border: 1px solid rgba(143,118,245,0.18);
    background: #fafaff;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.insight-callout-ico {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
}
.insight-callout-ico.cal-warn   { background: linear-gradient(135deg, #ff6472, #e754a4); }
.insight-callout-ico.cal-tip    { background: linear-gradient(135deg, #00bfae, #8f76f5); }
.insight-callout-ico.cal-data   { background: linear-gradient(135deg, #6a4ad8, #c74ad2); }
.insight-callout-ico.cal-quote  { background: linear-gradient(135deg, #8f76f5, #ff6472); }
.insight-callout-body { flex: 1; min-width: 0; }
.insight-callout-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #6a4ad8;
    margin-bottom: 4px;
}
.insight-callout p:last-child { margin-bottom: 0; }
.insight-callout p { font-size: 15px; line-height: 1.65; }

/* Stat strip */
.insight-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 32px 0;
}
@media (max-width: 575px) { .insight-stat-strip { grid-template-columns: 1fr; } }
.insight-stat {
    padding: 22px 22px;
    background: #fff;
    border: 1px solid rgba(143,118,245,0.15);
    border-radius: 12px;
    text-align: center;
}
.insight-stat-num {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}
.insight-stat-lbl { font-size: 12px; color: #6a6a6a; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.7px; font-weight: 600; }

/* Use-case / numbered card list */
.insight-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 26px 0 8px; }
.insight-card-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(143,118,245,0.14);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.insight-card-row:hover {
    transform: translateX(3px);
    box-shadow: 0 12px 30px -16px rgba(143,118,245,0.28);
    border-color: rgba(143,118,245,0.32);
}
.insight-card-rank {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8f76f5, #c74ad2);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: -0.5px;
}
.insight-card-body { min-width: 0; }
.insight-card-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; line-height: 1.35; }
.insight-card-desc { font-size: 13px; color: #6a6a6a; margin: 0; line-height: 1.5; }
.insight-card-roi {
    font-size: 12px;
    font-weight: 700;
    color: #00bfae;
    background: rgba(0,191,174,0.10);
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 767px) {
    .insight-card-row { grid-template-columns: 44px 1fr; }
    .insight-card-roi { grid-column: 2 / span 1; justify-self: start; margin-top: 4px; }
}

/* Comparison table */
.insight-table-wrap { margin: 28px 0; overflow-x: auto; border-radius: 12px; border: 1px solid rgba(143,118,245,0.16); }
.insight-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.insight-table th {
    text-align: left;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(143,118,245,0.08), rgba(199,74,210,0.08));
    color: #1a1a1a;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(143,118,245,0.18);
}
.insight-table td {
    padding: 14px 18px;
    color: #2d2d2d;
    line-height: 1.55;
    border-bottom: 1px solid rgba(143,118,245,0.08);
    vertical-align: top;
}
.insight-table tr:last-child td { border-bottom: none; }
.insight-table tr:hover td { background: #fafaff; }
.insight-table td .win { color: #00bfae; font-weight: 700; }
.insight-table td .lose { color: #ff6472; font-weight: 700; }
.insight-table td .neutral { color: #6a6a6a; }

/* Author bio card */
.insight-author {
    margin: 50px auto 0;
    max-width: 760px;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(143,118,245,0.05) 0%, rgba(255,100,114,0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(143,118,245,0.16);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.insight-author-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 30px rgba(143,118,245,0.25);
    flex-shrink: 0;
}
.insight-author-body { flex: 1; min-width: 0; }
.insight-author-name {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.insight-author-role {
    font-size: 13px;
    color: #6a4ad8;
    font-weight: 600;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.insight-author-bio { font-size: 14px; color: #444; line-height: 1.6; margin: 0 0 12px; }
.insight-author-links { display: flex; flex-wrap: wrap; gap: 14px; }
.insight-author-links a {
    font-size: 13px;
    font-weight: 600;
    color: #6a4ad8;
    text-decoration: none;
    border-bottom: 1px dotted rgba(143,118,245,0.4);
    display: inline-flex; align-items: center; gap: 5px;
    transition: color 0.2s ease;
}
.insight-author-links a:hover { color: #ff6472; }
@media (max-width: 575px) {
    .insight-author { flex-direction: column; align-items: center; text-align: center; padding: 26px 22px; }
    .insight-author-links { justify-content: center; }
}

/* Related reads */
.insight-related { background: #fafaff; padding: 80px 0; border-top: 1px solid rgba(143,118,245,0.10); }
.insight-related-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -0.5px;
}

/* TOC sidebar */
.insight-toc {
    position: sticky;
    top: 100px;
    padding: 22px 24px;
    background: #fafaff;
    border: 1px solid rgba(143,118,245,0.14);
    border-radius: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.insight-toc-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #6a4ad8;
    margin-bottom: 14px;
    display: block;
}
.insight-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.insight-toc li { counter-increment: toc; padding: 4px 0; font-size: 13px; line-height: 1.4; }
.insight-toc li a {
    color: #4a4a4a;
    text-decoration: none;
    border-bottom: none;
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    transition: color 0.2s ease;
}
.insight-toc li a::before {
    content: counter(toc, decimal-leading-zero);
    color: #b48cf3;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}
.insight-toc li a:hover { color: #6a4ad8; }
@media (max-width: 991px) { .insight-toc { display: none; } }

/* ---------- Excalidraw-style architecture diagrams ---------- */
.insight-diagram {
    position: relative;
    margin: 38px 0 32px;
    padding: 28px 22px 22px;
    background: #fffef7;
    border: 2px solid #1a1a1a;
    border-radius: 18px;
    box-shadow: 7px 7px 0 rgba(143,118,245,0.20);
}
.insight-diagram-label {
    position: absolute;
    top: -14px;
    left: 22px;
    background: #1a1a1a;
    color: #fffef7;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-family: var(--primary-font);
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 rgba(143,118,245,0.30);
}
.insight-diagram svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    font-family: var(--primary-font);
}
.insight-diagram svg text { font-family: var(--primary-font); }
.insight-diagram-caption {
    margin: 14px 4px 0;
    text-align: center;
    font-size: 12.5px;
    color: #6a6a6a;
    font-style: italic;
    line-height: 1.45;
}

/* ---------- Big 1-2-3 numbered step blocks ---------- */
.insight-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin: 36px 0 32px;
}
@media (max-width: 767px) { .insight-steps { grid-template-columns: 1fr; gap: 36px; } }
.insight-step {
    position: relative;
    padding: 30px 22px 22px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 18px;
    box-shadow: 6px 6px 0 rgba(143,118,245,0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.insight-step:hover {
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 rgba(143,118,245,0.30);
}
.insight-step-num {
    position: absolute;
    top: -24px;
    left: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f76f5, #6a4ad8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    font-family: var(--primary-font);
    border: 2px solid #1a1a1a;
    box-shadow: 3px 3px 0 rgba(26,26,26,0.20);
    transform: rotate(-5deg);
    line-height: 1;
}
.insight-step:nth-child(3n+2) .insight-step-num {
    background: linear-gradient(135deg, #ff6472, #e754a4);
    transform: rotate(3deg);
}
.insight-step:nth-child(3n) .insight-step-num {
    background: linear-gradient(135deg, #00bfae, #8f76f5);
    transform: rotate(-2deg);
}
.insight-step-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 8px 0 8px;
    line-height: 1.3;
}
.insight-step-body {
    font-size: 13.5px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}
.insight-step-body strong { color: #1a1a1a; font-weight: 700; }
.insight-step-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 9px;
    background: #1a1a1a;
    color: #fffef7;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-family: var(--primary-font);
    transform: rotate(-1deg);
}

/* Optional 4-up variant for 1-2-3-4 step layouts */
.insight-steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .insight-steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .insight-steps.steps-4 { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE FIXES — defensive overrides for vendor responsive.css
   The vendor file blankets every .fs-* class with
   `font-size: Xrem !important` at small breakpoints, which
   crushes the intended `md-fs-*` and `sm-fs-*` overrides used
   in headings across the site. Result without these rules:
   hero h1 renders at 12px on phones and email inputs at 7.8px
   (which triggers iOS zoom-on-focus). The rules below restore
   intent for the patterns actually used in the HTML, plus add
   touch-target, form, and mobile-nav ergonomics.
   ============================================================ */

@media (max-width: 991px) {
    /* Restore intended md-fs-* heading sizes — vendor !important kills these */
    .md-fs-50 { font-size: 3.125rem !important; line-height: 3.5rem !important; }
    .md-fs-48 { font-size: 3rem !important; line-height: 3.25rem !important; }
    .md-fs-45 { font-size: 2.813rem !important; line-height: 3rem !important; }
    .md-fs-42 { font-size: 2.625rem !important; line-height: 2.938rem !important; }
    .md-fs-40 { font-size: 2.5rem !important; line-height: 2.875rem !important; }
    .md-fs-36 { font-size: 2.25rem !important; line-height: 2.75rem !important; }
    .md-fs-32 { font-size: 2rem !important; line-height: 2.5rem !important; }
    .md-fs-30 { font-size: 1.875rem !important; line-height: 2.375rem !important; }
    .md-fs-28 { font-size: 1.75rem !important; line-height: 2.25rem !important; }
    .md-fs-26 { font-size: 1.625rem !important; line-height: 2.125rem !important; }
    .md-fs-24 { font-size: 1.5rem !important; line-height: 2rem !important; }
    .md-fs-22 { font-size: 1.375rem !important; line-height: 1.875rem !important; }
    .md-fs-20 { font-size: 1.25rem !important; line-height: 1.75rem !important; }
    .md-fs-18 { font-size: 1.125rem !important; line-height: 1.625rem !important; }
    .md-fs-17 { font-size: 1.0625rem !important; line-height: 1.5rem !important; }
    .md-fs-16 { font-size: 1rem !important; line-height: 1.5rem !important; }
    .md-fs-15 { font-size: 0.9375rem !important; line-height: 1.4rem !important; }
    .md-fs-14 { font-size: 0.875rem !important; line-height: 1.35rem !important; }
    .md-lh-56 { line-height: 3.5rem !important; }
    .md-lh-50 { line-height: 3.125rem !important; }
    .md-lh-46 { line-height: 2.875rem !important; }
    .md-lh-40 { line-height: 2.5rem !important; }
    .md-lh-34 { line-height: 2.125rem !important; }
    .md-lh-30 { line-height: 1.875rem !important; }
    .md-lh-26 { line-height: 1.625rem !important; }
    .md-lh-24 { line-height: 1.5rem !important; }

    /* iOS form-zoom: inputs MUST render >=16px or Safari zooms in on focus */
    input[type="email"],
    input[type="text"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    textarea,
    select { font-size: 16px !important; }

    /* Touch targets — make small buttons & footer links comfortable to tap */
    .btn-small { min-height: 40px; padding-top: 10px !important; padding-bottom: 10px !important; }
    footer ul li { margin-bottom: 12px !important; }
    footer ul a { display: inline-block; padding: 4px 0; }
    .footer-input { font-size: 14px !important; }

    /* ----- Mobile nav drawer (toggle button injected by procureai-forms.js) ----- */
    .pai-nav { position: relative; }
    .pai-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0;
        padding: 8px;
        margin-right: 6px;
        color: #232323;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    .pai-nav-toggle:hover,
    .pai-nav-toggle:focus-visible { background: rgba(143,118,245,0.08); outline: none; }
    .pai-nav-toggle svg { width: 24px; height: 24px; display: block; }
    .pai-nav-toggle .icon-close { display: none; }
    .pai-nav.pai-nav-open .pai-nav-toggle .icon-open { display: none; }
    .pai-nav.pai-nav-open .pai-nav-toggle .icon-close { display: block; }

    .pai-nav.pai-nav-open .pai-nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 8px 24px 16px;
        border-top: 1px solid rgba(143,118,245,0.12);
        box-shadow: 0 18px 40px -16px rgba(35,35,35,0.18);
        z-index: 100;
    }
    .pai-nav.pai-nav-open .pai-nav-links a {
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid rgba(35,35,35,0.06);
    }
    .pai-nav.pai-nav-open .pai-nav-links a:last-child { border-bottom: 0; }
}

@media (min-width: 992px) {
    .pai-nav-toggle { display: none !important; }
}

@media (max-width: 767px) {
    /* Vendor responsive.css sets html{font-size:12px} at this breakpoint,
       collapsing every rem value to 75% of normal. Override to 16px so all
       rem-based sm-fs-* / md-fs-* rules above resolve to their intended sizes. */
    html { font-size: 16px !important; }

    .sm-fs-50 { font-size: 3.125rem !important; line-height: 3.5rem !important; }
    .sm-fs-48 { font-size: 3rem !important; line-height: 3.25rem !important; }
    .sm-fs-44 { font-size: 2.75rem !important; line-height: 3rem !important; }
    .sm-fs-40 { font-size: 2.5rem !important; line-height: 2.875rem !important; }
    .sm-fs-36 { font-size: 2.25rem !important; line-height: 2.75rem !important; }
    .sm-fs-34 { font-size: 2.125rem !important; line-height: 2.625rem !important; }
    .sm-fs-32 { font-size: 2rem !important; line-height: 2.5rem !important; }
    .sm-fs-30 { font-size: 1.875rem !important; line-height: 2.375rem !important; }
    .sm-fs-28 { font-size: 1.75rem !important; line-height: 2.25rem !important; }
    .sm-fs-26 { font-size: 1.625rem !important; line-height: 2.125rem !important; }
    .sm-fs-24 { font-size: 1.5rem !important; line-height: 2rem !important; }
    .sm-fs-22 { font-size: 1.375rem !important; line-height: 1.875rem !important; }
    .sm-fs-20 { font-size: 1.25rem !important; line-height: 1.75rem !important; }
    .sm-fs-18 { font-size: 1.125rem !important; line-height: 1.625rem !important; }
    .sm-fs-16 { font-size: 1rem !important; line-height: 1.5rem !important; }
    .sm-lh-50 { line-height: 3.125rem !important; }
    .sm-lh-46 { line-height: 2.875rem !important; }
    .sm-lh-44 { line-height: 2.75rem !important; }
    .sm-lh-42 { line-height: 2.625rem !important; }
    .sm-lh-40 { line-height: 2.5rem !important; }
    .sm-lh-34 { line-height: 2.125rem !important; }
    .sm-lh-30 { line-height: 1.875rem !important; }
    .sm-lh-26 { line-height: 1.625rem !important; }
    .sm-lh-24 { line-height: 1.5rem !important; }
}

@media (max-width: 575px) {
    /* At this breakpoint the vendor applies 0.68rem–0.75rem !important on
       .fs-19/.fs-20/.fs-24 etc. With html:16px those land at 10–12px —
       still too small for body copy. Pin to comfortable reading minimums. */
    .fs-26, .fs-24          { font-size: 17px !important; }
    .fs-22, .fs-20, .fs-19  { font-size: 15px !important; }
    .fs-18, .fs-17, .fs-16  { font-size: 14px !important; }
    .fs-15, .fs-14          { font-size: 13px !important; }

    /* Stack subscribe forms vertically so they fit a 320-360px viewport */
    [data-subscribe-form] { flex-wrap: wrap !important; }
    [data-subscribe-form] input[type="email"] {
        min-width: 0 !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    [data-subscribe-form] button[type="submit"] { width: 100% !important; }

    /* Tighten subhero side padding so headings don't crowd the edge */
    .pai-subhero .container { padding-left: 16px; padding-right: 16px; }
}

/* Never let in-article diagrams or images overflow their column */
.insight-content svg,
.insight-content img,
.insight-diagram,
.insight-diagram svg { max-width: 100% !important; height: auto !important; }

/* On phones the rough-style diagrams compress so far the inner SVG labels
   become unreadable (4–5px). Let the SVG keep a 720px floor and scroll the
   diagram container horizontally instead — same trick the data tables use. */
@media (max-width: 767px) {
    .insight-diagram {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 16px;
        padding-right: 16px;
    }
    .insight-diagram svg {
        min-width: 720px;
        max-width: none !important;
        width: auto !important;
    }
    .insight-diagram-caption { min-width: 100%; }
}


/* ============================================================ */
/* Refresh — (16) (5) hero, clickable cards, how-to modal, etc. */
/* ============================================================ */

/* Hero button — icon + label spacing, flex layout */
.pai-hero-form-v2 .pai-hero-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.pai-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.pai-btn-label {
    display: inline-block;
    letter-spacing: 0.2px;
}

/* Inline code chip inside the hero subtext */
.hero-code {
    background: rgba(143,118,245,0.12);
    color: #6a4ad8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 600;
    border: 1px solid rgba(143,118,245,0.18);
}

/* ----- How-to-Use step cards: clickable, with "see detail" hint ----- */
.how-step-clickable {
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 14px -8px rgba(143,118,245,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background: #ffffff;
    text-align: left;
}
.how-step-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -10px rgba(143,118,245,0.4);
    border-color: rgba(143,118,245,0.25);
}
.how-step-clickable:focus-visible {
    outline: 2px solid #8f76f5;
    outline-offset: 2px;
}
.how-step-more {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(90deg, #8f76f5, #ff6472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.2s ease;
}
.how-step-clickable:hover .how-step-more i {
    transform: translateX(4px);
}
.how-step-more i { transition: transform 0.2s ease; font-size: 13px; }

/* ----- How-to-Use modal panes ----- */
.claim-modal-panel-wide {
    max-width: 760px;
    width: 92vw;
    max-height: 86vh;
    overflow-y: auto;
}
.how-modal-tabs {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 12px;
}
.how-modal-tab {
    background: transparent;
    border: 0;
    padding: 8px 16px;
    border-radius: 100px;
    color: #6a6a6a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.how-modal-tab:hover { color: #8f76f5; background: rgba(143,118,245,0.06); }
.how-modal-tab.active {
    background: linear-gradient(135deg, #8f76f5 0%, #c74ad2 50%, #ff6472 100%);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(143,118,245,0.5);
}
.how-modal-pane h6 { color: #8f76f5; }
.how-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.how-modal-list li {
    padding: 8px 0 8px 22px;
    position: relative;
    line-height: 1.55;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.how-modal-list li:last-child { border-bottom: 0; }
.how-modal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f76f5, #ff6472);
}
.how-modal-codeblock {
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(143,118,245,0.2);
}
.how-modal-codeblock-title {
    background: rgba(143,118,245,0.15);
    color: #c8b9ff;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(143,118,245,0.2);
}
.how-modal-codeblock pre {
    margin: 0;
    padding: 14px 16px;
    background: transparent;
    color: #e8e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    overflow-x: auto;
    max-width: 100%;
}
.how-modal-codeblock code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* ----- Skill cards as clickable anchors ----- */
.skill-card-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}
.skill-card-link:hover,
.skill-card-link:focus { text-decoration: none; color: inherit; }
.skill-card-link:focus-visible {
    outline: 2px solid #8f76f5;
    outline-offset: 2px;
}
.skill-card-link .skill-card-arrow {
    position: absolute;
    bottom: 22px;
    right: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(143,118,245,0.1);
    color: #8f76f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s ease;
}
.skill-card-link:hover .skill-card-arrow {
    background: linear-gradient(135deg, #8f76f5, #ff6472);
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 6px 14px -4px rgba(143,118,245,0.5);
}
.skill-card-link .skill-tags { margin-bottom: 26px; }

/* ----- SOTA / Router band tweaks ----- */
.sota-badge-runtime {
    background: rgba(143,118,245,0.18) !important;
    border-color: rgba(143,118,245,0.35) !important;
    color: #d8caff !important;
}

/* ----- "Curious" link icon spacing already inline; gradient text on hover ----- */
[data-open-curious]:hover { opacity: 0.85; }


/* ============================================================ */
/* Density pass — compact cards everywhere                       */
/* ============================================================ */

/* Tighter deliverable cards (5 XLSX + CTA tile) — inherits from .dl-card */
.dl-card-tight {}
/* Compact skill cards — less padding, no tag pills, single-line desc */
.skill-card-compact {
    padding: 22px 22px 50px;
    min-height: 0;
}
.skill-card-compact .skill-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.skill-card-compact .skill-ico i { font-size: 16px; }
.skill-card-compact .skill-name {
    font-size: 18px;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}
.skill-card-compact .skill-tagline {
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: 0.6px;
}
.skill-card-compact .skill-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
    color: #6a6a6a;
}
.skill-card-compact .skill-card-arrow {
    width: 26px;
    height: 26px;
    font-size: 12px;
    bottom: 16px;
    right: 18px;
}

/* =============================================================
   RTL corrections — scoped with [dir=rtl], zero LTR impact.
   Applied when the page sets dir="rtl" (e.g. Hebrew locale).
   ============================================================= */

/* Nav: swap toggle's inline margin so the gap stays correct */
[dir=rtl] .pai-nav-toggle {
    margin-right: 0;
    margin-left: 6px;
}

/* Nav drawer: right-align links */
[dir=rtl] .pai-nav.pai-nav-open .pai-nav-links a {
    text-align: right;
}

/* How-to-use step cards: override Bootstrap text-start → reading-start (right) */
[dir=rtl] .how-step,
[dir=rtl] .how-step-clickable {
    text-align: right !important;
}

/* Feather arrow icon: flip to point left (←) in RTL */
[dir=rtl] i.icon-feather-arrow-right {
    display: inline-block;
    transform: scaleX(-1);
}
/* Swap margin so the gap stays between text and the flipped icon */
[dir=rtl] .how-step-more i {
    margin-left: 0;
    margin-right: 5px;
}
/* Hover nudge: move icon left instead of right */
[dir=rtl] .how-step-clickable:hover .how-step-more i {
    transform: scaleX(-1) translateX(4px);
}

/* Skill cards: right-align content */
[dir=rtl] .skill-card {
    text-align: right;
}

/* Download cards: right-align body content */
[dir=rtl] .dl-card .dl-body {
    text-align: right;
}
/* Flip the absolute-positioned format badge to the right side */
[dir=rtl] .dl-type {
    left: auto;
    right: 12px;
}
/* dl-cta link: align to reading-end (left in RTL) */
[dir=rtl] .dl-cta {
    align-self: flex-end;
}
/* Flip the cta arrow icon and its hover nudge */
[dir=rtl] .dl-cta i {
    transform: scaleX(-1);
    display: inline-block;
}
[dir=rtl] .dl-card:hover .dl-cta i {
    transform: scaleX(-1) translateX(-4px);
}

/* Skill card arrow badge: flip position to left side */
[dir=rtl] .skill-card-arrow {
    right: auto;
    left: 18px;
}
[dir=rtl] .skill-card-compact .skill-card-arrow {
    right: auto;
    left: 18px;
}

/* ============================================================ */
/* AI Readiness Scorecard — about.html #readiness (5-step wizard) */
/* ============================================================ */

/* The card. Padding carries !important — this template's framework reset
   zeroes plain padding on a bare layout card. */
.rdx-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 48px !important;
    box-shadow: 0 40px 80px -34px rgba(143,118,245,0.32), 0 2px 6px rgba(20,15,40,0.04);
    border: 1px solid rgba(143,118,245,0.08);
    overflow: hidden;
}
.rdx-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8f76f5, #c74ad2, #ff6472);
}

@keyframes rdxStepIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----- Stepper ----- */
.rdx-stepper {
    position: relative;
    display: flex;
    margin-bottom: 44px;
}
.rdx-stepper-track {
    position: absolute;
    top: 25px; left: 10%; right: 10%;
    height: 4px;
    background: rgba(143,118,245,0.14);
    border-radius: 100px;
    z-index: 0;
}
.rdx-stepper-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    background: linear-gradient(90deg, #8f76f5, #c74ad2, #ff6472);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.rdx-step-dot {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: default;
}
.rdx-step-dot.is-reachable { cursor: pointer; }
.rdx-step-ico {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}
.rdx-step-ico i { color: #fff; font-size: 21px; }
.rdx-step-check { display: none; }
/* todo state — grey out (overrides the bg-gradient-* utility class) */
.rdx-step-dot:not(.is-active):not(.is-done) .rdx-step-ico { background: #ebe8f4; }
.rdx-step-dot:not(.is-active):not(.is-done) .rdx-step-ico i { color: #aaa3c4; }
/* active — lift + glow */
.rdx-step-dot.is-active .rdx-step-ico {
    transform: scale(1.12);
    box-shadow: 0 12px 26px -8px rgba(143,118,245,0.6);
}
/* done — show the check, hide the pillar glyph */
.rdx-step-dot.is-done .rdx-step-pico { display: none; }
.rdx-step-dot.is-done .rdx-step-check { display: inline-block; }
.rdx-step-dot.is-reachable:not(.is-active):hover .rdx-step-ico { transform: scale(1.06); }
.rdx-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #9a93b3;
    transition: color 0.3s ease;
}
.rdx-step-dot.is-active .rdx-step-label { color: #2a2540; font-weight: 700; }
.rdx-step-dot.is-done .rdx-step-label { color: #6a6480; }

/* ----- Step panels ----- */
.rdx-step { display: none; }
.rdx-step.is-active {
    display: block;
    animation: rdxStepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.rdx-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}
.rdx-hero-ico {
    width: 62px; height: 62px;
    border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 14px 28px -10px rgba(143,118,245,0.55);
}
.rdx-hero-ico i { color: #fff; font-size: 26px; }
.rdx-hero-count {
    display: block;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: #b3acc9;
    margin-bottom: 3px;
}
.rdx-hero-title {
    font-size: 25px; font-weight: 800;
    color: #1c1830; letter-spacing: -0.6px;
    line-height: 1.2; margin: 0 0 3px;
}
.rdx-hero-sub { font-size: 14px; color: #8a8499; margin: 0; }

/* ----- Questions + tactile option cards ----- */
.rdx-q { margin-top: 26px; }
.rdx-q-text {
    font-size: 16px;
    line-height: 1.55;
    color: #2a2540;
    font-weight: 500;
    margin-bottom: 14px;
}
.rdx-opts { display: flex; gap: 12px; }
.rdx-opt { position: relative; flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.rdx-opt input {
    position: absolute; inset: 0;
    opacity: 0; margin: 0; cursor: pointer;
}
.rdx-opt-card {
    display: flex; align-items: center; gap: 10px;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(143,118,245,0.18);
    background: #fbfaff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.rdx-opt-mark {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(143,118,245,0.35);
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.rdx-opt-mark i {
    font-size: 12px; color: #fff;
    opacity: 0; transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rdx-opt-label {
    font-size: 14px; font-weight: 600; color: #6a6480;
    transition: color 0.2s ease;
}
.rdx-opt:hover .rdx-opt-card {
    border-color: rgba(143,118,245,0.5);
    background: #fff;
    box-shadow: 0 8px 20px -10px rgba(143,118,245,0.4);
    transform: translateY(-2px);
}
.rdx-opt input:checked + .rdx-opt-card {
    border-color: #8f76f5;
    background: linear-gradient(135deg, rgba(143,118,245,0.12), rgba(199,74,210,0.10));
    box-shadow: 0 10px 24px -10px rgba(143,118,245,0.5);
}
.rdx-opt input:checked + .rdx-opt-card .rdx-opt-mark {
    border-color: transparent;
    background: linear-gradient(135deg, #8f76f5, #c74ad2);
}
.rdx-opt input:checked + .rdx-opt-card .rdx-opt-mark i { opacity: 1; transform: scale(1); }
.rdx-opt input:checked + .rdx-opt-card .rdx-opt-label { color: #1c1830; font-weight: 700; }
.rdx-opt input:focus-visible + .rdx-opt-card { outline: 2px solid #8f76f5; outline-offset: 2px; }

/* ----- Nav ----- */
.rdx-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(143,118,245,0.1);
}
.rdx-nav-back, .rdx-nav-next {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700;
    border-radius: 100px; border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.rdx-nav-back i, .rdx-nav-next i { font-size: 15px; }
.rdx-nav-back {
    background: transparent;
    color: #8a8499;
    padding: 12px 18px;
}
.rdx-nav-back:hover:not(:disabled) { color: #8f76f5; }
.rdx-nav-back:disabled { opacity: 0; pointer-events: none; }
.rdx-nav-next {
    background: linear-gradient(135deg, #8f76f5 0%, #c74ad2 50%, #ff6472 100%);
    color: #fff;
    padding: 14px 28px;
    box-shadow: 0 12px 26px -10px rgba(143,118,245,0.6);
}
.rdx-nav-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(143,118,245,0.7);
}
.rdx-nav-next:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.rdx-nav-status { font-size: 13px; font-weight: 600; color: #b3acc9; }
.rdx-nav-fine { font-size: 12px; color: #b3acc9; text-align: center; margin: 14px 0 0; }

/* ----- Result panel ----- */
.rdx-result { display: none; }
.rdx-result.is-visible {
    display: block;
    animation: rdxStepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.rdx-result-head { text-align: center; margin-bottom: 34px; }
.rdx-result-eyebrow {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.4px;
    background: linear-gradient(90deg, #8f76f5, #c74ad2, #ff6472);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 14px;
}
.rdx-score-hero {
    display: flex; align-items: baseline; justify-content: center;
    gap: 7px; margin-bottom: 8px;
}
.rdx-score-num {
    font-size: 64px; font-weight: 800; line-height: 1;
    color: #1c1830; letter-spacing: -2px;
}
.rdx-score-max { font-size: 24px; font-weight: 700; color: #b3acc9; }
.rdx-overall-band {
    display: inline-block;
    font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.8px;
    white-space: nowrap;
    margin-bottom: 14px;
}
.rdx-result-note {
    font-size: 16px; line-height: 1.6; color: #6a6480;
    max-width: 540px; margin: 0 auto;
}
.rdx-bar-row { padding: 16px 0; }
.rdx-bar-row + .rdx-bar-row { border-top: 1px solid rgba(143,118,245,0.08); }
.rdx-bar-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 11px;
}
.rdx-bar-name {
    display: flex; align-items: center; gap: 11px;
    font-size: 15px; font-weight: 700; color: #1c1830;
}
.rdx-bar-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 6px 14px -5px rgba(143,118,245,0.5);
}
.rdx-bar-ico i { color: #fff; font-size: 16px; }
.rdx-bar-meta { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.rdx-bar-score { font-size: 13px; font-weight: 700; color: #8a8499; }
.rdx-band {
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.6px;
}
.rdx-bar-track {
    height: 14px;
    background: rgba(143,118,245,0.1);
    border-radius: 100px;
    overflow: hidden;
}
.rdx-bar-fill {
    height: 100%; width: 0;
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.rdx-cta {
    margin-top: 30px;
    padding: 34px !important;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(135deg, rgba(143,118,245,0.1), rgba(199,74,210,0.08), rgba(255,100,114,0.06));
    border: 1px solid rgba(143,118,245,0.14);
}
.rdx-cta-title {
    font-size: 21px; font-weight: 800; color: #1c1830;
    letter-spacing: -0.4px; margin: 0 0 10px;
}
.rdx-cta-text {
    font-size: 14px; line-height: 1.6; color: #6a6480;
    max-width: 520px; margin: 0 auto 22px;
}
.rdx-cta-fine { font-size: 12px; color: #9a93b3; margin: 16px 0 0; }
.rdx-retake {
    display: inline-flex; align-items: center;
    background: transparent; border: 0;
    color: #9a93b3; font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}
.rdx-retake:hover { color: #8f76f5; }

/* ----- Responsive ----- */
@media (max-width: 767px) {
    .rdx-card { padding: 32px !important; }
    .rdx-cta { padding: 26px !important; }
    .rdx-stepper { margin-bottom: 38px; }
    .rdx-hero-title { font-size: 22px; }
    .rdx-score-num { font-size: 54px; }
}
@media (max-width: 575px) {
    .rdx-card { padding: 20px !important; }
    .rdx-cta { padding: 20px !important; }
    .rdx-stepper-track { top: 21px; }
    .rdx-step-ico { width: 46px; height: 46px; border-radius: 13px; }
    .rdx-step-ico i { font-size: 18px; }
    .rdx-step-label { display: none; }
    .rdx-hero { gap: 13px; }
    .rdx-hero-ico { width: 52px; height: 52px; border-radius: 15px; }
    .rdx-hero-ico i { font-size: 22px; }
    .rdx-hero-title { font-size: 19px; }
    .rdx-q-text { font-size: 15px; }
    .rdx-opts { flex-direction: column; gap: 9px; }
    .rdx-nav-next { padding: 13px 22px; }
    .rdx-bar-name { font-size: 14px; }
    .rdx-score-num { font-size: 48px; }
}

/* ROI Calculator — driver grid (about.html #roi) */
.roi-driver { display: flex; align-items: flex-start; gap: 12px; }
.roi-driver-num {
    flex: 0 0 auto;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8f76f5, #c74ad2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px -3px rgba(143,118,245,0.5);
}
.roi-driver-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #232323;
    line-height: 1.3;
}
.roi-driver-gloss {
    display: block;
    font-size: 12.5px;
    color: #8a8a8a;
    line-height: 1.4;
    margin-top: 2px;
}

/* ── About page — hero CTAs, career timeline, FAQ tabs ── */
#about, #readiness, #roi, #faq { scroll-margin-top: 90px; }

.pai-hero-cta { margin-bottom: 14px; }
.pai-hero-links {
    font-size: 14px;
    line-height: 28px;
    color: #828282;
}
.pai-hero-links a {
    color: #8f76f5;
    font-weight: 600;
    text-decoration: none;
}
.pai-hero-links a:hover { text-decoration: underline; }
.pai-hero-sep { opacity: 0.35; margin: 0 6px; }

.pai-career-timeline {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin-bottom: 28px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(143, 118, 245, 0.06), rgba(255, 100, 114, 0.05));
    border: 1px solid rgba(143, 118, 245, 0.1);
}
.pai-career-node {
    flex: 1 1 120px;
    min-width: 0;
    text-align: center;
    padding: 4px 8px;
}
.pai-career-co {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #232323;
    line-height: 1.3;
}
.pai-career-note {
    display: block;
    font-size: 11px;
    color: #8a8a8a;
    line-height: 1.35;
    margin-top: 4px;
}
.pai-career-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: rgba(143, 118, 245, 0.45);
    font-size: 16px;
    font-weight: 700;
    padding: 0 2px;
}
@media (max-width: 767px) {
    .pai-career-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 14px;
    }
    /* Remove the 120px flex-basis — let nodes size to their text content */
    .pai-career-node {
        flex: 0 0 auto;
        padding: 6px 10px;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .pai-career-co {
        font-size: 13px;
        min-width: 90px;
    }
    .pai-career-note {
        font-size: 11px;
        margin-top: 0;
    }
    .pai-career-arrow {
        transform: rotate(90deg);
        text-align: center;
        padding: 0;
        font-size: 12px;
        align-self: flex-start;
        margin-left: 44px;
    }
}

.pai-faq-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.pai-faq-tab {
    padding: 10px 22px;
    border-radius: 100px;
    border: 1.5px solid rgba(143, 118, 245, 0.2);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #5a5a5a;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pai-faq-tab:hover {
    border-color: rgba(143, 118, 245, 0.45);
    color: #8f76f5;
}
.pai-faq-tab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #8f76f5, #c74ad2);
    box-shadow: 0 8px 20px -10px rgba(143, 118, 245, 0.5);
}
.pai-faq-pane { display: none; }
.pai-faq-pane.active { display: block; }

/* ── EU / trust badges ───────────────────────────────────────── */
/* Footer trust bar — ghost pills on the dark footer band */
.pai-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 0 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pai-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.pai-trust-badge:hover {
    color: #fff;
    border-color: rgba(143, 118, 245, 0.55);
}
.pai-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #8f76f5 0%, #c74ad2 50%, #ff6472 100%);
}
.pai-trust-flag {
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
}

/* Gate modal — one very subtle inline strip on white */
.pai-gate-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #8a8a96;
}
.pai-gate-trust > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pai-gate-trust .pai-gate-sep {
    color: #d8d8e0;
    font-weight: 400;
}
.pai-gate-trust .pai-trust-dot {
    width: 5px;
    height: 5px;
}
@media (max-width: 575px) {
    .pai-trust-row { gap: 6px; margin-bottom: 28px; }
    .pai-trust-badge { font-size: 11px; padding: 5px 12px; }
}

/* ===================================================================
   Mobile polish — 375px / 575px / 767px deep-fixes (2026-06)
   =================================================================== */

/* Decorative floating/geometric shapes clutter small viewports — hide completely */
@media (max-width: 767px) {
    .floating-shape { display: none !important; }
    .geometric-shape { display: none !important; }
}

/* Hero paragraphs that use w-65/w-70/w-75/w-80 — full width on mobile */
@media (max-width: 767px) {
    .w-65, .w-70, .w-80 { width: 100% !important; }
}
@media (max-width: 575px) {
    .w-75 { width: 100% !important; }
}

/* Author photo — cap at 160px on mobile, stay centred */
@media (max-width: 767px) {
    .pai-author-photo {
        width: 160px !important;
        height: 160px !important;
    }
}

/* ROI stats box — tighter padding + readable numbers on phones */
@media (max-width: 575px) {
    .roi-stats { padding: 22px 18px !important; border-radius: 12px !important; }
    .roi-stats [class*="fs-58"],
    .roi-stats [class*="md-fs-44"] { font-size: 2rem !important; line-height: 2.4rem !important; }
}

/* FAQ tab buttons — ensure 44px min touch target */
@media (max-width: 575px) {
    .pai-faq-tab { padding: 12px 18px !important; min-height: 44px; }
}

/* How-step cards — tighter on smallest screens */
@media (max-width: 375px) {
    .how-step { padding: 18px 14px !important; }
    .how-step-num { width: 34px !important; height: 34px !important; font-size: 14px !important; }
}

/* Skill cards — reduce internal padding on mobile */
@media (max-width: 575px) {
    .skill-card { padding: 20px 18px 16px !important; }
    .skill-name { font-size: 17px !important; }
    .skill-desc { font-size: 13px !important; }
}

/* Download gate modal — tighter on 375px */
@media (max-width: 375px) {
    .dl-gate-body,
    .dl-gate-success { padding: 28px 18px 22px !important; }
}

/* Code blocks — always horizontally scrollable, never overflow */
pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
pre code {
    white-space: pre;
    word-wrap: normal;
}

/* Insight tables — readable + scrollable on mobile */
@media (max-width: 575px) {
    .insight-table { font-size: 12px !important; }
    .insight-table th,
    .insight-table td { padding: 8px 10px !important; }
}

/* Author block + byline — stack and shrink on very small screens */
@media (max-width: 375px) {
    .insight-byline-avatar { width: 44px !important; height: 44px !important; }
    .insight-author {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    .insight-author-avatar { width: 64px !important; height: 64px !important; }
    .rdx-card { padding: 16px !important; }
    .rdx-opt-card { padding: 12px 14px !important; }
    .pai-hero-form-v2 { padding: 20px 16px 16px !important; border-radius: 12px !important; }
    .how-modal-panel { padding: 22px 16px !important; }
}

/* Footer link columns — stack fully on phones below 480px */
@media (max-width: 480px) {
    footer .col-6 { width: 100% !important; }
}

/* Subhero sections — less top padding on mobile so content isn't pushed off-screen */
@media (max-width: 575px) {
    .pai-subhero { padding-top: 60px !important; padding-bottom: 50px !important; }
    .pai-section { padding-top: 50px !important; padding-bottom: 50px !important; }
}

/* Nav CTA button — ensure text never wraps on smallest phones */
@media (max-width: 375px) {
    .pai-nav .btn-small { font-size: 11px !important; padding: 8px 12px !important; }
}

/* ── About page — layout fixes (2026-06 deep pass) ─────────────────── */

/* Why-cards — 2-column grid on mobile, centred content */
@media (max-width: 767px) {
    /* 2-col grid: first two cards side-by-side, third centred below */
    #about .row.g-4 .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    #about .row.g-4 .col-md-4:last-child:nth-child(odd) {
        margin-left: auto !important;
        margin-right: auto !important;
        flex: 0 0 60% !important;
        max-width: 60% !important;
    }
    .why-card {
        padding: 18px 14px !important;
        text-align: center !important;
    }
    .why-ico {
        width: 40px !important;
        height: 40px !important;
        border-radius: 11px !important;
        margin: 0 auto 12px !important;
        font-size: 18px !important;
    }
    .why-ico i { font-size: 18px !important; }
    .why-card h5 { font-size: 14px !important; margin-bottom: 8px !important; }
    .why-card p { font-size: 12px !important; line-height: 1.55 !important; }
    /* Hide inline code in why-cards on mobile — too noisy at 12px */
    .why-card code { font-size: 11px !important; }
}

/* About section — centre h2 + bio buttons on mobile for visual symmetry with photo above */
@media (max-width: 767px) {
    #about .col-lg-8 h2 { text-align: center !important; }
    #about .col-lg-8 .d-flex.flex-wrap.gap-10px {
        justify-content: center !important;
    }
    #about .col-lg-8 > p { text-align: left; }
    #about .col-lg-8 > ul { text-align: left; }
    /* Tighten bottom margin of the photo+bio row on mobile */
    #about .row.mb-60px { margin-bottom: 32px !important; }
    /* Photo col — reduce gap below photo before h2 */
    #about .col-lg-4.md-mb-40px { margin-bottom: 24px !important; }
}

/* DL gate modal — full-width-ish on phones, no horizontal overflow */
@media (max-width: 575px) {
    .dl-gate-panel {
        max-width: calc(100vw - 24px) !important;
        margin: 0 12px;
    }
    .dl-gate-body,
    .dl-gate-success {
        padding: 26px 20px 22px !important;
    }
    .dl-gate-title { font-size: 20px !important; }
    .dl-gate-desc { font-size: 13px !important; }
}

/* Claim modal overlay — ensure proper centering on small screens */
@media (max-width: 575px) {
    .claim-modal-overlay {
        padding: 12px !important;
        align-items: flex-start !important;
        padding-top: 60px !important;
    }
}

/* RDX readiness wizard — stepper overflow safe on 375px */
@media (max-width: 480px) {
    .rdx-stepper {
        gap: 0;
        margin-bottom: 28px !important;
    }
    .rdx-step-dot { min-width: 0; }
    .rdx-step-ico {
        width: 40px !important;
        height: 40px !important;
        border-radius: 11px !important;
    }
    .rdx-step-ico i { font-size: 16px !important; }
    .rdx-stepper-track { top: 18px !important; }
    .rdx-hero {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .rdx-hero-ico {
        width: 44px !important;
        height: 44px !important;
        flex-shrink: 0;
    }
    .rdx-opt-card {
        padding: 12px 14px !important;
    }
    .rdx-opt-label { font-size: 14px !important; }
}

/* ROI section left column — tighten on mobile */
@media (max-width: 767px) {
    #roi .col-lg-6:first-child { margin-bottom: 32px; }
    .roi-driver { gap: 10px; }
    .roi-driver-label { font-size: 13px; }
    .roi-driver-gloss { font-size: 11px; }
}

/* FAQ accordions — comfortable tap area */
@media (max-width: 575px) {
    .accordion-button { padding: 16px 18px !important; font-size: 14px !important; }
    .accordion-body { padding: 12px 18px 18px !important; font-size: 14px !important; }
}

/* Subhero hero-links — allow wrapping and centre on mobile */
@media (max-width: 575px) {
    .pai-hero-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 4px 8px;
    }
    .pai-hero-sep { margin: 0 4px; }
}

/* Section-level bottom margin — tighten on mobile */
@media (max-width: 575px) {
    .mb-45px { margin-bottom: 24px !important; }
    .mb-60px { margin-bottom: 32px !important; }
    .mb-40px { margin-bottom: 22px !important; }
    .mb-30px { margin-bottom: 16px !important; }
    .mb-25px { margin-bottom: 12px !important; }
}

/* ROI stats — numbers are 32px, tighten the 30px col gap on phones */
@media (max-width: 575px) {
    .roi-stats .col-12 { margin-bottom: 14px !important; }
    .roi-stats .col-12:last-child { margin-bottom: 0 !important; }
    .roi-stats > p:first-child { margin-bottom: 16px !important; font-size: 10px !important; }
    .roi-stats > p:last-child { margin-top: 14px !important; }
}

