:root {
    --primary: #5B2EFF;
    --primary-hover: #4520D9;
    --dark-purple: #311B92;
    --accent: #8B5CF6;
    --heading: #111827;
    --body-text: #4B5563;
    --bg: #F8FAFC;
    --border: #E5E7EB;
    --bg: #ffffff;
    --text-muted: #9a9a94;
    --edge-margin: 6vw;
    --fade-width: 120px;

}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
}

/* Make all images responsive by default */
img { max-width: 100%; height: auto; display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header {
   background: #ffffff;
   border-bottom: 1px solid var(--border);
   position: sticky;
   top: 0;
   z-index: 50;
   backdrop-filter: saturate(120%) blur(4px);
}

.wrapper {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 3rem;
    min-width: 0; /* lets this shrink instead of forcing .bar to wrap on small screens */
}

.logo {
    color: var(--primary);
    display: block;
}

.logo svg {
       height: 2rem;
}

/* Logo image sizing: smaller on mobile, larger on wide screens */
.logo img { height: 3rem; width: auto; }
@media (min-width: 1024px) {
    .logo img { height: 4rem; }
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

nav a {
    color: var(--body-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--heading);
}

/* ---- Plans dropdown (desktop) ---- */
.has-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--body-text);
    cursor: pointer;
}

.dropdown-trigger:hover {
    color: var(--heading);
}

.dropdown-trigger svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-trigger svg,
.has-dropdown.open .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    padding: 0.5rem;
    min-width: 15rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--body-text);
}

.dropdown-menu a:hover {
    background: #F1EEFE;
    color: var(--primary);
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    border-radius: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #F1EEFE;
    color: var(--primary);
}

.btn-secondary:hover {
    background: #E4DCFD;
}

.menu-toggle {
    display: none;
   border: 1px solid rgba(91, 46, 255, 0.16);
   background: #ffffff;
    color: var(--primary);
    border-radius: 0.25rem;
   padding: 0.5rem;
   box-shadow: 0 1px 2px rgba(91, 46, 255, 0.08);
    cursor: pointer;
    flex-shrink: 0; /* keeps the toggle from ever being squeezed/wrapped */
}

.menu-toggle svg {
   width: 1.5rem;
   height: 1.5rem;
}

/* Mobile slide-down panel — single source of truth for #mobile-menu display.
   (Previously declared twice in this file; the second declaration further
   down was silently overriding this one back to an instant, non-animated
   display:none/block toggle — removed.) */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top: 1px solid var(--border);
    background: #ffffff;
    transition: max-height 0.32s ease, opacity 0.22s ease;
}

#mobile-menu.open {
    opacity: 1;
    /* max-height is set inline by script.js to the panel's real content
       height, so the reveal/collapse is smooth instead of snapping. */
}

#mobile-menu nav {
    padding: 1rem;
}

#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#mobile-menu a {
    display: block;
    color: var(--body-text);
    text-decoration: none;
}

#mobile-menu a:hover {
    color: var(--primary);
}

#mobile-menu .btn {
    text-align: center;
    display: block;
}

/* ---- Plans accordion (mobile) ---- */
#mobile-menu .mobile-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* matches the centered alignment of the other menu items */
    gap: 0.375rem;
    background: none;
    border: none;
    font: inherit;
    color: var(--body-text);
    padding: 0;
    cursor: pointer;
}

#mobile-menu .mobile-dropdown-trigger svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

#mobile-menu li.open .mobile-dropdown-trigger svg {
    transform: rotate(180deg);
}

#mobile-menu .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    text-align: center;
}

#mobile-menu li.open .mobile-submenu {
    max-height: 10rem;
    margin-top: 0.75rem;
}

#mobile-menu .mobile-submenu a {
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

@media (max-width: 767px) {

    .logo-area nav,
    .actions .sm-links {
        display: none;
    }

    /* Forced explicitly (not just omitted) so this wins even if another
       .bar { flex-wrap: wrap; } rule loads elsewhere in the cascade —
       this file had exactly that kind of duplicate for #mobile-menu,
       so the same defensive approach is used here. */
    .bar { flex-wrap: nowrap !important; align-items: center; }
    .logo-area { gap: 0.75rem; }
    .actions { width: auto !important; justify-content: flex-end; }

    /* Make feature cards expand vertically rather than fixed height */
    .group.h-52 { height: auto !important; min-height: 12rem; }

    /* Disable sticky cards on small screens to avoid overlap */
    .sticky { position: static !important; top: auto !important; }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
       width: 2.75rem;
       height: 2.75rem;
       padding: 0;
    }

    .actions .btn-primary {
        display: none;
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none !important;
    }
}

 .logo-strip {
   position: relative;
   width: 100%;
   padding: 0 var(--edge-margin);
   overflow: hidden;
 }

 /* fade edges so logos don't hard-cut at the margin */
 .logo-strip::before,
 .logo-strip::after {
   content: "";
   position: absolute;
   top: 0;
   bottom: 0;
   width: var(--fade-width);
   z-index: 2;
   pointer-events: none;
 }
 .logo-strip::before {
   left: var(--edge-margin);
   background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
 }
 .logo-strip::after {
   right: var(--edge-margin);
   background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
 }

 .logo-track-wrap {
   overflow: hidden;
   width: 100%;
 }

 .logo-track {
   display: flex;
   align-items: center;
   width: max-content;
   gap: 5rem;
   animation: scroll-left 28s linear infinite;
 }

 .logo-strip:hover .logo-track {
   animation-play-state: paused;
 }

 .logo-item {
   flex: 0 0 auto;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 32px;
 }

 .logo-item img,
 .logo-item svg {
   height: 100%;
   width: auto;
   display: block;
   filter: grayscale(100%) brightness(0.35);
   opacity: 0.55;
   transition: filter 0.25s ease, opacity 0.25s ease;
 }

 .logo-item:hover img,
 .logo-item:hover svg {
   filter: grayscale(0%);
   opacity: 1;
 }

 @keyframes scroll-left {
   from { transform: translateX(0); }
   to   { transform: translateX(-50%); }
 }

 @media (prefers-reduced-motion: reduce) {
   .logo-track { animation: none; }
   .logo-track-wrap { overflow-x: auto; }
 }
.small-logo {
 height: 100% !important; 
 width: auto; /* Maintain aspect ratio */
}

.hero-fade {
   opacity: 0;
   transform: translateY(12px);
   animation: hero-fade-in 0.9s ease-out forwards;
}

.hero-fade-delay-1 {
   animation-delay: 0.15s;
}

.hero-fade-delay-2 {
   animation-delay: 0.3s;
}

.fade-button {
   transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fade-button:hover {
   opacity: 0.92;
   transform: translateY(-1px);
}

.fade-button:active {
   transform: translateY(0);
}

@keyframes hero-fade-in {
   from {
       opacity: 0;
       transform: translateY(12px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

@media (prefers-reduced-motion: reduce) {
   .hero-fade {
       opacity: 1;
       transform: none;
       animation: none;
   }

   .fade-button {
       transition: none;
   }

   .fade-button:hover,
   .fade-button:active {
       opacity: 1;
       transform: none;
   }
}

/* Subtle gradient for hosting feature cards using #5B2EFF */
.feature-card {
   background-color: #ffffff;
   background-image: linear-gradient(135deg, rgba(91,46,255,0.06) 0%, rgba(91,46,255,0.02) 100%);
}