/* Lenis + scroll-reveal (parity with React template: Lenis + framer-motion + marquee gradient) */
html.lenis,
html.lenis body {
    height: auto;
}

/* Hero watermark: absolute in #top / #about-top so it scrolls with the hero (does not float over the rest of the page).
   Position tuned with --site-nav-offset + 50vh so it sits above the stars; centres on that point. */
#top > .site-watermark,
#about-top > .site-watermark,
#features-top > .site-watermark {
    position: absolute;
    left: 50%;
    /*top: calc(var(--site-nav-offset, 0.75rem) + 50vh);*/
    top: calc(var(--site-nav-offset, -4.25rem) + 50vh);
    z-index: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    line-height: 0;
}

#top > .site-watermark img,
#about-top > .site-watermark img,
#features-top > .site-watermark img {
    display: block;
    width: clamp(30rem, 82vmin, 52rem);
    max-width: min(52rem, 96vw);
    height: auto;
    flex-shrink: 0;
    opacity: 0.1;
}

/* Desktop only — hide on mobile / tablet (matches Tailwind lg breakpoint) */
@media (max-width: 1023px) {
    #top > .site-watermark,
    #about-top > .site-watermark,
    #features-top > .site-watermark {
        display: none;
    }
}

/* Stack page content above the watermark. Exclude #mobile-menu (`fixed`) and nav (`sticky`) — `position: relative` would override them. */
body > :not(.site-watermark):not(#mobile-menu):not(nav) {
    position: relative;
    z-index: 1;
}

/* Sticky header: stays at top while scrolling; frosted white. Bottom border only after scroll (see .site-header--scrolled + script.js). */
body > nav.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgb(255 255 255 / 0.88);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

body > nav.site-header.site-header--scrolled {
    border-bottom-color: rgb(0 0 0 / 0.06);
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
}

@supports not (backdrop-filter: blur(1px)) {
    body > nav.site-header {
        background-color: #fff;
    }
}

/* Full-screen mobile panel: body sibling; must stay `position: fixed` and above #top */
#mobile-menu.mobile-menu-overlay {
    z-index: 200;
}

/* Hero: mobile — no extra grid padding-right; image bleeds to the right (cropped) with inset on the left like desktop. */
@media (max-width: 47.99rem) {
    .hero-content-grid {
        min-height: min-content;
        align-items: start;
        align-content: start;
        row-gap: 1.5rem;
    }

    /* pl-4 on grid (1rem) + 1rem margin = 2rem from viewport; width fills to right edge — image “cut off” on the right */
    #top .hero-image-column,
    #about-top .hero-image-column,
    #features-top .hero-image-column {
        margin-left: 1rem;
        width: calc(100vw - 2rem);
        max-width: none;
        justify-self: start;
    }

    #top .hero-image-column .hero-image-img,
    #features-top .hero-image-column .hero-image-img {
        width: 100%;
        height: 100%;
        min-height: min(42vh, calc(var(--spacing) * 154));
        object-fit: cover;
        object-position: left center;
    }

    /* About hero: phone asset — contain on mobile */
    #about-top .hero-image-column .hero-image-img {
        width: 100%;
        height: auto;
        min-height: unset;
        max-height: min(48vh, 26rem);
        object-fit: contain;
        object-position: center bottom;
    }
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Match React layout: testimonials use max-w-7xl (not in default Tailwind build) */
.max-w-7xl {
    max-width: 80rem;
}

/* Even vertical rhythm between page sections (aligns with ~mt-42 / 10.5rem) */
.site-section {
    margin-top: clamp(5rem, 10vw, 10.5rem);
}

@media (width >= 48rem) {
    #cta-banner,
    #about-hero-cta-banner,
    #features-hero-cta-banner {
        margin: 0;
    }
}

