:root {
    /* Semantic aliases: landing primitives → public-site meaning. */
    --lf-canvas: var(--canvas);
    --lf-surface: var(--surface-low);
    --lf-surface-raised: var(--surface);
    --lf-foreground: var(--text-primary);
    --lf-muted: var(--text-secondary);
    --lf-accent: var(--brand-blue-tint);
    --lf-accent-strong: var(--brand-violet-tint);
    --lf-border: var(--border-subtle);
    --lf-focus: var(--brand-blue-tint);
    --lf-gradient: var(--brand-gradient);
    --lf-content-max: 1280px;
    --lf-reading-max: 860px;
    --lf-page-gutter: var(--space-5);
    --lf-page-gutter-wide: var(--space-16);
    --lf-section-gap: var(--space-14);
    --lf-section-gap-lg: var(--space-20);

    /* Component aliases. */
    --lf-hero-title-size: clamp(40px, 5.2vw, 76px);
    --lf-hero-title-size-mobile: 34px;
    --lf-hero-title-leading: 1.08;
    /* The legacy public-site type aliases now resolve through the --text-*
       scale in tokens.css instead of carrying their own values. Four shift by
       0.5-1px doing so: body 15.5->15, caption 12.5->12, card-title 18->19,
       card-excerpt 14->15. Call sites are untouched. */
    --lf-type-eyebrow: var(--text-xs);
    --lf-type-body: var(--text-base);
    --lf-type-body-lg: var(--text-md);
    --lf-type-title: clamp(22px, 2.4vw, 26px);
    --lf-type-card-title: var(--text-lg);
    --lf-type-card-excerpt: var(--text-base);
    --lf-type-caption: var(--text-xs);
    --lf-leading-copy: 1.65;
    --lf-leading-body: 1.7;
    --lf-card-bg: var(--lf-surface);
    --lf-card-border: var(--lf-border);
    --lf-card-radius: var(--radius-card);
    --lf-panel-radius: var(--radius-panel);
    --lf-glass-panel-bg: rgba(17, 20, 31, var(--a-55));
    --lf-glass-card-bg: var(--lf-surface-glass);
    --lf-button-foreground: #0b0d13;
    --lf-button-border: rgba(255, 255, 255, var(--a-85));
    --lf-button-bg: #ffffff;
    --lf-table-header-bg: rgba(17, 20, 31, var(--a-85));
    --lf-accent-divider: 2px solid var(--border-brand);
    --lf-border-line: 1px solid var(--lf-border);
    --lf-hero-glow: radial-gradient(circle, rgba(var(--brand-violet-rgb), var(--a-18)), transparent 68%);
    --lf-step-glow: linear-gradient(135deg, rgba(var(--brand-blue-rgb), var(--a-18)), rgba(var(--brand-pink-rgb), var(--a-14)));
    --lf-cta-scrim: linear-gradient(rgba(11, 13, 21, var(--a-85)), rgba(11, 13, 21, var(--a-85)));
    --lf-table-min-width: 640px;
    --lf-social-size: var(--lf-target-min);
    --lf-social-row-width: 252px;
    --lf-icon-size: 20px;
    --lf-focus-width: 2px;
    --lf-focus-offset: 4px;
}

/* Skip link. Off-screen until focused, so keyboard users are not forced
   through the header and language switcher on every page. WCAG 2.4.1. */
.skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: var(--z-modal);
    display: inline-flex;
    min-height: var(--lf-target-min);
    align-items: center;
    padding: 0 var(--space-4);
    color: var(--lf-button-foreground);
    border-radius: var(--radius-full);
    background: var(--lf-button-bg);
    font-size: var(--lf-type-caption);
    font-weight: var(--weight-bold);
    text-decoration: none;
    transform: translateY(calc(-100% - var(--space-4)));
    transition: transform var(--dur-base) var(--ease-standard);
}

.skip-link:focus-visible {
    outline: var(--lf-focus-width) solid var(--lf-focus);
    outline-offset: var(--lf-focus-offset);
    transform: translateY(0);
}

.site-feature-canvas {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--lf-canvas);
}

.language-switcher {
    position: relative;
    z-index: var(--z-sticky);
}

