/* Accessibility Fixes - WCAG 2.1 AA Compliance */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

/* Color Contrast Fix - WCAG 2.1 AA Compliance */
.hero-copy {
    color: #1f2937 !important; /* gray-800 instead of gray-700 for 7.5:1 contrast ratio */
}

#testimonials .glass-card-dark {
    color: #e5e7eb;
}

#testimonials .glass-card-dark .text-gray-300,
#testimonials .glass-card-dark .text-gray-400,
#testimonials .glass-card-dark .text-sm {
    color: #e5e7eb;
}

.hero-fallback {
    opacity: 1;
    background-color: #f8fafc;
    background-image: image-set(
        url("../assets/images/hero-fallback.avif") type("image/avif"),
        url("../assets/images/hero-fallback.webp") type("image/webp")
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-fallback--hidden {
    opacity: 0;
}

#main-header {
    transition-property: background-color, box-shadow, opacity, transform;
}

.legal-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.legal-page {
    background: #f8fafc;
}

.legal-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
}

.legal-body {
    padding-bottom: 4.5rem;
}

.legal-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.legal-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    margin: 1rem 0 1.5rem;
}

.legal-lead {
    font-size: 1.05rem;
    color: #334155;
    margin: 0 0 1rem;
}

.legal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: #0f172a;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #0f172a;
}

.legal-content p {
    margin: 0.5rem 0 1rem;
    color: #334155;
}

.legal-list {
    margin: 0.5rem 0 1.25rem 1.25rem;
    list-style: disc;
    color: #334155;
}

.legal-list li {
    margin: 0.35rem 0;
}

.legal-list-plain {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 1.25rem;
}

.legal-list-plain li {
    margin: 0.35rem 0;
}

@media (min-width: 768px) {
    .legal-container {
        padding: 4.5rem 2rem;
    }

    .legal-content {
        padding: 3rem;
    }
}

.header-logo {
    font-size: 1.25rem;
    transition-property: transform, opacity;
}

h1 .gradient-text,
h1 .gradient-text-light,
h1 .gradient-emphasis,
h2 .gradient-text,
h2 .gradient-text-light,
h2 .gradient-emphasis,
.gradient-text,
.gradient-text-light,
.gradient-emphasis {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    padding-bottom: 0.05em;
}


/* CTA standardization: dark + light styles based on index hero */
.btn-gradient-solid,
.btn-header-primary,
.btn-primary-solid,
.btn-gradient-nav,
.pricing-cta,
.hero-primary-cta,
a.brand-gradient-bg,
#mobile-cta a {
    position: relative;
    background-image: linear-gradient(125deg, var(--brand-gradient-start), var(--brand-gradient-mid));
    color: #fff;
    border: 0;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

a.brand-gradient-bg,
#mobile-cta a {
    width: 100%;
}

.btn-gradient-solid:hover,
.btn-header-primary:hover,
.btn-primary-solid:hover,
.btn-gradient-nav:hover,
.pricing-cta:hover,
.hero-primary-cta:hover,
a.brand-gradient-bg:hover,
#mobile-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
    filter: brightness(1.02);
}

.btn-gradient-solid:active,
.btn-header-primary:active,
.btn-primary-solid:active,
.btn-gradient-nav:active,
.pricing-cta:active,
.hero-primary-cta:active,
a.brand-gradient-bg:active,
#mobile-cta a:active {
    transform: translateY(0);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.btn-gradient-solid:focus-visible,
.btn-header-primary:focus-visible,
.btn-primary-solid:focus-visible,
.btn-gradient-nav:focus-visible,
.pricing-cta:focus-visible,
.hero-primary-cta:focus-visible,
a.brand-gradient-bg:focus-visible,
#mobile-cta a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
}

.btn-gradient-outline,
.btn-gradient-border-moving,
.hero-secondary-cta {
    position: relative;
    background: #ffffff;
    color: #1d4ed8;
    border: 0;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-gradient-outline:hover,
.btn-gradient-border-moving:hover,
.hero-secondary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.btn-gradient-outline:active,
.btn-gradient-border-moving:active,
.hero-secondary-cta:active {
    transform: translateY(0);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

.btn-gradient-outline:focus-visible,
.btn-gradient-border-moving:focus-visible,
.hero-secondary-cta:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.3);
    outline-offset: 3px;
}