/* Jobs map section (#jobs-map): plain screenshot, no frame or shadow */
.jobs-map-section__figure {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.jobs-map-section__figure img {
    display: block;
    max-width: 660px;
    height: auto;
    width: 100%;
    margin: 0 auto;
}

.site-footer {
    margin-top: clamp(5rem, 10vw, 10.5rem);
}

/* Section headings: slightly heavier weight (works without Tailwind font-semibold in bundle) */
.section-heading {
    /*font-weight: 600;*/
    letter-spacing: -0.03em;
}

/* Small uppercase label above section titles (home, about, features) */
.section-eyebrow {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand, #1b3ba5);
}

/* Hero / section title: brand word, extra-bold vs surrounding heading */
.title-accent {
    display: inline;
    color: var(--color-brand, #1b3ba5);
    font-weight: 800;
}

h1 .title-accent {
    font-weight: 900;
}

/* Brand text/icon color (pairs with --color-brand in output.css) */
.text-brand {
    color: var(--color-brand);
}

.fa-solid.text-brand,
.fa-regular.text-brand {
    color: var(--color-brand);
}

/* Testimonials: initials avatar (replaces stock photos) */
.testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background-color: var(--color-brand, #1b3ba5);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.lucide-star.fill-brand {
    fill: var(--color-brand);
    color: var(--color-brand);
}

/* Pricing cards — full layout in CSS so plans look correct even when Tailwind output omits newer utilities */
.pricing-intro-wide {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.pricing-intro-below {
    margin-top: 3rem;
}

.pricing-intro-below p + p {
    margin-top: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (width >= 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 1280px) {
    .pricing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.06),
        0 1px 2px -1px rgb(0 0 0 / 0.06);
}

.pricing-card--popular {
    border: 2px solid var(--color-brand, #1b3ba5);
    box-shadow: 0 4px 22px rgb(27 59 165 / 0.14);
    padding-top: 1.75rem;
}

.pricing-popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% -50%;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--color-brand, #1b3ba5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(17 24 39);
}

.pricing-card-price {
    margin-top: 0.5rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: rgb(17 24 39);
}

.pricing-card-meta {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: rgb(0 0 0 / 0.5);
}

.pricing-card-desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(0 0 0 / 0.4);
}

.pricing-card-features {
    margin: 1.5rem 0 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(0 0 0 / 0.5);
    list-style: none;
}

.pricing-card-features li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.pricing-card-features .fa-circle-check {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pricing-card-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgb(0 0 0 / 0.45);
}

.pricing-card-btn {
    display: block;
    margin-top: 2rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pricing-card--popular .pricing-card-btn {
    margin-top: 1.5rem;
}

.pricing-card-btn--outline {
    border: 1px solid rgb(0 0 0 / 0.12);
    color: inherit;
    background: transparent;
}

.pricing-card-btn--outline:hover {
    background-color: rgb(0 0 0 / 0.04);
}

.pricing-card-btn--primary {
    background-color: var(--color-brand, #1b3ba5);
    color: #fff;
}

.pricing-card-btn--primary:hover {
    background-color: color-mix(in oklab, var(--color-brand, #1b3ba5) 82%, black);
}

/* FAQ: bottom padding inside section; space before footer comes from .site-footer margin-top */
.faq-section {
    padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.faq-accordion {
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}

.faq-accordion details {
    border-bottom: 1px solid rgb(229 231 235);
}

.faq-accordion details:last-child {
    border-bottom: none;
}

.faq-accordion summary {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.faq-accordion details p {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Footer: rounded top; padding from utility classes (p-10 / md:p-14) */
footer.site-footer {
    border-radius: var(--radius-2xl, 1rem) var(--radius-2xl, 1rem) 0 0;
}

.site-footer-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Footer enquiry: multi-step, matches site inputs + brand buttons */
.footer-enquiry-form {
    max-width: 100%;
}

.footer-enquiry-step-label {
    margin: 0;
}

.footer-enquiry-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(0 0 0 / 0.55);
}

.footer-enquiry-input,
.footer-enquiry-textarea {
    box-sizing: border-box;
    border-radius: 0.5rem;
    border: 1px solid rgb(0 0 0 / 0.12);
    background: #fff;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(31 41 55);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.footer-enquiry-textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.footer-enquiry-input::placeholder,
.footer-enquiry-textarea::placeholder {
    color: rgb(0 0 0 / 0.35);
}

.footer-enquiry-input:hover,
.footer-enquiry-textarea:hover {
    border-color: rgb(0 0 0 / 0.18);
}

.footer-enquiry-input:focus,
.footer-enquiry-textarea:focus {
    outline: none;
    border-color: var(--color-brand, #1b3ba5);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-brand, #1b3ba5) 22%, transparent);
}

.footer-enquiry-field--error,
.footer-enquiry-field--error:hover {
    border-color: rgb(185 28 28);
}

.footer-enquiry-field--error:focus {
    border-color: rgb(153 27 27);
    box-shadow: 0 0 0 3px rgb(185 28 28 / 0.28);
}

.footer-enquiry-label.footer-enquiry-label--error {
    color: rgb(185 28 28);
}

.footer-enquiry-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.footer-enquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.footer-enquiry-btn--primary {
    border: none;
    background-color: var(--color-brand, #1b3ba5);
    color: #fff;
}

.footer-enquiry-btn--primary:hover {
    background-color: color-mix(in oklab, var(--color-brand, #1b3ba5) 82%, black);
}

.footer-enquiry-btn--outline {
    border: 1px solid rgb(0 0 0 / 0.12);
    background: transparent;
    color: inherit;
}

.footer-enquiry-btn--outline:hover {
    background-color: rgb(0 0 0 / 0.04);
}

.footer-enquiry-btn:focus-visible {
    outline: 2px solid var(--color-brand, #1b3ba5);
    outline-offset: 2px;
}

/* Footer layout + social (responsive; works without extra Tailwind breakpoints) */
.site-footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.site-footer-top {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.site-footer-aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.site-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer-social-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.site-footer-bottom-end {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    width: 100%;
}

.footer-social-link {
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgb(0 0 0 / 0.1);
    background-color: rgb(255 255 255 / 0.92);
    color: rgb(0 0 0 / 0.55);
    text-decoration: none;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.footer-social-link:hover {
    color: rgb(0 0 0 / 0.82);
    border-color: rgb(0 0 0 / 0.14);
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--color-brand, #1b3ba5);
    outline-offset: 2px;
}

.footer-social-icon--sm {
    font-size: 0.9375rem;
}

.footer-social-icon--md {
    font-size: 1.0625rem;
}

.footer-social-icon {
    font-size: 1rem;
    line-height: 1;
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border-top: 1px solid rgb(0 0 0 / 0.08);
    padding-top: 2rem;
}

.site-footer-bottom p {
    line-height: 1.625;
}

.site-footer-rights {
    margin: 0;
    white-space: nowrap;
}

@media (width >= 48rem) {
    .site-footer-content {
        gap: 3rem;
    }

    .site-footer-top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
    }

    .site-footer-aside {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        column-gap: 2.5rem;
        row-gap: 1.5rem;
        max-width: 40rem;
        flex: 1 1 auto;
    }

    .site-footer-cta {
        margin-left: auto;
        text-align: right;
    }

    .site-footer-cta-inner {
        align-items: flex-end;
    }

    .site-footer-cta-inner h2 {
        text-align: right;
    }

    .site-footer-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem 1.5rem;
        padding-top: 2.5rem;
    }

    .site-footer-bottom-end {
        justify-content: flex-end;
        width: auto;
        margin-left: auto;
        flex-shrink: 0;
    }
}

/* Feature cards: custom SVG graphics in rounded panels (matches bg-black/4 blocks) */
.feature-card-graphic {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.feature-card-graphic svg {
    width: 100%;
    height: auto;
    max-width: 280px;
    max-height: 240px;
}

@media (width >= 48rem) {
    .feature-card-graphic {
        min-height: 280px;
        padding: 2rem;
    }
}

/* Platform section (#platform): map figure then supporting highlights (not heavy feature cards) */
#platform .platform-section-intro + .jobs-map-section__figure {
    margin-top: clamp(3rem, 5vw, 4.5rem);
}

#platform .jobs-map-section__figure + .platform-core-grid {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.platform-core-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (width >= 48rem) {
    .platform-core-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Below jobs map: compact summary highlights — no card chrome, no CTAs */
.platform-core-grid--highlights {
    gap: clamp(1.25rem, 3vw, 2rem);
}

@media (width >= 48rem) {
    .platform-core-grid--highlights {
        gap: 1.75rem;
    }
}

.platform-core-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 20rem;
    margin-inline: auto;
}

/* Match #solution “Built For How Trades Actually Work”: rounded-xl + p-4 + size-6 icon */
.platform-core-highlight__icon.platform-core-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-xl, 0.75rem);
    background-color: rgb(27 59 165);
}

.platform-core-highlight__icon .platform-core-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.platform-core-highlight__title.platform-core-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.platform-core-highlight__text.platform-core-desc {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgb(0 0 0 / 0.5);
}

.platform-core-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (width >= 48rem) {
    .platform-core-card {
        padding: 2rem;
        border-radius: 1rem;
    }
}

.platform-core-card.feature-card-hoverable {
    transition:
        transform 0.3s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .platform-core-card.feature-card-hoverable:hover {
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow:
            0 8px 24px -6px rgba(0, 0, 0, 0.1),
            0 16px 40px -12px rgba(0, 0, 0, 0.08);
    }
}

.platform-core-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background-color: rgb(27 59 165);
    margin-bottom: 1.25rem;
}

.platform-core-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.platform-core-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: rgb(31 41 55);
}

.platform-core-desc {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgb(107 114 128);
    hyphens: none;
    -webkit-hyphens: none;
}

.platform-core-divider {
    margin-top: auto;
    padding-top: 1.25rem;
    margin-bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 0;
}

/* Hero trade badges: lighter overlap than Tailwind’s only bundled -space-x-4; initials stay readable */
.hero-trade-badge-row {
    display: flex;
    padding-right: 0.75rem;
    cursor: pointer;
}
.hero-trade-badge-row > * + * {
    margin-inline-start: -10px;
}

/* Framer Motion settled state wrapper (parity with motion.div around <Marquee />) */
.marquee-motion-layer {
    opacity: 1;
    transform: none;
}

/* react-fast-marquee — structure/classes from Marquee.scss (JS-driven scroll uses .rfm-marquee--js) */
.rfm-marquee-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    position: relative;
    width: var(--width, 100%);
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    transform: var(--transform, none);
}

.rfm-marquee-container:hover .rfm-marquee {
    animation-play-state: var(--pause-on-hover, running);
}

.rfm-marquee-container:active .rfm-marquee {
    animation-play-state: var(--pause-on-click, running);
}

.rfm-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.rfm-overlay::before,
.rfm-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: var(--gradient-width, 200px);
    z-index: 2;
    pointer-events: none;
    touch-action: none;
}

.rfm-overlay::before {
    left: 0;
    background: linear-gradient(to right, var(--gradient-color, #fff), rgba(255, 255, 255, 0));
}

.rfm-overlay::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
    background: linear-gradient(to right, var(--gradient-color, #fff), rgba(255, 255, 255, 0));
}

.rfm-marquee {
    flex: 0 0 auto;
    min-width: var(--min-width, 100%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    animation: rfm-scroll var(--duration, 40s) linear var(--delay, 0s) var(--iteration-count, infinite);
    animation-play-state: var(--play, running);
    animation-direction: var(--direction, normal);
}

@keyframes rfm-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Vanilla RAF marquee — disable CSS keyframes; inner track is translated in JS */
.rfm-marquee.rfm-marquee--js {
    animation: none !important;
    flex: 1 1 auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.rfm-initial-child-container {
    flex: 0 0 auto;
    display: flex;
    min-width: auto;
    flex-direction: row;
    align-items: center;
}

.rfm-child {
    flex-shrink: 0;
    transform: var(--transform, none);
}

/* Match React `gap-6` / `mx-2` spacing between testimonial cards in the marquee track */
.testimonial-marquee-track {
    gap: 1.5rem;
    column-gap: 1.5rem;
}

/* Equal-height cards in the testimonial marquee (shorter quotes still match row height) */
.rfm-initial-child-container.testimonial-marquee-track {
    align-items: stretch;
}

.testimonial-marquee-track .rfm-child {
    display: flex;
    align-items: stretch;
}

.testimonial-marquee-track .rfm-child > .testimonial-card {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 100%;
}

/* Quote grows so avatar row lines up across cards in the same row */
.testimonial-card > p {
    flex: 1 1 auto;
    min-height: 0;
}

/* Keep legacy strips inside the centered content column */
.marquee-strip {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* react-fast-marquee-style edge fade */
.marquee-edge-fade {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
}

[data-reveal] {
    opacity: 0;
    transition: none;
}

[data-reveal="up"] {
    transform: translate3d(0, var(--reveal-dist, 50px), 0);
}

[data-reveal="up-lg"] {
    transform: translate3d(0, var(--reveal-dist, 100px), 0);
}

[data-reveal="right"] {
    transform: translate3d(var(--reveal-dist, 100px), 0, 0);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-property: opacity, transform;
    transition-duration: var(--reveal-dur, 0.85s);
    transition-timing-function: var(--reveal-ease, cubic-bezier(0.34, 1.25, 0.64, 1));
    transition-delay: var(--reveal-delay, 0s);
}

/* Feature cards: hover lift after entrance — matches Tailwind hover:-translate-y-1 duration-300 */
.feature-card-hoverable {
    transition: transform 0.3s ease;
}

.feature-card-hoverable:hover {
    transform: translateY(-0.25rem);
}

/* About hero: desktop sticky phone in right column; CTA is a separate full-width band below #about-top */
.about-hero-rail {
    display: none;
}

.about-hero-phone-sticky {
    display: none;
}

#about-hero-cta-banner,
#features-hero-cta-banner {
    margin-top: 0;
}

@media (width >= 48em) {
    #about-top {
        overflow: visible;
    }

    .about-hero-copy {
        display: flex;
        max-width: none;
        flex-direction: column;
        justify-content: center;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .about-hero-rail {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        min-width: 0;
    }

    .about-hero-rail-sticky-host {
        display: flex;
        flex: 1 1 0%;
        min-height: 0;
        flex-direction: column;
        justify-content: flex-end;
    }

    .about-hero-phone-sticky {
        position: sticky;
        bottom: 0;
        z-index: 10;
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding-left: clamp(0.25rem, 2vw, 1.25rem);
        padding-right: clamp(0.25rem, 2vw, 1rem);
        padding-bottom: 0;
        margin-bottom: clamp(-1.5rem, -3vw, -2rem);
        transition: padding-bottom 0.35s ease;
    }

    .about-hero-phone-sticky.is-above-cta {
        padding-bottom: 1.5rem;
    }

    .about-hero-sticky-img {
        display: block;
        width: auto;
        height: auto;
        max-height: min(72vh, 42rem);
        object-fit: contain;
        object-position: bottom left;
    }
}

/* Company: same rhythm as trades / values — centred header, then soft band like site CTAs */
.about-company-band__inner {
    display: flex;
    max-width: 52rem;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    margin-inline: auto;
    border-radius: 0.75rem;
    border: 1px solid rgb(0 0 0 / 0.08);
    background: rgb(0 0 0 / 0.04);
    padding: 1.75rem 1.25rem 2rem;
}

@media (width >= 48em) {
    .about-company-band__inner {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem 2.5rem 2.25rem;

    }
}

.about-company-band__logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.about-company-band__logo .about-company-logo {
    display: block;
    max-width: 11rem;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (width >= 48em) {
    .about-company-band__logo .about-company-logo {
        max-width: 13rem;
    }
}

.about-company-band__body {
    width: 100%;
    min-width: 0;
    text-align: center;
}

@media (width >= 48em) {
    .about-company-band__body {
        flex: 1;
        padding-top: 0.25rem;
        text-align: left;
    }
}

.about-trades-grid {
    display: flex;
    max-width: 48rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.625rem;
    margin-top: 0;
    margin-bottom: 0;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

.about-trades-grid li {
    border-radius: 9999px;
    border: 1px solid rgb(0 0 0 / 0.1);
    background: #fff;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: rgb(31 41 55);
}

.about-trades-grid__any {
    border-color: color-mix(in oklab, var(--color-brand, #1b3ba5) 40%, rgb(0 0 0 / 0.12));
    background: color-mix(in oklab, var(--color-brand, #1b3ba5) 9%, white);
    font-weight: 600;
    color: var(--color-brand, #1b3ba5);
}

/* ---------- Features page: product storytelling (editorial cards, spotlight band) ---------- */
#features-page .features-section-intro {
    max-width: 40rem;
}

#features-page .features-what-wrap {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

#features-page .features-what-wrap .about-trades-grid {
    max-width: 52rem;
    gap: 0.625rem 0.875rem;
}

#features-page .features-what-wrap .about-trades-grid li {
    padding: 0.5rem 1.15rem;
    font-size: 0.9375rem;
}

/* Light band behind select sections (suppliers / planning) */
#features-page .features-section-pop {
    background: linear-gradient(180deg, rgb(0 0 0 / 0.025) 0%, transparent 45%);
}

/* Job: desktop screenshot with phone overlay (same idea as invoicing composite) */
#features-page .features-visual-podium {
    margin-top: clamp(2rem, 5vw, 3rem);
}

#features-page .features-visual-podium__stage {
    margin-inline: auto;
    max-width: min(100%, 48rem);
}

#features-page .features-visual-podium__figure {
    display: flex;
    justify-content: center;
    margin: 0;
}

#features-page .features-visual-podium__composite {
    position: relative;
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
}

#features-page .features-visual-podium__composite .features-screenshot--job-desktop {
    display: block;
    max-width: min(100%, 38rem);
    margin-inline: auto;
}

#features-page .features-visual-podium__composite .features-screenshot--podium-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: min(34%, 10.5rem);
    transform: translate(2%, 8%);
}

@media (max-width: 55.98rem) {
    #features-page .features-visual-podium__composite {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(1.25rem, 4vw, 1.75rem);
        max-width: 100%;
    }

    #features-page .features-visual-podium__composite .features-screenshot--job-desktop {
        max-width: min(100%, 36rem);
    }

    #features-page .features-visual-podium__composite .features-screenshot--podium-overlay {
        position: static;
        transform: none;
        max-width: min(17.5rem, 82vw);
        margin: 0;
    }
}

#features-page .features-visual-podium__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
    padding-top: clamp(1.35rem, 2.8vw, 1.85rem);
    border-top: 1px solid rgb(0 0 0 / 0.08);
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
}

#features-page .features-visual-podium__meta .features-showcase-kicker {
    margin: 0;
}

#features-page .features-visual-podium__meta .features-showcase-lead {
    margin: 0 0 clamp(1.25rem, 2.8vw, 1.75rem);
    max-width: 28rem;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.02em;
    color: rgb(0 0 0 / 0.72);
}

/* Block-level flex: keeps the button as a flex formatting context so spacing from the lead is predictable */
#features-page .features-visual-podium__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 0;
}

@media (width >= 48rem) {
    #features-page .features-visual-podium__meta {
        align-items: center;
        text-align: center;
        margin-inline: 0;
        max-width: none;
        padding-inline: 0;
        border-top-color: rgb(0 0 0 / 0.06);
    }

    #features-page .features-visual-podium__meta .features-showcase-lead {
        max-width: 32rem;
    }
}