.language-switcher summary {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher__chevron {
    transition: transform var(--dur-base) ease;
}

.language-switcher[open] .language-switcher__chevron {
    transform: rotate(180deg);
}

.language-switcher__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: grid;
    min-width: 192px;
    padding: var(--space-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(11, 13, 21, var(--a-95));
    box-shadow: var(--shadow-3);
    backdrop-filter: blur(18px);
}

.language-switcher--header summary {
    min-height: var(--lf-target-min);
    padding: 0 var(--space-3);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: rgba(17, 20, 31, var(--a-42));
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    transition: color var(--dur-base) ease, border-color var(--dur-base) ease, background var(--dur-base) ease;
}

.language-switcher__short-label {
    display: none;
    text-transform: uppercase;
}

.language-switcher--header summary:hover,
.language-switcher--header[open] summary {
    color: var(--text-primary);
    border-color: var(--lf-border-strong);
    background: rgba(17, 20, 31, var(--a-72));
}

.language-switcher--header .language-switcher__menu {
    top: calc(100% + 10px);
    bottom: auto;
}

@media (max-width: 639px) {
    .site-header__language .language-switcher--header summary {
        gap: var(--space-1);
        min-width: var(--lf-target-min);
        padding: 0 var(--space-2);
    }

    .site-header__language .language-switcher__label {
        display: none;
    }

    .site-header__language .language-switcher__short-label {
        display: inline;
        font-size: var(--text-2xs);
    }

    .site-header__language .language-switcher__chevron {
        display: none;
    }

    /* Keep the footer chooser inside the viewport instead of clipping it
       against the footer's flex layout on narrow screens. */
    .language-switcher--footer .language-switcher__menu {
        position: fixed;
        right: 16px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        left: 16px;
        z-index: var(--z-header);
        width: auto;
        min-width: 0;
        max-height: min(360px, calc(100svh - 112px));
        overflow-y: auto;
    }
}

.language-switcher__menu a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}

.language-switcher__menu a:hover,
.language-switcher__menu a[aria-current="true"] {
    color: var(--text-primary);
    background: rgba(var(--brand-blue-rgb), var(--a-14));
}

.site-feature-canvas::before {
    position: absolute;
    inset: 0;
    z-index: var(--z-base);
    background-image:
        linear-gradient(rgba(var(--brand-blue-rgb), var(--a-04)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--brand-violet-rgb), var(--a-04)) 1px, transparent 1px);
        background-size: var(--grid-size) var(--grid-size);
    content: '';
    pointer-events: none;
}

.site-feature-canvas > main,
.site-feature-canvas > footer {
    position: relative;
    z-index: var(--z-raised);
}

.site-feature-canvas section[id] {
    scroll-margin-top: 124px;
}

/* Let the shared Feature canvas show through the remaining landing sections. */
.site-feature-canvas .review-reel,
.site-feature-canvas footer .bg-surface-container-lowest {
    background: transparent;
}

.site-feature-canvas .partner-showcase {
    border-bottom: 1px solid var(--border-subtle);
}

.site-feature-canvas .partner-showcase::before,
.site-feature-canvas .partner-showcase::after {
    z-index: var(--z-base);
}

.site-feature-canvas .partner-showcase__inner {
    position: relative;
    z-index: var(--z-raised);
}

.site-footer__grid {
    align-items: start;
}

.site-footer__socials {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: var(--space-2);
    width: max-content;
    max-width: none;
}

.site-footer__social-link {
    display: inline-flex;
    flex: 0 0 var(--lf-social-size);
    width: var(--lf-social-size);
    height: var(--lf-social-size);
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: color var(--dur-base) ease, border-color var(--dur-base) ease, background var(--dur-base) ease, transform var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.site-footer__social-link--pending {
    color: var(--text-secondary);
    opacity: 0.82;
    cursor: default;
}

.site-footer__social-icon {
    width: var(--lf-icon-size);
    height: var(--lf-icon-size);
    display: block;
    object-fit: contain;
}

.site-footer__pending-link {
    display: inline-block;
    opacity: 0.68;
    cursor: default;
}

.site-footer a:focus-visible,
.site-footer__social-link:focus-visible {
    outline: var(--lf-focus-width) solid var(--lf-focus);
    outline-offset: var(--lf-focus-offset);
}

@media (max-width: 1023px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8) var(--space-8);
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__brand > p {
        width: 100%;
        max-width: none;
    }

    .site-footer__group {
        min-width: 0;
    }

    .site-footer__group ul {
        overflow-wrap: anywhere;
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: minmax(var(--lf-social-row-width), 1.2fr) repeat(4, minmax(0, 1fr));
        column-gap: var(--space-8);
    }
}

@media (max-width: 420px) {
    .site-footer__grid {
        column-gap: var(--space-6);
    }

    .site-footer__group h3 {
        letter-spacing: var(--tracking-wider);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .site-footer__social-link,
    .site-footer .group-hover\:opacity-100 {
        transition: none;
    }
}

@media (max-width: 639px) {
    .site-feature-canvas::before {
        background-size: var(--grid-size-mobile) var(--grid-size-mobile);
    }
}

@media (max-width: 1023px) {
    .site-feature-canvas section[id] {
        scroll-margin-top: 88px;
    }
}