.btn-gradient-outline::before,
.btn-gradient-border-moving::before,
.hero-secondary-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-mid), var(--brand-gradient-end));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-gradient-solid::before,
.btn-gradient-outline::before {
    padding: 1px;
}

.btn-gradient-solid svg,
.btn-gradient-outline svg,
.btn-header-primary svg,
.btn-primary-solid svg,
.btn-gradient-nav svg,
.btn-gradient-border-moving svg,
.pricing-cta svg,
.hero-primary-cta svg,
.hero-secondary-cta svg,
a.brand-gradient-bg svg,
#mobile-cta a svg {
    display: inline-flex;
    width: 1.05em;
    height: 1.05em;
    stroke-width: 2;
    margin: 0;
}

/* Specific fix for promotional CTA spacing */
.promo-cta-btn {
    padding: 1.25rem 4rem !important;
    min-width: 260px !important;
    justify-content: center !important;
}


/* Unified card elevation */
.card-elevate {
    --card-elevate-lift: -6px;
    --card-elevate-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform, box-shadow;
}

.glass-card-dark.card-elevate,
.pricing-card.card-elevate {
    --card-elevate-shadow: 0 30px 60px rgba(2, 6, 23, 0.55);
}

@media (hover: hover) {
    .card-elevate:hover,
    .card-elevate:focus-within {
        transform: translateY(var(--card-elevate-lift));
        box-shadow: var(--card-elevate-shadow);
    }
}

section[id] {
    scroll-margin-top: 90px;
}

#pricing {
    scroll-margin-top: 90px;
}

@media (max-width: 767px) {
    #main-header .btn-header-primary {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    #main-header nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #main-header .header-links {
        gap: 0.75rem;
    }

    #main-header .header-dropdown-button,
    #main-header .nav-link-group {
        font-size: 0.85rem;
    }

    #main-header .header-dropdown-button {
        padding: 0.35rem 0.6rem;
    }

    #main-header .header-links a {
        white-space: nowrap;
    }

    #main-header .header-cta {
        padding: 0.5rem 1.1rem;
        font-size: 0.85rem;
    }

    #main-header .header-logo {
        font-size: 1.05rem;
        gap: 0.5rem;
    }

    #main-header .header-logo img {
        width: 34px;
        height: 34px;
    }

    #main-header .nav-caret {
        width: 0.7rem;
        height: 0.7rem;
    }
}

#mobile-cta {
    padding: 0.75rem calc(env(safe-area-inset-right) + 0.75rem) calc(env(safe-area-inset-bottom) + 0.9rem) calc(env(safe-area-inset-left) + 0.75rem);
    background: rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

#mobile-cta > div {
    background: transparent !important;
    box-shadow: none !important;
}

#mobile-cta a {
    border-radius: 999px;
    max-width: 22rem;
    margin: 0 auto;
}

@media (max-width: 640px) {
    #mobile-cta {
        padding-right: calc(env(safe-area-inset-right) + 4.25rem);
    }
}

.contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
}