/* Team: two-column split, no rings or glows behind screenshots */
#features-page .features-team-spotlight {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.5rem);
    align-items: center;
    margin-top: clamp(2rem, 5vw, 3rem);
}

@media (width >= 56rem) {
    #features-page .features-team-spotlight {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3rem);
    }
}

#features-page .features-team-spotlight__visual {
    display: flex;
    justify-content: center;
    margin: 0;
}

#features-page .features-team-spotlight__aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

#features-page .features-team-spotlight__aside > a {
    margin-top: 0.85rem;
}

@media (width >= 56rem) {
    #features-page .features-team-spotlight__aside {
        align-items: flex-start;
        text-align: left;
    }
}

#features-page .features-product-shot--wide {
    max-width: min(100%, 76rem);
}

#features-page .features-customer-cta {
    margin-top: clamp(2.25rem, 5vw, 3.25rem);
    text-align: center;
}

#features-page .features-signup-nudge {
    display: flex;
    max-width: 52rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    margin-inline: auto;
}

#features-page .features-signup-nudge--center {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#features-page .features-signup-nudge__copy {
    margin: 0;
    max-width: 28rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-signup-nudge--center .features-signup-nudge__copy {
    max-width: 36rem;
}

#features-page .features-card-pro {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1rem;
    border: 1px solid rgb(0 0 0 / 0.08);
    background: #fff;
    padding: 1.65rem 1.5rem;
    box-shadow:
        0 1px 0 rgb(0 0 0 / 0.04),
        0 20px 50px -32px rgb(0 0 0 / 0.2);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#features-page .features-card-pro:hover {
    transform: translateY(-0.2rem);
    box-shadow:
        0 1px 0 rgb(0 0 0 / 0.06),
        0 28px 60px -28px rgb(0 0 0 / 0.22);
}

