/* ==========================================================================
   HelpX — Public site polish layer
   Additive, scoped to body.public-site. Loaded after the theme stylesheets.
   ========================================================================== */

body.public-site {
    --hx-ink: #0f172a;
    --hx-muted: #5b6470;
    --hx-line: #e6eaf2;
    --hx-primary: #586bf1;
    --hx-primary-2: #7c3aed;
    --hx-radius: 18px;
    --hx-shadow-1: 0 1px 2px rgba(15, 23, 42, .05);
    --hx-shadow-2: 0 12px 32px rgba(15, 23, 42, .08);
    --hx-shadow-3: 0 28px 70px rgba(15, 23, 42, .14);
    --hx-ease: cubic-bezier(.22, .8, .24, 1);
    color: var(--hx-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.public-site ::selection {
    background: rgba(88, 107, 241, .18);
    color: var(--hx-ink);
}

body.public-site .container {
    max-width: 1264px;
}

body.public-site h1,
body.public-site h2,
body.public-site h3,
body.public-site h4 {
    letter-spacing: -.022em;
    text-wrap: balance;
}

body.public-site h1 { letter-spacing: -.032em; }

body.public-site p { text-wrap: pretty; }

body.public-site img,
body.public-site video {
    -webkit-user-drag: none;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
body.public-site #mainNav {
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: var(--hx-shadow-1);
    transition: box-shadow .3s var(--hx-ease), border-color .3s var(--hx-ease), background-color .3s var(--hx-ease);
}

body.public-site #mainNav:hover {
    box-shadow: var(--hx-shadow-2);
}

body.public-site #mainNav ul a {
    position: relative;
    transition: color .2s ease;
}

body.public-site #mainNav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hx-primary), var(--hx-primary-2));
    transition: right .3s var(--hx-ease);
}

body.public-site #mainNav ul a:hover::after { right: 0; }

body.public-site #mainNav a.bg-secondary {
    background-image: linear-gradient(135deg, var(--hx-primary) 0%, var(--hx-primary-2) 100%);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 24px rgba(88, 107, 241, .30);
    transition: transform .25s var(--hx-ease), box-shadow .25s var(--hx-ease), filter .25s var(--hx-ease);
}

body.public-site #mainNav a.bg-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(88, 107, 241, .38);
    filter: saturate(1.05);
}

body.public-site #mainNav .nav-logo img {
    transition: transform .3s var(--hx-ease);
}

body.public-site #mainNav .nav-logo:hover img {
    transform: translateY(-1px) scale(1.02);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
body.homepage .hx-hero {
    isolation: isolate;
}

body.homepage .hx-hero h1 {
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.034em;
}

body.homepage .hx-hero p {
    line-height: 1.72;
}

body.homepage .hx-hero .rounded-2xl,
body.homepage .hx-hero .rounded-3xl {
    border-radius: 24px;
}

body.homepage .hx-hero video,
body.homepage .hx-hero .rounded-2xl img {
    border-radius: 22px;
    box-shadow: var(--hx-shadow-3);
}

body.homepage .hx-hero a.rounded-full {
    transition: transform .25s var(--hx-ease), box-shadow .25s var(--hx-ease), background-color .25s var(--hx-ease), color .25s var(--hx-ease);
}

body.homepage .hx-hero a.rounded-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

/* --------------------------------------------------------------------------
   Section headings & eyebrows
   -------------------------------------------------------------------------- */
body.public-site .streamline-section h2,
body.public-site .features-section h2,
body.public-site .our-solution-section h2,
body.public-site .review-section h2,
body.public-site .hx-pricing-section .hx-heading {
    letter-spacing: -.028em;
}

body.public-site .streamline-section .bg-secondary,
body.public-site .features-section .bg-secondary,
body.public-site .our-solution-section .bg-secondary,
body.public-site .review-section .bg-secondary,
body.public-site .hx-pricing-section .hx-kicker .dot {
    box-shadow: 0 0 0 4px rgba(88, 107, 241, .12);
}

/* --------------------------------------------------------------------------
   Streamline cards
   -------------------------------------------------------------------------- */
body.public-site .streamline-section .group {
    box-shadow: var(--hx-shadow-1);
    transition: transform .35s var(--hx-ease), box-shadow .35s var(--hx-ease), border-color .35s var(--hx-ease);
}

body.public-site .streamline-section .group:hover {
    box-shadow: var(--hx-shadow-3);
}

body.public-site .streamline-section .group img {
    transition: transform .6s var(--hx-ease);
}

body.public-site .streamline-section .group:hover img {
    transform: scale(1.035);
}