.contact-form-frame {
    min-width: 0;
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Custom navigation, dropdown, and pricing styles */
.delivery-schedule-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-option {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.delivery-option:hover {
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.delivery-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.delivery-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.delivery-option-label {
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.85rem;
}

.delivery-option-example {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    color: #cbd5f5;
}

.delivery-option-note {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
    white-space: nowrap;
}

.delivery-option.selected {
    border-color: rgba(59, 130, 246, 0.85);
    background: rgba(59, 130, 246, 0.16);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.delivery-option:focus-within {
    outline: 2px solid rgba(59, 130, 246, 0.85);
    outline-offset: 2px;
}

.header-dropdown {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.header-dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--header-dropdown-color, #0f172a);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background: rgba(15, 23, 42, 0.03);
}

.header-theme-dark .header-dropdown-button {
    --header-dropdown-color: #f8fafc;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(226, 232, 240, 0.25);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
}

.header-theme-dark .header-dropdown-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-dropdown-button:focus-visible {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.08);
}

.header-dropdown.is-open .header-dropdown-button {
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.header-dropdown:hover .header-dropdown-button,
.header-dropdown:focus-within .header-dropdown-button {
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 240px;
    padding: 0.9rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
}

.header-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.header-dropdown-menu::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: inherit;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    z-index: -1;
}

.header-dropdown.is-open .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.header-dropdown:hover .header-dropdown-menu,
.header-dropdown:focus-within .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.header-dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.95rem;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-dropdown-link span {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 400;
}

.header-dropdown-link:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.header-theme-dark .header-dropdown-menu {
    background: rgba(7, 13, 28, 0.98);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 25px 70px rgba(2, 6, 23, 0.65);
}

.header-theme-dark .header-dropdown-link {
    color: #f8fafc;
}

.header-theme-dark .header-dropdown-link span {
    color: rgba(226, 232, 240, 0.65);
}

.header-theme-dark .header-dropdown-link:hover {
    background: rgba(59, 130, 246, 0.2);
}

.nav-caret {
    width: 0.85rem;
    height: 0.85rem;
    transition: transform 0.2s ease;
}

.header-dropdown.is-open .nav-caret {
    transform: rotate(180deg);
}

.header-dropdown:hover .nav-caret,
.header-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.mobile-dropdown-panel a,
.mobile-sub-link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 0.65rem;
    color: #1f2937;
    font-size: 0.95rem;
}

.mobile-dropdown-panel a:hover,
.mobile-sub-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

.mobile-dropdown-toggle svg {
    transition: transform 0.2s ease;
}

.mobile-dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.choice-button span {
    text-align: center;
}

.no-toggle-hover {
    transition: none;
}

.no-toggle-hover:hover {
    background-color: rgba(156, 163, 175, 0.5);
    box-shadow: none;
}

.no-toggle-hover[aria-checked="true"] {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.no-toggle-hover[aria-checked="true"]:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

#faq .faq-item:hover,
#faq .faq-item:focus-within {
    background: rgba(8, 12, 25, 0.95);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.55),
        0 25px 60px rgba(59, 130, 246, 0.22);
}

#faq .faq-question[aria-expanded="true"] {
    background: rgba(8, 12, 25, 0.95);
    color: #f8fafc;
}

#faq .faq-answer {
    color: #e2e8f0;
}

#faq .faq-answer p {
    color: inherit;
}

/* How It Works - conversion focused step cards */
.how-it-works-section {
    position: relative;
    background:
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.12), transparent 45%),
        radial-gradient(circle at 90% 5%, rgba(56, 189, 248, 0.12), transparent 40%),
        #ffffff;
}

.how-it-steps {
    display: grid;
    gap: 1.75rem;
}

.how-it-step-frame {
    padding: 1px;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(56, 189, 248, 0.2), rgba(14, 116, 144, 0.2));
}

.how-it-step-card {
    position: relative;
    height: 100%;
    padding: 2rem 2rem 2.25rem;
    border-radius: 1.55rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-it-step-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(59, 130, 246, 0.12), rgba(56, 189, 248, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.how-it-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.how-it-step-card:hover::after {
    opacity: 1;
}

.how-it-step-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
}

.how-it-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-mid), var(--brand-gradient-end));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.how-it-step-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.7;
}

.how-it-step-number {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #1d4ed8;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.how-it-step-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.how-it-step-copy {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.how-it-step-proof {
    margin-top: auto;
    font-weight: 600;
    color: #1d4ed8;
    font-size: 0.92rem;
}

@media (min-width: 768px) {
    .how-it-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .how-it-step-card {
        padding: 1.75rem;
    }
}

/* Scroll reveal + parallax enhancements */
body.animations-ready [data-animate-on-scroll] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

body.animations-ready [data-animate-on-scroll].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.animations-ready [data-animate-on-scroll][data-reveal="left"] {
    transform: translate3d(-20px, 0, 0);
}

body.animations-ready [data-animate-on-scroll][data-reveal="right"] {
    transform: translate3d(20px, 0, 0);
}

body.animations-ready [data-animate-on-scroll][data-reveal="scale"] {
    transform: scale(0.97);
}

body.animations-ready [data-animate-on-scroll][data-reveal="fade"] {
    transform: none;
}