#features-page .features-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-card-body {
    margin: 0.65rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(0 0 0 / 0.45);
}

#features-page .features-card-pro__row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

#features-page .features-icon-tile {
    display: flex;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--color-brand, #1b3ba5);
    color: #fff;
    line-height: 0;
}

#features-page .features-icon-tile .fa-solid,
#features-page .features-icon-tile .fa-brands {
    font-size: 1.125rem;
    line-height: 1;
    color: #fff;
}

#features-page .features-grid-3 {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (width >= 40rem) {
    #features-page .features-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 64rem) {
    #features-page .features-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#features-page .features-grid-2 {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (width >= 40rem) {
    #features-page .features-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#features-page .features-integration-strip {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    max-width: 40rem;
    margin-inline: auto;
    border-top: 1px solid rgb(0 0 0 / 0.08);
}

#features-page .features-integration-strip__row {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgb(0 0 0 / 0.08);
    background: transparent;
    box-shadow: none;
}

#features-page .features-integration-strip__copy {
    min-width: 0;
    padding-top: 0.15rem;
}

#features-page .features-integration-strip__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-integration-strip__desc {
    margin: 0.4rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgb(0 0 0 / 0.45);
}

#features-page #customer-experience {
    position: relative;
    padding-top: clamp(2rem, 4vw, 2.75rem);
    padding-bottom: clamp(2rem, 4vw, 2.75rem);
    border-radius: 0;
    background: linear-gradient(
        180deg,
        color-mix(in oklab, var(--color-brand, #1b3ba5) 5%, white) 0%,
        #fff 55%
    );
    box-shadow: none;
}

/* Customer: checkmark lines, no card boxes */
#features-page .features-customer-flow {
    display: grid;
    gap: 1.5rem 2.5rem;
    margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

@media (width >= 56rem) {
    #features-page .features-customer-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#features-page .features-flow-line {
    display: grid;
    grid-template-columns: 1.125rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: start;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

#features-page .features-flow-line__check {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    line-height: 1;
}

#features-page .features-flow-line__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-flow-line__desc {
    margin: 0.4rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(0 0 0 / 0.45);
}