/* --------------------------------------------------------------------------
   Solution / split sections
   -------------------------------------------------------------------------- */
body.public-site .our-solution-section .rounded-2xl {
    box-shadow: var(--hx-shadow-2);
    transition: box-shadow .35s var(--hx-ease);
}

body.public-site .our-solution-section .rounded-2xl:hover {
    box-shadow: var(--hx-shadow-3);
}

body.public-site .our-solution-section .rounded-2xl img {
    transition: transform .7s var(--hx-ease);
}

body.public-site .our-solution-section .rounded-2xl:hover img {
    transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
body.public-site .features-section .group {
    border-color: var(--hx-line);
    box-shadow: var(--hx-shadow-1);
    transition: transform .35s var(--hx-ease), box-shadow .35s var(--hx-ease), border-color .35s var(--hx-ease);
}

body.public-site .features-section .group:hover {
    border-color: rgba(88, 107, 241, .28);
    box-shadow: var(--hx-shadow-3);
}

body.public-site .features-section .group .rounded-xl {
    transition: transform .35s var(--hx-ease);
}

body.public-site .features-section .group:hover .rounded-xl {
    transform: translateY(-2px) scale(1.04);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
body.public-site .review-section .rounded-xl {
    transition: transform .35s var(--hx-ease), box-shadow .35s var(--hx-ease);
}

body.public-site .review-section .rounded-xl:hover {
    transform: translateY(-4px);
    box-shadow: var(--hx-shadow-2);
}

body.public-site .review-section .rounded-full img {
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: var(--hx-shadow-1);
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
body.public-site .newsletter-section .rounded-3xl {
    box-shadow: var(--hx-shadow-3);
}

body.public-site .newsletter-section .rounded-3xl::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    pointer-events: none;
}

body.public-site .newsletter-section form .rounded-full {
    box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
    transition: box-shadow .25s var(--hx-ease);
}

body.public-site .newsletter-section form .rounded-full:focus-within {
    box-shadow: 0 0 0 4px rgba(88, 107, 241, .18), 0 12px 34px rgba(15, 23, 42, .18);
}

body.public-site .newsletter-section button.subscription_by_email {
    background-image: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2));
    color: #fff;
    box-shadow: 0 8px 20px rgba(88, 107, 241, .28);
}

body.public-site .newsletter-section button.subscription_by_email:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(88, 107, 241, .36);
}

/* --------------------------------------------------------------------------
   Demo / try-it section
   -------------------------------------------------------------------------- */
body.public-site .chatbot-demo .rounded-2xl {
    box-shadow: 0 24px 70px rgba(2, 6, 23, .45);
}

body.public-site .chatbot-demo input,
body.public-site .chatbot-demo textarea {
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.public-site .chatbot-demo input:focus,
body.public-site .chatbot-demo textarea:focus {
    outline: none;
    border-color: rgba(88, 107, 241, .65);
    box-shadow: 0 0 0 4px rgba(88, 107, 241, .14);
}

/* --------------------------------------------------------------------------
   Coming soon / app promo
   -------------------------------------------------------------------------- */
body.public-site .coming-soon-section img {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35));
}

/* --------------------------------------------------------------------------
   Pricing section fine-tuning
   -------------------------------------------------------------------------- */
body.public-site .hx-pricing-section .hx-plan {
    background-image: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

body.public-site .hx-pricing-section .hx-plan.is-popular {
    background-image: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
body.public-site footer a {
    transition: color .2s ease, opacity .2s ease;
}

body.public-site footer a:hover {
    opacity: 1;
}

body.public-site footer .rounded-full {
    transition: transform .25s var(--hx-ease), background-color .25s ease;
}

body.public-site footer .rounded-full:hover {
    transform: translateY(-2px);
}

body.public-site footer input[type="email"],
body.public-site footer input[type="text"] {
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.public-site footer input[type="email"]:focus,
body.public-site footer input[type="text"]:focus {
    outline: none;
    border-color: rgba(88, 107, 241, .6);
    box-shadow: 0 0 0 4px rgba(88, 107, 241, .14);
}

/* --------------------------------------------------------------------------
   Generic buttons (public pages)
   -------------------------------------------------------------------------- */
body.public-site a.rounded-full.bg-secondary,
body.public-site button.rounded-full.bg-secondary {
    background-image: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2));
    box-shadow: 0 10px 24px rgba(88, 107, 241, .26);
    transition: transform .25s var(--hx-ease), box-shadow .25s var(--hx-ease);
}

body.public-site a.rounded-full.bg-secondary:hover,
body.public-site button.rounded-full.bg-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(88, 107, 241, .34);
}