[data-parallax] {
    --parallax-x: 0px;
    --parallax-y: 0px;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
    will-change: transform;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.5;
    z-index: 1;
    mix-blend-mode: multiply;
}

.hero-orb--one {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35), transparent 70%);
}

.hero-orb--two {
    width: 440px;
    height: 440px;
    bottom: -180px;
    right: -140px;
    background: radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.3), transparent 70%);
    opacity: 0.45;
}

.hero-orb--three {
    width: 260px;
    height: 260px;
    top: 15%;
    right: 8%;
    background: radial-gradient(circle at 50% 50%, rgba(14, 116, 144, 0.25), transparent 70%);
    opacity: 0.4;
}

.section-glow {
    position: absolute;
    border-radius: 999px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.section-glow--left {
    width: 360px;
    height: 360px;
    top: -160px;
    left: -160px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
}

.section-glow--right {
    width: 420px;
    height: 420px;
    bottom: -180px;
    right: -160px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
}

/* Micro interaction polish */
.hero-feature-list li,
.hero-badge-row span {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

@media (hover: hover) {
    .hero-feature-list li:hover {
        transform: translateY(-2px);
    }

    .hero-badge-row span:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    }
}

.btn-gradient-solid svg,
.btn-gradient-outline svg,
.btn-header-primary svg,
.btn-primary-solid svg,
.btn-gradient-nav svg,
.btn-gradient-border-moving svg,
.pricing-cta svg,
.hero-primary-cta svg,
.hero-secondary-cta svg,
a.brand-gradient-bg svg,
#mobile-cta a svg {
    transition: transform 0.2s ease;
}

.btn-gradient-solid:hover svg,
.btn-gradient-outline:hover svg,
.btn-header-primary:hover svg,
.btn-primary-solid:hover svg,
.btn-gradient-nav:hover svg,
.btn-gradient-border-moving:hover svg,
.pricing-cta:hover svg,
.hero-primary-cta:hover svg,
.hero-secondary-cta:hover svg,
a.brand-gradient-bg:hover svg,
#mobile-cta a:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .hero-orb--one {
        width: 220px;
        height: 220px;
        top: -100px;
        left: -100px;
    }

    .hero-orb--two {
        width: 280px;
        height: 280px;
        bottom: -140px;
        right: -140px;
    }

    .hero-orb--three {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.animations-ready [data-animate-on-scroll] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    [data-parallax] {
        transform: none;
    }

    .hero-feature-list li,
    .hero-badge-row span {
        transition: none;
    }
}
/* Higher specificity for form overrides */
body .choice-segment {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 580px !important; /* Increased to match nav button alignment */
    margin-left: auto !important;
    margin-right: auto !important;
}

body .choice-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 1.25rem !important;
    border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
    height: auto !important;
    padding: 1.25rem 1.75rem !important; /* Padding moved to label for universal centering */
    min-height: 4rem !important;
    position: relative !important;
}

body .choice-button input[type="radio"],
body .choice-button input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

body .choice-button span {
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    font-size: 1.1rem !important;
    color: #334155 !important;
    pointer-events: none;
    padding: 0 !important; /* Span padding removed as label has it */
}

body .choice-button:hover {
    border-color: var(--brand-gradient-mid) !important;
    background: #fff !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1) !important;
}

body .choice-button.selected {
    border: 2px solid transparent !important;
    background-image: linear-gradient(#fff, #fff), 
                      linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-mid)) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.28) !important;
    transform: scale(1.03) !important;
}

body .choice-button.selected span {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body .choice-button.selected::after {
    content: '' !important;
    position: absolute !important;
    right: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6' stroke-width='4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7' /%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    z-index: 50 !important;
    display: block !important;
    pointer-events: none !important;
}

body .choice-button.has-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.02) !important;
}

/* GLOBAL FORM ANSWER CENTERING - STALLION LEADS */
/* Centering placeholder and typed text for ALL inputs and selects on the site */
body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea {
    text-align: center !important;
    justify-content: center !important;
}

body input::placeholder,
body textarea::placeholder {
    text-align: center !important;
}

body select {
    text-align-last: center !important;
}

/* INTL-TEL-INPUT OVERRIDES for Centered Design */
.iti {
    width: 100%;
    display: block !important;
}