/* Payments: one panel, quadrant cells (not four floating cards) */
#features-page .features-payments-panel {
    display: grid;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    border-radius: 0.85rem;
    border: 1px solid rgb(0 0 0 / 0.1);
    overflow: hidden;
    background: #fff;
}

@media (width >= 40rem) {
    #features-page .features-payments-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#features-page .features-payments-panel__cell {
    margin: 0;
    padding: 1.35rem 1.25rem;
    border-bottom: 1px solid rgb(0 0 0 / 0.08);
    background: #fff;
    box-shadow: none;
    border-radius: 0;
}

@media (width >= 40rem) {
    #features-page .features-payments-panel__cell:nth-child(odd) {
        border-right: 1px solid rgb(0 0 0 / 0.08);
    }

    #features-page .features-payments-panel__cell:nth-last-child(-n + 2) {
        border-bottom: none;
    }
}

@media (max-width: 39.98rem) {
    #features-page .features-payments-panel__cell:last-child {
        border-bottom: none;
    }
}

#features-page .features-payments-panel__row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

#features-page .features-payments-panel__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-payments-panel__desc {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(0 0 0 / 0.45);
}

/* Suppliers: magazine columns, no cards */
#features-page .features-editorial-columns {
    display: grid;
    gap: 1.75rem 2.75rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (width >= 48rem) {
    #features-page .features-editorial-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#features-page .features-editorial-block {
    margin: 0;
    padding: 0 0 0 1rem;
    border: none;
    border-left: 3px solid color-mix(in oklab, var(--color-brand, #1b3ba5) 55%, rgb(0 0 0 / 0.12));
    background: none;
    box-shadow: none;
}

#features-page .features-editorial-block__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-editorial-block__desc {
    margin: 0.45rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(0 0 0 / 0.45);
}

/* Branding shell: typographic tiles, no card chrome */
#features-page .features-brand-grid {
    display: grid;
    gap: 1.75rem 2rem;
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (width >= 40rem) {
    #features-page .features-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#features-page .features-brand-tile {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    text-align: left;
}

#features-page .features-brand-tile__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-brand-tile__title::after {
    content: "";
    display: block;
    width: 2rem;
    height: 2px;
    margin-top: 0.5rem;
    margin-bottom: 0.65rem;
    background: var(--color-brand, #1b3ba5);
    border-radius: 1px;
}

#features-page .features-brand-tile__desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(0 0 0 / 0.45);
}