/* --------------------------------------------------------------------------
   Motion & accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.public-site *,
    body.public-site *::before,
    body.public-site *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive refinements
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    body.public-site #mainNav {
        border-radius: 18px;
    }

    body.homepage .hx-hero h1 {
        letter-spacing: -.026em;
    }
}

@media (max-width: 767px) {
    body.public-site .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.homepage .hx-hero h1 {
        line-height: 1.1;
    }

    body.public-site .review-section .rounded-xl,
    body.public-site .features-section .group {
        padding: 22px;
    }
}

/* ==========================================================================
   Hero contrast & readability (light banner images can make white text vanish)
   ========================================================================== */
body.homepage .hx-hero {
    /* Dark base colour so the adaptive header picks the dark (white-text) theme
       even while a banner image is the visible background. */
    background-color: #0b1220 !important;
}

body.homepage .hx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 50% -10%, rgba(88, 107, 241, .38), transparent 62%),
        radial-gradient(800px 520px at 85% 35%, rgba(13, 191, 192, .20), transparent 65%),
        linear-gradient(180deg, rgba(6, 10, 20, .84) 0%, rgba(7, 12, 26, .64) 45%, rgba(6, 10, 20, .82) 100%);
}

body.homepage .hx-hero > .relative.z-10 {
    position: relative;
    z-index: 10;
}

body.homepage .hx-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .32);
}

body.homepage .hx-hero p {
    color: rgba(255, 255, 255, .88) !important;
    text-shadow: 0 1px 18px rgba(0, 0, 0, .25);
}

/* Trusted-by pill */
body.homepage .hx-hero .hx-trust-pill {
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .30) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.homepage .hx-hero .hx-trust-pill span {
    color: #ffffff !important;
}

/* Hero buttons */
body.homepage .hx-hero .hx-btn-ghost {
    background: rgba(255, 255, 255, .14) !important;
    border-color: rgba(255, 255, 255, .32) !important;
    color: #ffffff !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.homepage .hx-hero .hx-btn-ghost:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #ffffff !important;
}

body.homepage .hx-hero .hx-btn-primary {
    background-image: linear-gradient(135deg, #586bf1 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(88, 107, 241, .42);
}

body.homepage .hx-hero .hx-btn-primary:hover {
    filter: brightness(1.06);
}

/* Ensure the orbit/video cards stay crisp above the scrim */
body.homepage .hx-hero .ag-orbit_box,
body.homepage .hx-hero video {
    z-index: 50;
}

/* Coming-soon accent contrast on dark teal */
body.public-site .coming-soon-section h2 .text-primary {
    color: #a5b4fc !important;
}

/* ==========================================================================
   Readability fixes for dark panels & buttons
   ========================================================================== */
body.public-site .newsletter-section h2,
body.public-site .coming-soon-section h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .22);
}

body.public-site .coming-soon-section h2 .text-primary {
    color: #c7d2fe !important;
}

body.public-site .newsletter-section p,
body.public-site .coming-soon-section p {
    color: rgba(255, 255, 255, .86) !important;
}

/* The demo/try-it widget is designed dark – force a readable dark surface even
   if the section background setting is light. */
body.public-site .chatbot-demo {
    background-color: #0b1220 !important;
    background-image:
        radial-gradient(900px 520px at 12% -5%, rgba(88, 107, 241, .30), transparent 60%),
        radial-gradient(700px 460px at 88% 25%, rgba(13, 191, 192, .18), transparent 62%) !important;
}

body.public-site .chatbot-demo h2 { color: #ffffff !important; }
body.public-site .chatbot-demo .text-slate-400 { color: #c9d2e3 !important; }

/* Missing legacy utility: intended light text on primary buttons */
body.public-site .text-base-200 { color: #ecedef; }
body.public-site a.bg-primary,
body.public-site button.bg-primary,
body.public-site .chatbot-demo .bg-primary {
    color: #ffffff !important;
}

/* Slightly deeper primary for AA contrast on small white text */
body.public-site .hx-pricing-section .hx-badge {
    background-color: #4f5fe0;
}

body.public-site .hx-pricing-section .hx-plan.is-popular .hx-btn {
    background-image: linear-gradient(135deg, #4f5fe0 0%, #6d28d9 100%);
    border-color: #4f5fe0;
    color: #ffffff;
}

/* Logo sizing (new horizontal lockups) */
body.public-site #mainNav .nav-logo img {
    height: 36px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

body.public-site footer img {
    max-height: 46px;
    width: auto;
}

@media (max-width: 575px) {
    body.public-site #mainNav .nav-logo img { height: 30px; }
}