.iti__country-list {
    text-align: left !important;
    z-index: 100;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

#phone {
    padding-left: 52px !important;
    padding-right: 52px !important; /* Balanced padding to keep text centered */
}

.iti__flag-container {
    padding-left: 8px;
}

/* OTP Verification Styles */
.otp-digit {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white !important; /* Ensure white background even in centered design */
    transition: all 0.2s ease-in-out;
}

.otp-digit:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.otp-digit.has-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.otp-digit.is-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.otp-input-wrapper.shake {
    animation: shake 0.3s ease-in-out;
}

#verify-otp-btn.ready {
    opacity: 1;
    cursor: pointer;
}

#resend-otp-btn:disabled {
    opacity: 0.6;
}


/* OTP Verification Styles */
.otp-digit {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.otp-digit.is-success {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}

.otp-digit.has-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

.shake {
    animation: otp-shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes otp-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 480px) {
    .otp-digit {
        width: 2.5rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* Mobile-first contact form refinements */
body [data-contact-form-shell] {
    position: relative;
    scroll-margin-top: 88px;
}

body [data-contact-form-shell] #form-card-title {
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

body [data-contact-form-shell] .form-step fieldset {
    margin-bottom: 1.15rem !important;
}

body [data-contact-form-shell] .form-step legend {
    line-height: 1.14;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

body [data-contact-form-shell] .form-step > .flex.gap-3 {
    align-items: stretch;
}

body [data-contact-form-shell] .form-step button[data-next-step],
body [data-contact-form-shell] .form-step button[data-prev-step],
body [data-contact-form-shell] #submit-btn,
body [data-contact-form-shell] #verify-otp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    line-height: 1.15;
    text-wrap: balance;
}

body [data-contact-form-shell] .form-step button svg {
    flex: 0 0 auto;
}

body [data-contact-form-shell] input:not([type="checkbox"]):not([type="radio"]),
body [data-contact-form-shell] select,
body [data-contact-form-shell] textarea {
    text-align: left !important;
}

/* Ensure OTP digits remain centered regardless of the above override */
body [data-contact-form-shell] .otp-digit {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-indent: 0 !important;
}

body [data-contact-form-shell] input::placeholder,
body [data-contact-form-shell] textarea::placeholder {
    text-align: left !important;
}

body [data-contact-form-shell] select {
    text-align-last: left !important;
    padding-right: 2.75rem;
}

body [data-contact-form-shell] #otp-container {
    margin-bottom: 1rem !important;
}

body [data-contact-form-shell] #otp-error {
    margin-bottom: 0.85rem !important;
}

@media (max-width: 767px) {
    #contact {
        scroll-margin-top: 84px;
        padding-top: 3.75rem !important;
        padding-bottom: 4rem !important;
    }

    #contact > div {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #contact > div > .text-center:first-child {
        margin-bottom: 1.25rem !important;
    }

    #contact > div > .text-center:first-child img.logo-mark {
        width: 3rem;
        height: 3rem;
    }

    #contact > div > .text-center:first-child h2 {
        font-size: clamp(2rem, 8vw, 2.6rem) !important;
        line-height: 1.04 !important;
        margin-bottom: 0.65rem !important;
    }

    #contact > div > .text-center:first-child p {
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }

    body [data-contact-form-shell] {
        padding: 1.1rem !important;
        border-radius: 1.35rem !important;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12) !important;
    }

    body [data-contact-form-shell] #form-card-title {
        font-size: 1.35rem !important;
        margin-bottom: 0.85rem !important;
    }

    body [data-contact-form-shell] .form-step legend {
        font-size: clamp(1.05rem, 5vw, 1.32rem) !important;
        margin-bottom: 0.75rem !important;
    }

    body [data-contact-form-shell] .choice-segment {
        gap: 0.65rem !important;
        max-width: none !important;
    }

    body [data-contact-form-shell] .choice-button {
        border-radius: 1rem !important;
        padding: 0.95rem 1rem !important;
        min-height: 3.35rem !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
    }

    body [data-contact-form-shell] .choice-button span {
        font-size: 0.98rem !important;
        line-height: 1.25 !important;
    }

    body [data-contact-form-shell] .choice-button.selected::after {
        right: 0.9rem !important;
        width: 16px !important;
        height: 16px !important;
    }

    body [data-contact-form-shell] .form-step > .flex.gap-3 {
        gap: 0.6rem !important;
    }

    body [data-contact-form-shell] .form-step button[data-next-step],
    body [data-contact-form-shell] .form-step button[data-prev-step],
    body [data-contact-form-shell] #submit-btn,
    body [data-contact-form-shell] #verify-otp-btn {
        min-height: 3rem;
        padding: 0.8rem 0.95rem !important;
        font-size: 0.95rem !important;
        border-radius: 1rem !important;
    }

    body [data-contact-form-shell] .form-step button svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    body [data-contact-form-shell] [data-form-step="9"] .grid.md\:grid-cols-2 {
        gap: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    body [data-contact-form-shell] [data-form-step="9"] .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    body [data-contact-form-shell] [data-form-step="9"] .mb-6 {
        margin-bottom: 1rem !important;
    }

    body [data-contact-form-shell] [data-form-step="9"] label.block {
        font-size: 0.82rem !important;
        margin-bottom: 0.35rem !important;
        letter-spacing: 0.01em;
    }

    body [data-contact-form-shell] [data-form-step="9"] input:not([type="checkbox"]):not([type="radio"]),
    body [data-contact-form-shell] [data-form-step="9"] select {
        min-height: 3rem;
        padding: 0.72rem 0.9rem !important;
        font-size: 1rem !important;
        border-radius: 0.95rem !important;
    }

    body [data-contact-form-shell] [data-form-step="9"] label.flex.items-start.gap-3 {
        gap: 0.65rem !important;
        font-size: 0.72rem !important;
        line-height: 1.45 !important;
    }

    body [data-contact-form-shell] [data-form-step="9"] label.flex.items-start.gap-3 input {
        width: 1rem !important;
        height: 1rem !important;
        margin-top: 0.15rem !important;
    }

    body [data-contact-form-shell] [data-form-step="10"] .text-center.mb-6 {
        margin-bottom: 1.15rem !important;
    }

    body [data-contact-form-shell] [data-form-step="10"] .text-center.mb-8 {
        margin-bottom: 1rem !important;
    }

    body [data-contact-form-shell] #otp-container {
        gap: 0.55rem !important;
    }

    body [data-contact-form-shell] .otp-digit {
        width: min(18vw, 3rem);
        height: min(18vw, 3rem);
        min-width: 2.8rem;
        min-height: 2.8rem;
        font-size: 1.2rem;
        border-radius: 0.85rem;
        text-align: center !important;
    }
}