/* Team: lighter grid (still icon-friendly) without heavy card lift */
#features-page #team-management .features-card-pro {
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.05);
    border-color: rgb(0 0 0 / 0.07);
    background: rgb(255 255 255 / 0.85);
}

#features-page #team-management .features-card-pro:hover {
    transform: translateY(-0.08rem);
    box-shadow: 0 12px 36px -28px rgb(0 0 0 / 0.18);
}

#features-page #customer-experience .js-features-section-header .section-eyebrow {
    margin-bottom: 0.45rem;
}

#features-page #customer-experience .js-features-section-header > p {
    margin-top: 0.75rem;
}

#features-page .features-band {
    padding-top: clamp(2.75rem, 6vw, 4rem);
    padding-bottom: clamp(2.75rem, 6vw, 4rem);
    background: rgb(0 0 0 / 0.04);
}

/* In-page anchors: clear fixed header when jumping between sections */
#features-page main > section[id] {
    scroll-margin-top: clamp(4rem, 12vw, 5.5rem);
}

/* Left-aligned section intros (editorial); centred on small screens */
#features-page main .js-features-section-header.features-section-header--start {
    margin-inline: auto;
    max-width: 40rem;
}

@media (width >= 48rem) {
    #features-page main .js-features-section-header.features-section-header--start {
        margin-inline: 0;
        align-items: flex-start;
        text-align: left;
    }
}

#features-page main .js-features-section-header.features-section-header--start .section-eyebrow::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 0.1875rem;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: var(--color-brand, #1b3ba5);
    margin-inline: auto;
}

@media (width >= 48rem) {
    #features-page main .js-features-section-header.features-section-header--start .section-eyebrow::after {
        margin-inline: 0;
    }
}

/* Right-aligned section intros (mirror of --start) */
#features-page main .js-features-section-header.features-section-header--end {
    margin-inline: auto;
    max-width: 42rem;
}

@media (width >= 48rem) {
    #features-page main .js-features-section-header.features-section-header--end {
        margin-left: auto;
        margin-right: 0;
        align-items: flex-end;
        text-align: right;
    }
}

#features-page main .js-features-section-header.features-section-header--end .section-eyebrow::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 0.1875rem;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: var(--color-brand, #1b3ba5);
    margin-inline: auto;
}

@media (width >= 48rem) {
    #features-page main .js-features-section-header.features-section-header--end .section-eyebrow::after {
        margin-left: auto;
        margin-right: 0;
    }
}

@media (width >= 48rem) {
    #features-page #planning .features-planning-caption {
        margin-inline: auto;
        text-align: center;
    }
}

/* Integrations: headline first on mobile; diagram left + copy + list on desktop */
#features-page .features-integrations-split {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.25rem);
}

@media (width >= 64rem) {
    #features-page .features-integrations-split {
        grid-template-columns: minmax(0, 1.06fr) minmax(0, 1.14fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "figure intro"
            "figure strip";
        column-gap: clamp(2rem, 4vw, 3.25rem);
        row-gap: 1.25rem;
        align-items: start;
    }

    #features-page .features-integrations-split__intro {
        grid-area: intro;
        padding-top: 0.15rem;
    }

    #features-page .features-integrations-split__figure {
        grid-area: figure;
        align-self: center;
    }

    #features-page .features-integrations-split__strip {
        grid-area: strip;
    }
}

#features-page .features-integrations-split .features-integrations-visual {
    margin-top: 0;
}

@media (max-width: 63.98rem) {
    #features-page .features-integrations-split .features-integrations-split__figure {
        margin-top: clamp(0.25rem, 1vw, 0.5rem);
    }
}

#features-page .features-integration-strip--in-split {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

#features-page .features-spotlight-invoice {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgb(27 59 165) 0%, rgb(30 64 175) 42%, rgb(15 23 42) 100%);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.5rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    box-shadow: 0 24px 60px -28px rgb(27 59 165 / 0.55);
}

#features-page .features-spotlight-invoice__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (width >= 56rem) {
    #features-page .features-spotlight-invoice__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        gap: 3rem;
    }
}

/* Invoicing: composite leads on large screens (previous layout you preferred) */
@media (width >= 56rem) {
    #features-page .features-spotlight-invoice--reverse .features-spotlight-invoice__grid > :first-child {
        order: 2;
    }

    #features-page .features-spotlight-invoice--reverse .features-spotlight-invoice__grid > :last-child {
        order: 1;
    }
}

#features-page .features-spotlight-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.72);
}

#features-page .features-spotlight-invoice .section-heading {
    color: #fff;
}

#features-page .features-spotlight-invoice .features-kicker {
    margin: 0.75rem 0 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgb(255 255 255 / 0.92);
}

#features-page .features-spotlight-lead {
    margin: 1.1rem 0 0;
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 0.78);
}

#features-page .features-spotlight-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 1.75rem;
}

#features-page .features-spotlight-invoice__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-top: clamp(1.75rem, 3.5vw, 2.35rem);
}

#features-page .features-spotlight-stat {
    border-radius: 0.65rem;
    border: 1px solid rgb(255 255 255 / 0.22);
    background: rgb(255 255 255 / 0.1);
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Feature screenshots: no frames, only max-width (assets include their own design) */
#features-page .features-screenshot {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

#features-page .features-screenshot--phone {
    max-width: 17.5rem;
}

#features-page .features-screenshot--wide {
    max-width: min(100%, 72rem);
}

#features-page .features-screenshot--invoice-desktop {
    max-width: min(100%, 36rem);
}

#features-page .features-screenshot--invoice-phone {
    max-width: min(100%, 12rem);
}

/* Desktop invoice + phone layered (phone sits over bottom-right of invoice) */
#features-page .features-spotlight-invoice-composite {
    position: relative;
    width: 100%;
    max-width: 38rem;
    margin-inline: auto;
}

#features-page .features-spotlight-invoice-composite .features-screenshot--invoice-desktop {
    display: block;
    max-width: min(100%, 34rem);
    margin-inline: auto;
}

#features-page .features-spotlight-invoice-composite .features-screenshot--invoice-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: min(34%, 10.5rem);
    transform: translate(2%, 8%);
}

@media (max-width: 55.98rem) {
    #features-page .features-spotlight-invoice-composite {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(1.35rem, 4vw, 2rem);
        max-width: 100%;
    }

    #features-page .features-spotlight-invoice-composite .features-screenshot--invoice-desktop {
        max-width: min(100%, 32rem);
    }

    #features-page .features-spotlight-invoice-composite .features-screenshot--invoice-overlay {
        position: static;
        transform: none;
        max-width: min(12rem, 78vw);
        margin: 0;
    }
}

#features-page .features-screenshot--integrations {
    max-width: min(100%, 20rem);
}

@media (width >= 64rem) {
    #features-page .features-integrations-split__figure .features-screenshot--integrations {
        max-width: min(100%, 20rem);
    }
}

/* Phone + copy: flex band, larger type, less empty grid space */
#features-page .features-showcase-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
}

#features-page .features-showcase-split__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: clamp(1.1rem, 2.4vw, 1.5rem);
    width: 100%;
    max-width: 36rem;
    position: relative;
    z-index: 2;
}

#features-page .features-showcase-split__copy .features-showcase-kicker,
#features-page .features-showcase-split__copy .features-showcase-lead {
    margin: 0;
}

#features-page .features-showcase-split__copy > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0;
}

#features-page .features-showcase-split__visual {
    flex-shrink: 0;
    width: 100%;
    max-width: min(17.5rem, 92vw);
    margin-inline: auto;
    position: relative;
    z-index: 1;
    overflow: visible;
}

@media (width >= 56rem) {
    #features-page .features-showcase-split {
        flex-direction: row;
        /*align-items: flex-end;*/
        /*justify-content: space-between;*/
        justify-content: center;
        gap: clamp(1.25rem, 3vw, 2.25rem);
        text-align: left;
    }

    #features-page .features-showcase-split__copy {
        flex: 1 1 0;
        min-width: 0;
        max-width: min(34rem, 52%);
        margin-inline: 0;
        padding-bottom: 0.35rem;
        align-items: flex-start;
    }

    #features-page .features-showcase-split__visual {
        flex: 0 0 auto;
        width: auto;
        max-width: 17.5rem;
        margin-inline: 0;
        overflow: hidden;
    }

    #features-page .features-showcase-split--reverse {
        flex-direction: row-reverse;
    }

    #features-page .features-showcase-split--reverse .features-showcase-split__copy {
        text-align: left;
    }
}

#features-page .features-showcase-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-brand, #1b3ba5);
}

#features-page .features-showcase-lead {
    margin: 0;
    font-size: clamp(1.25rem, 2.8vw, 1.875rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.035em;
    color: rgb(17 24 39);
}

#features-page .features-screenshot-figure {
    margin: 0;
}

/* Planning: section padding so space above the map is not lost to margin collapse with #ai section */
#features-page #planning {
    padding-top: clamp(2.75rem, 6vw, 4rem);
}

#features-page figure.features-screenshot-figure.features-planning-map--hero {
    margin: 0;
}

#features-page .features-planning-map,
#features-page .features-planning-map--hero {
    margin-top: 0;
}

#features-page .features-screenshot--planning-map {
    display: block;
    width: auto;
    max-width: min(100%, 48rem);
    height: auto;
    margin-inline: auto;
}

#features-page .features-planning-intro {
    margin-top: clamp(1.65rem, 4vw, 2.5rem);
}

#features-page .features-integrations-visual {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

#features-page .features-planning-points-wrap {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
    padding-inline: 0.25rem;
}

#features-page .features-planning-points-wrap--center {
    display: flex;
    justify-content: center;
}

#features-page .features-planning-points-wrap--center .features-planning-points {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

#features-page .features-planning-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 2.25rem;
}

@media (width >= 40rem) {
    #features-page .features-planning-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem 2.5rem;
    }
}

#features-page .features-planning-points li {
    display: grid;
    grid-template-columns: 1.125rem minmax(0, 1fr);
    column-gap: 0.85rem;
    row-gap: 0;
    align-items: start;
}

#features-page .features-planning-points__check {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    line-height: 1;
}

#features-page .features-planning-points__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

#features-page .features-planning-points__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