@media (max-width: 390px) {
    body [data-contact-form-shell] {
        padding: 0.95rem !important;
    }

    body [data-contact-form-shell] .choice-button span {
        font-size: 0.94rem !important;
    }

    body [data-contact-form-shell] .form-step button[data-next-step],
    body [data-contact-form-shell] .form-step button[data-prev-step],
    body [data-contact-form-shell] #submit-btn,
    body [data-contact-form-shell] #verify-otp-btn {
        font-size: 0.9rem !important;
    }
}

@media (min-width: 375px) and (max-width: 767px) {
    body [data-contact-form-shell] [data-form-step="9"] .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: start;
    }
}

.form-error {
    color: #ef4444 !important; /* Tailwind red-500 */
}
/* Mobile Performance & LCP Optimizations */

/* Fix Hero H1 Overflow on Mobile (Lighthouse NO_LCP fix) */
#hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    hyphens: auto;
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 3.5rem !important;
    }
}

/* Ensure Hero Visibility on First Paint (Bypass animation-delay for LCP) */
#hero .scroll-trigger,
#hero h1,
#hero p,
#hero ul,
#hero .hero-badge-row,
#hero .hero-primary-cta,
#hero .hero-secondary-cta,
.hero-content,
main h1, 
main h2,
.scroll-trigger[data-reveal],
.hero-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
}

/* Gradient text styles are handled above via the .gradient-text and .gradient-text-light classes */

/* Restore animations only after initial paint (handled by JS if needed, or left as is for stability) */
body.is-loaded .scroll-trigger[data-reveal] {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 640px) {
    .how-it-step-card {
        padding: 1.5rem !important;
    }
}