#features-page .features-planning-points__desc {
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(0 0 0 / 0.48);
}

#features-page .features-brand-shell {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Contact page ---------- */
#contact-page .contact-thanks-banner {
    display: none;
    margin: clamp(1.5rem, 4vw, 2rem) auto 0;
    max-width: 42rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(22 101 52 / 0.25);
    background: rgb(240 253 244);
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(22 101 52);
}

#contact-page .contact-thanks-banner:target {
    display: block;
}

#contact-page .contact-page-layout {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: start;
}

@media (width >= 48rem) {
    #contact-page .contact-page-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        column-gap: clamp(2rem, 5vw, 3.5rem);
    }
}

#contact-page .contact-details {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 0.75rem;
    border: 1px solid rgb(0 0 0 / 0.08);
    background: rgb(0 0 0 / 0.02);
}

#contact-page .contact-form-panel {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 0.75rem;
    border: 1px solid rgb(0 0 0 / 0.08);
    background: #fff;
}

#contact-page .contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-page .contact-form-field {
    margin: 0;
}

#contact-page .contact-required-asterisk {
    color: rgb(220 38 38);
    font-weight: 700;
}

#contact-page .contact-form-status:empty {
    display: none;
}

#contact-page .contact-form-status.contact-form-status--success {
    display: block;
    color: rgb(22 101 52);
}

#contact-page .contact-form-status.contact-form-status--error {
    display: block;
    color: rgb(185 28 28);
}

/* 404 */
body.page-404-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.page-404-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2rem) 1rem clamp(2rem, 6vw, 3rem);
    box-sizing: border-box;
}

.page-404-panel {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
    text-align: center;
}

.page-404-lead {
    margin-top: 1rem;
    margin-inline: auto;
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgb(0 0 0 / 0.45);
}

.page-404-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: clamp(1.75rem, 4vw, 2rem);
}

.page-404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.page-404-btn--primary {
    border: 1px solid transparent;
    background-color: var(--color-brand, #1b3ba5);
    color: #fff;
}

.page-404-btn--primary:hover {
    background-color: color-mix(in oklab, var(--color-brand, #1b3ba5) 82%, black);
    color: #fff;
}

.page-404-btn--secondary {
    border: 1px solid rgb(0 0 0 / 0.12);
    background-color: #fff;
    color: rgb(31 41 55);
}

.page-404-btn--secondary:hover {
    border-color: rgb(0 0 0 / 0.2);
    background-color: rgb(0 0 0 / 0.04);
    color: rgb(17 24 39);
}

/* Legal, terms, privacy, security, help (document layout) */
.legal-doc-page {
    padding: 0;
}

.legal-doc-hero {
    border-bottom: 1px solid rgb(0 0 0 / 0.06);
    background: linear-gradient(
        180deg,
        color-mix(in oklab, var(--color-brand, #1b3ba5) 7%, white) 0%,
        #fff 78%
    );
    padding-top: clamp(2.75rem, 6vw, 4rem);
    padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.legal-doc-hero__inner {
    margin-inline: auto;
    max-width: 38rem;
    text-align: center;
}

.legal-doc-hero__lead {
    margin-top: 1rem;
    margin-inline: auto;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgb(0 0 0 / 0.45);
}

.legal-doc-hero .legal-doc-meta {
    margin-top: 1rem;
}

.legal-doc-hero__company {
    margin-top: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(0 0 0 / 0.52);
}

.legal-doc-body {
    padding-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-bottom: clamp(4rem, 8vw, 5.5rem);
}

.legal-doc-page .legal-doc-inner {
    max-width: 44rem;
    margin-inline: auto;
}

.legal-doc-meta {
    font-size: 0.875rem;
    color: rgb(0 0 0 / 0.45);
}

.legal-doc-page h2 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgb(17 24 39);
}

.legal-doc-body .legal-doc-inner > h2:not(:first-of-type) {
    margin-top: clamp(2.25rem, 5vw, 3.25rem);
    padding-top: clamp(1.75rem, 4vw, 2.5rem);
    border-top: 1px solid rgb(0 0 0 / 0.07);
}

.help-toc + h2 {
    margin-top: 0.5rem;
}

.legal-doc-page h3 {
    margin-top: 1.15rem;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgb(31 41 55);
}

.legal-doc-page p {
    margin: 0;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgb(0 0 0 / 0.62);
}

.legal-doc-page ul,
.legal-doc-page ol {
    margin: 0.6rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgb(0 0 0 / 0.62);
}

.legal-doc-page li + li {
    margin-top: 0.45rem;
}

.legal-doc-page a {
    color: var(--color-brand, #1b3ba5);
    text-underline-offset: 2px;
}

.legal-doc-page a:hover {
    color: color-mix(in oklab, var(--color-brand, #1b3ba5) 78%, black);
}

.legal-doc-page strong {
    font-weight: 600;
    color: rgb(31 41 55);
}

.help-toc {
    margin-top: 0;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.help-toc a {
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    border: 1px solid rgb(0 0 0 / 0.1);
    background: rgb(0 0 0 / 0.02);
    padding: 0.4rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    color: rgb(31 41 55);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.help-toc a:hover {
    border-color: color-mix(in oklab, var(--color-brand, #1b3ba5) 40%, rgb(0 0 0 / 0.12));
    background: color-mix(in oklab, var(--color-brand, #1b3ba5) 6%, white);
    color: var(--color-brand, #1b3ba5);
}

.legal-doc-page h2[id],
.legal-doc-page h3[id] {
    scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-edge-fade {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .pricing-popular-badge {
        translate: -50% 0;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .feature-card-hoverable:hover {
        transform: none;
    }

    #features-page .features-card-pro:hover {
        transform: none;
    }

    .about-hero-phone-sticky {
        transition: none;
    }
}
