/*
 * Public landing experience.
 *
 * This file is intentionally isolated from app.css: the landing has an
 * editorial sales surface while authenticated pages keep the operational
 * design system. Content, app names, icons, screenshots, and links remain
 * server-driven. Only the public home view loads this stylesheet, so the
 * top bar rules below restyle the shared public navigation on this page only.
 *
 * The look follows the Zendrhax marketing material: Inter set heavy and
 * tight, navy surfaces, and one accent family — teal into blue — for
 * gradients, checks, numbers, and primary actions. Inter is self-hosted
 * (public/assets/fonts/inter, SIL Open Font License) so every visitor sees
 * the same type without a third-party request.
 */

@font-face {
    font-family: "Zendrhax Inter";
    src: url("/assets/fonts/inter/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ───────────── Page chrome (home only) ───────────── */

.legal-layout {
    background: #ffffff;
}

html[data-theme="dark"] .legal-layout {
    background: #040c1a;
}

.legal-topbar {
    height: 72px;
    padding: 0 clamp(16px, 3.4vw, 48px);
    border-bottom: 1px solid rgba(148, 196, 230, 0.12);
    /* Opaque enough to read as the hero's own navy over light sections too. */
    background: rgba(3, 9, 20, 0.97);
    backdrop-filter: blur(14px) saturate(140%);
    color: #e6f0fa;
    font-family: "Zendrhax Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.legal-topbar .legal-brand-link,
.legal-topbar .legal-back-link {
    color: #ffffff;
}

.legal-topbar .legal-nav-links {
    gap: 2px;
    padding: 4px;
    border-color: rgba(148, 196, 230, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.legal-topbar .legal-nav-link {
    padding: 0.5rem 0.85rem;
    color: rgba(226, 236, 248, 0.74);
    font-size: 0.875rem;
    font-weight: 600;
}

.legal-topbar .legal-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.legal-topbar .legal-nav-link.is-active {
    color: #ffffff;
    background: rgba(94, 234, 212, 0.14);
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.35);
}

.legal-topbar .legal-nav-link-accent {
    color: #ffffff;
}

.legal-topbar .legal-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid rgba(148, 196, 230, 0.16);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.legal-topbar .legal-lang-switch span {
    display: none;
}

.legal-topbar .legal-lang-switch a {
    padding: 5px 10px;
    border-radius: 999px;
    color: rgba(226, 236, 248, 0.62);
    transition: color 0.2s ease, background 0.2s ease;
}

.legal-topbar .legal-lang-switch a:hover {
    color: #ffffff;
}

.legal-topbar .legal-lang-switch a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.legal-topbar .theme-toggle-btn,
.legal-topbar .legal-nav-toggle {
    border-color: rgba(148, 196, 230, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #e6f0fa;
}

.legal-topbar .theme-toggle-btn {
    font-size: 1.05rem;
}

.legal-topbar .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.legal-topbar .legal-nav-toggle span {
    background: #e6f0fa;
}

.legal-topbar :is(a, button):focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

.zxl-home-main {
    width: 100%;
    padding: 0;
}

.zxl-home-main > .public-content-layer {
    width: 100%;
    min-width: 0;
}

/* The landing paints its own surfaces; the decorative page blobs only cost paint time here. */
.zxl-home-main > .blob {
    display: none;
}

/* ───────────── Tokens ───────────── */

.zx-home {
    --zxl-gutter: clamp(16px, 4vw, 56px);
    --zxl-teal: #14b8a6;
    --zxl-teal-bright: #5eead4;
    --zxl-grad-text: linear-gradient(90deg, #5eead4 0%, #38bdf8 55%, #60a5fa 100%);
    --zxl-grad-text-strong: linear-gradient(90deg, #0d9488 0%, #0284c7 55%, #2563eb 100%);
    --zxl-grad-accent: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 55%, #2563eb 100%);
    --zxl-grad-button: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --zxl-bg: #ffffff;
    --zxl-bg-alt: #f4f7fb;
    --zxl-surface: #ffffff;
    --zxl-surface-soft: #f6f9fc;
    --zxl-line: rgba(11, 27, 46, 0.09);
    --zxl-line-strong: rgba(11, 27, 46, 0.18);
    --zxl-text: #0b1b2e;
    --zxl-muted: #56677c;
    --zxl-kicker: #0f766e;
    --zxl-selected: rgba(20, 184, 166, 0.08);
    --zxl-card-shadow: 0 24px 50px -32px rgba(3, 19, 38, 0.35);
    /* app.css stacks .zx-home as a spaced flex column; the landing's sections butt together. */
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: clip;
    background: var(--zxl-bg);
    color: var(--zxl-text);
    font-family: "Zendrhax Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-theme="dark"] .zx-home {
    --zxl-bg: #040c1a;
    --zxl-bg-alt: #061325;
    --zxl-surface: #0a1c31;
    --zxl-surface-soft: rgba(255, 255, 255, 0.035);
    --zxl-line: rgba(148, 196, 230, 0.13);
    --zxl-line-strong: rgba(148, 196, 230, 0.24);
    --zxl-text: #eef4fb;
    --zxl-muted: #9db0c5;
    --zxl-kicker: #5eead4;
    --zxl-selected: rgba(20, 184, 166, 0.12);
    --zxl-card-shadow: none;
    --zxl-grad-text-strong: var(--zxl-grad-text);
}

/* :where keeps this reset at class weight so component rules below win. */
.zx-home :where(h1, h2, h3, p, ul, ol, figure, blockquote) {
    margin: 0;
}

.zx-home :is(h1, h2, h3, button) {
    font-family: inherit;
}

.zx-home a {
    text-decoration: none;
}

.zx-home :is(a, button, [tabindex]):focus-visible {
    outline: 3px solid var(--zxl-teal-bright);
    outline-offset: 3px;
}

/* ───────────── Shared pieces ───────────── */

.zxl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--zxl-kicker);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.zxl-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.zxl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.zxl-button-primary {
    color: #ffffff;
    background: var(--zxl-grad-button);
    box-shadow: 0 18px 40px -14px rgba(37, 99, 235, 0.8);
}

.zxl-button-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 22px 44px -14px rgba(37, 99, 235, 0.9);
}

.zxl-button-outline {
    color: #e6fffb;
    border-color: rgba(94, 234, 212, 0.45);
    background: rgba(94, 234, 212, 0.06);
}

.zxl-button-outline:hover {
    color: #ffffff;
    border-color: rgba(94, 234, 212, 0.75);
    background: rgba(94, 234, 212, 0.12);
}

.zxl-button-quiet {
    color: var(--zxl-text);
    border-color: var(--zxl-line-strong);
    background: transparent;
}

.zxl-button-quiet:hover {
    color: var(--zxl-text);
    border-color: var(--zxl-teal);
}

.zxl-app-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 13px;
    color: #ffffff;
    background: var(--zxl-grad-accent);
    font-weight: 800;
}

.zxl-app-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zxl-app-icon-sm {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.85rem;
}

.zxl-app-icon-lg {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    font-size: 2rem;
    box-shadow: 0 20px 40px -18px rgba(3, 19, 38, 0.6);
}

/* ───────────── Hero ───────────── */

.zxl-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 6vw, 84px) 0 clamp(48px, 5vw, 68px);
    color: #f8fbff;
    text-align: center;
    background: linear-gradient(180deg, #030914 0%, #061730 62%, #081f38 100%);
}

/* Ambient light: the hero's colour glows drift slowly behind the grid. */
.zxl-hero::after {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -20%;
    background:
        radial-gradient(34% 30% at 50% 78%, rgba(37, 99, 235, 0.34), transparent 70%),
        radial-gradient(24% 26% at 80% 18%, rgba(20, 184, 166, 0.26), transparent 70%),
        radial-gradient(20% 22% at 20% 26%, rgba(56, 189, 248, 0.14), transparent 70%);
    animation: zxl-hero-drift 24s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes zxl-hero-drift {
    0% {
        transform: translate3d(-4%, 2%, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(4%, -3%, 0) rotate(7deg) scale(1.08);
    }
    100% {
        transform: translate3d(-2%, -4%, 0) rotate(-5deg) scale(1.03);
    }
}

.zxl-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 196, 230, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 196, 230, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent);
    mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent);
}

.zxl-hero-copy {
    width: min(1120px, calc(100% - 2 * var(--zxl-gutter)));
    margin: 0 auto;
}

.zxl-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    padding: 7px 16px 7px 7px;
    border: 1px solid rgba(148, 196, 230, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #cfe3f5;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.zxl-pill strong {
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.zxl-title {
    display: grid;
    justify-items: center;
    gap: 0.04em;
    margin-top: 26px;
    font-size: clamp(2.5rem, 5.6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-wrap: balance;
}

.zxl-title em,
.zx-final-cta h2 em {
    padding-bottom: 0.06em;
    color: transparent;
    background: var(--zxl-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    font-style: normal;
}

.zxl-lead {
    max-width: 620px;
    margin: 26px auto 0;
    color: #b8c7d8;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.6;
}

.zxl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

.zxl-hero-note {
    margin-top: 16px;
    color: #8ea3b9;
    font-size: 0.875rem;
}

/* Gallery: a native scroller that snaps each app window to the centre. */

.zxl-gallery {
    --zxl-card-w: clamp(260px, 36vw, 520px);
    margin-top: clamp(44px, 5vw, 64px);
}

.zxl-gallery-viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.zxl-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.zxl-gallery-viewport:focus-visible {
    outline: none;
}

.zxl-gallery-track {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    width: max-content;
    padding: 8px calc(50% - var(--zxl-card-w) / 2) 54px;
    list-style: none;
}

.zxl-gallery-card {
    flex: none;
    width: var(--zxl-card-w);
    scroll-snap-align: center;
    text-align: left;
}

.zxl-gallery-card:nth-child(even) {
    margin-top: 42px;
}

.zxl-gallery-link {
    display: block;
    color: #e6f0fa;
}

.zxl-gallery-link:hover {
    color: #ffffff;
}

.zxl-window {
    display: block;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(148, 196, 230, 0.26), rgba(148, 196, 230, 0.07));
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: zxl-window-float 7s ease-in-out infinite;
}

/* Neighbouring windows float out of step so the row never moves as one block. */
.zxl-gallery-card:nth-child(3n + 2) .zxl-window {
    animation-delay: -2.4s;
}

.zxl-gallery-card:nth-child(3n) .zxl-window {
    animation-delay: -4.8s;
}

@keyframes zxl-window-float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -10px;
    }
}

.zxl-hero.is-zxl-offscreen::after,
.zxl-hero.is-zxl-offscreen .zxl-window {
    animation-play-state: paused;
}

.zxl-window-bar {
    display: flex;
    gap: 6px;
    padding: 4px 6px 9px;
}

.zxl-window-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(226, 236, 248, 0.28);
}

.zxl-window-screen {
    display: block;
    aspect-ratio: 1280 / 762;
    overflow: hidden;
    border-radius: 11px;
    background: #0b1b2e;
}

.zxl-window-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.zxl-gallery-link:hover .zxl-window,
.zxl-gallery-link:focus-visible .zxl-window {
    transform: translateY(-4px);
    box-shadow: 0 48px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(94, 234, 212, 0.35);
}

.zx-home .zxl-gallery-link:focus-visible {
    outline: none;
}

.zxl-gallery-viewport:focus-visible .zxl-gallery-card.is-active .zxl-window,
.zxl-gallery-link:focus-visible .zxl-window {
    outline: 3px solid var(--zxl-teal-bright);
    outline-offset: 3px;
}

.zxl-gallery-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 6px 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.zxl-gallery-arrow {
    margin-left: auto;
    color: var(--zxl-teal-bright);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.zxl-gallery-link:hover .zxl-gallery-arrow,
.zxl-gallery-link:focus-visible .zxl-gallery-arrow {
    opacity: 1;
    transform: none;
}

.zxl-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.zxl-gallery-controls[hidden] {
    display: none;
}

.zxl-gallery-step {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(148, 196, 230, 0.22);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.zxl-gallery-step:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.zxl-gallery-step:disabled {
    opacity: 0.35;
    cursor: default;
}

.zxl-gallery-step svg {
    width: 18px;
    height: 18px;
}

.zxl-gallery-toggle {
    margin-left: 6px;
}

.zxl-gallery-toggle .zxl-icon-play,
.zxl-gallery.is-zxl-paused .zxl-gallery-toggle .zxl-icon-pause {
    display: none;
}

.zxl-gallery.is-zxl-paused .zxl-gallery-toggle .zxl-icon-play {
    display: block;
}

.zxl-gallery-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zxl-gallery-dot {
    position: relative;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(226, 236, 248, 0.25);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.zxl-gallery-dot::after {
    content: "";
    position: absolute;
    inset: -12px -3px;
}

.zxl-gallery-dot.is-active {
    width: 22px;
    background: var(--zxl-teal-bright);
}

/* ───────────── Trust strip ───────────── */

.zxl-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 42px;
    padding: 26px var(--zxl-gutter);
    border-bottom: 1px solid var(--zxl-line);
    background: var(--zxl-bg-alt);
    font-size: 0.95rem;
    font-weight: 600;
    list-style: none;
}

.zxl-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zxl-trust li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zxl-teal);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.8);
}

/* ───────────── Sections ───────────── */

.zxl-section {
    padding: clamp(72px, 9vw, 120px) 0;
    background: var(--zxl-bg);
}

.zxl-section-alt {
    background: var(--zxl-bg-alt);
}

.zxl-section-inner {
    width: min(1240px, calc(100% - 2 * var(--zxl-gutter)));
    margin: 0 auto;
}

.zxl-heading {
    max-width: 820px;
}

.zxl-heading h2 {
    margin-top: 16px;
    color: var(--zxl-text);
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.zxl-heading p {
    max-width: 680px;
    margin-top: 14px;
    color: var(--zxl-muted);
    font-size: clamp(1.02rem, 1.4vw, 1.19rem);
    line-height: 1.6;
}

/* Path cards */

.zxl-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 52px;
}

.zxl-path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 32px;
    border: 1px solid var(--zxl-line);
    border-radius: 24px;
    color: var(--zxl-text);
    background: var(--zxl-surface);
    box-shadow: var(--zxl-card-shadow);
    transform: perspective(900px) rotateX(var(--zxl-tilt-x, 0deg)) rotateY(var(--zxl-tilt-y, 0deg));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.zxl-path-card:hover {
    color: var(--zxl-text);
    border-color: rgba(20, 184, 166, 0.45);
}

.zxl-path-number {
    color: var(--zxl-muted);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.zxl-path-go {
    position: absolute;
    top: 26px;
    right: 26px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--zxl-line-strong);
    border-radius: 50%;
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.zxl-path-card:hover .zxl-path-go {
    transform: translateX(4px);
}

.zxl-path-card strong {
    margin-top: auto;
    padding-top: 36px;
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.zxl-path-card small {
    margin-top: 10px;
    color: var(--zxl-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.zxl-path-card-featured,
.zxl-path-card-featured:hover {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(150deg, #0b3a52, #061a31);
}

.zxl-path-card-featured small {
    color: #b8c7d8;
}

.zxl-path-card-featured .zxl-path-number {
    color: var(--zxl-teal-bright);
}

.zxl-path-card-featured .zxl-path-go {
    border: 0;
    color: #0b1b2e;
    background: #ffffff;
}

/* Featured apps: a selector list beside a detail panel */

.zxl-app-browser {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    align-items: stretch;
    gap: 26px;
    margin-top: 52px;
}

.zxl-app-list,
.zxl-app-tabs {
    display: grid;
    align-content: start;
    gap: 10px;
}

.zxl-app-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--zxl-line);
    border-radius: 18px;
    color: var(--zxl-text);
    background: var(--zxl-surface);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.zxl-app-row:hover {
    color: var(--zxl-text);
    border-color: rgba(20, 184, 166, 0.35);
}

.zxl-app-row.is-active {
    border-color: rgba(20, 184, 166, 0.55);
    background: var(--zxl-selected);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.zxl-app-row-copy {
    min-width: 0;
}

.zxl-app-row-copy strong {
    display: block;
    font-size: 1.03rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.zxl-app-row-copy small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--zxl-muted);
    font-size: 0.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zxl-app-row-badge {
    color: var(--zxl-kicker);
    font-size: 0.8rem;
    font-weight: 800;
}

.zxl-app-row-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 1px dashed var(--zxl-line-strong);
    border-radius: 18px;
    color: var(--zxl-text);
    font-weight: 700;
    transition: border-color 0.2s ease;
}

.zxl-app-row-all:hover {
    color: var(--zxl-text);
    border-color: var(--zxl-teal);
}

.zxl-app-row-all small {
    color: var(--zxl-muted);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.zxl-app-panels {
    display: grid;
}

.zxl-app-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(28px, 3.2vw, 44px);
    border: 1px solid var(--zxl-line);
    border-radius: 28px;
    background:
        radial-gradient(420px circle at 100% 0%, rgba(20, 184, 166, 0.16), transparent 65%),
        var(--zxl-surface);
    box-shadow: var(--zxl-card-shadow);
}

.zxl-app-panel[hidden] {
    display: none;
}

.zx-home .zxl-app-panel:focus-visible {
    outline-offset: -3px;
}

.zxl-app-panel-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zxl-app-panel h3 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.zxl-chip {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 11px;
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 999px;
    color: var(--zxl-kicker);
    background: rgba(20, 184, 166, 0.12);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.zxl-app-panel-text {
    max-width: 620px;
    margin-top: 24px;
    color: var(--zxl-muted);
    font-size: clamp(1.02rem, 1.4vw, 1.19rem);
    line-height: 1.6;
}

.zxl-plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    max-width: 660px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.zxl-plan {
    padding: 18px 20px;
    border: 1px solid var(--zxl-line);
    border-radius: 18px;
    background: var(--zxl-surface-soft);
}

.zxl-plan.is-recommended {
    border-color: rgba(37, 99, 235, 0.45);
}

.zxl-plan small {
    display: block;
    color: var(--zxl-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zxl-plan strong {
    display: block;
    margin-top: 6px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.zxl-plan strong span {
    color: var(--zxl-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
}

.zxl-app-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 34px;
}

.zxl-empty {
    margin-top: 40px;
    padding: 32px;
    border: 1px dashed var(--zxl-line-strong);
    border-radius: 24px;
    color: var(--zxl-muted);
    text-align: center;
}

/* How it works: timeline beside the overview video */

.zxl-how-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(40px, 5vw, 70px);
}

.zxl-timeline {
    position: relative;
    display: grid;
    gap: 34px;
    margin-top: 44px;
    padding: 0;
    list-style: none;
}

.zxl-timeline::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 27px;
    width: 2px;
    background: linear-gradient(#14b8a6, #2563eb);
    opacity: 0.5;
}

.zxl-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
}

.zxl-step-number {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--zxl-grad-accent);
    box-shadow: 0 0 0 8px var(--zxl-bg);
    font-size: 1.1rem;
    font-weight: 800;
}

.zxl-step h3 {
    margin-top: 4px;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.zxl-step p {
    margin-top: 8px;
    color: var(--zxl-muted);
    line-height: 1.6;
}

.zxl-video-frame {
    padding: 10px;
    border-radius: 26px;
    background: linear-gradient(180deg, #123a58, #061a31);
    box-shadow: 0 40px 90px -30px rgba(3, 19, 38, 0.6);
}

.zxl-video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #061a31;
}

.zxl-video figcaption {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding: 0 6px;
}

.zxl-video figcaption strong {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.zxl-video figcaption small {
    color: var(--zxl-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Why: bento cards */

.zxl-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 52px;
}

.zxl-bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    overflow: hidden;
    padding: clamp(28px, 3vw, 38px);
    border: 1px solid var(--zxl-line);
    border-radius: 28px;
    background: var(--zxl-surface);
    box-shadow: var(--zxl-card-shadow);
}

.zxl-bento-card .zxl-checklist {
    margin-top: auto;
}

.zxl-bento-card-wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 40px;
}

.zxl-bento-number {
    display: block;
    width: max-content;
    color: transparent;
    background: var(--zxl-grad-text-strong);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.zxl-bento-card h3 {
    margin-top: 24px;
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.zxl-bento-card p {
    margin-top: 12px;
    color: var(--zxl-muted);
    line-height: 1.6;
}

.zxl-checklist {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.zxl-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.zxl-checklist svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    padding: 4px;
    border-radius: 7px;
    color: #ffffff;
    background: var(--zxl-teal);
}

/* Testimonials */

.zxl-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 52px;
}

.zxl-testimonial {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    border: 1px solid var(--zxl-line);
    border-radius: 24px;
    background: var(--zxl-surface);
    box-shadow: var(--zxl-card-shadow);
}

.zxl-testimonial-stars {
    color: #f59e0b;
    letter-spacing: 0.12em;
}

.zxl-testimonial blockquote {
    font-size: 1.05rem;
    line-height: 1.6;
}

.zxl-testimonial figcaption {
    margin-top: auto;
    color: var(--zxl-muted);
    font-weight: 700;
}

/* ───────────── Final call to action ───────────── */

.zx-final-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: var(--zxl-gutter);
    padding: clamp(72px, 9vw, 110px) clamp(20px, 4vw, 48px);
    border-radius: clamp(24px, 3vw, 36px);
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(50% 70% at 50% 0%, rgba(20, 184, 166, 0.28), transparent 70%),
        linear-gradient(160deg, #040c1a, #0a2a45);
}

.zx-final-cta .zxl-kicker {
    color: var(--zxl-teal-bright);
}

.zx-final-cta h2 {
    display: grid;
    justify-items: center;
    margin-top: 20px;
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    text-wrap: balance;
}

.zx-final-cta p {
    max-width: 560px;
    margin: 22px auto 0;
    color: #b8c7d8;
    font-size: clamp(1.02rem, 1.4vw, 1.19rem);
    line-height: 1.6;
}

.zx-final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

html[data-theme="dark"] .zx-home .zx-final-cta {
    box-shadow: inset 0 0 0 1px rgba(148, 196, 230, 0.14);
}

/* ───────────── Progressive entrance ───────────── */

html.zxl-reveal-ready .zx-home .zxl-reveal-item {
    opacity: 0;
    translate: 0 24px;
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--zxl-reveal-delay, 0ms),
        translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--zxl-reveal-delay, 0ms);
}

html.zxl-reveal-ready .zx-home .zxl-reveal-item.is-zxl-revealed {
    opacity: 1;
    translate: 0 0;
}

/* ───────────── Pointer light (fine pointers only) ───────────── */

@media (hover: hover) and (pointer: fine) {
    .zxl-path-card::after,
    .zxl-app-panel::after,
    .zxl-bento-card::after,
    .zx-final-cta::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(280px circle at var(--zxl-pointer-x, 50%) var(--zxl-pointer-y, 50%), rgba(94, 234, 212, 0.13), transparent 70%);
        transition: opacity 0.25s ease;
    }

    .zx-final-cta::after {
        z-index: -1;
        background: radial-gradient(420px circle at var(--zxl-pointer-x, 50%) var(--zxl-pointer-y, 50%), rgba(94, 234, 212, 0.16), transparent 70%);
    }

    .is-zxl-pointer-lit::after {
        opacity: 1;
    }
}

/* ───────────── Responsive ───────────── */

@media (max-width: 1120px) {
    .zxl-app-browser {
        grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    }

    .zxl-how-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .zxl-video {
        max-width: 760px;
    }
}

@media (max-width: 760px) {
    .legal-topbar {
        height: auto;
        min-height: 64px;
    }

    .zxl-hero {
        padding-top: 48px;
    }

    .zxl-pill {
        padding: 7px 14px;
        border-radius: 22px;
        font-size: 0.8125rem;
    }

    .zxl-title {
        margin-top: 22px;
    }

    .zxl-lead {
        margin-top: 20px;
    }

    .zxl-hero-actions {
        margin-top: 28px;
    }

    .zxl-hero-actions .zxl-button {
        flex: 1 1 200px;
    }

    .zxl-gallery {
        --zxl-card-w: min(82vw, 420px);
    }

    .zxl-gallery-viewport {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }

    .zxl-gallery-track {
        gap: 16px;
        padding-bottom: 20px;
    }

    .zxl-gallery-card:nth-child(even) {
        margin-top: 0;
    }

    .zxl-window {
        animation-duration: 8s;
    }

    .zxl-trust {
        justify-content: flex-start;
        gap: 12px 22px;
        padding-block: 20px;
        font-size: 0.875rem;
    }

    .zxl-path-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 36px;
    }

    .zxl-path-card {
        min-height: 0;
        padding: 24px;
    }

    .zxl-path-go {
        top: 20px;
        right: 20px;
    }

    .zxl-path-card strong {
        padding-top: 24px;
    }

    /* Phones: the app list becomes a strip of chips above the detail panel. */
    .zxl-app-browser {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 36px;
    }

    .zxl-app-list {
        display: contents;
    }

    .zxl-app-tabs {
        display: flex;
        order: 1;
        gap: 8px;
        margin: 0 calc(-1 * var(--zxl-gutter));
        padding: 4px var(--zxl-gutter) 8px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .zxl-app-tabs::-webkit-scrollbar {
        display: none;
    }

    .zxl-app-row {
        flex: none;
        grid-template-columns: 32px auto;
        gap: 10px;
        padding: 7px 16px 7px 7px;
        border-radius: 999px;
        scroll-snap-align: start;
    }

    .zxl-app-row .zxl-app-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 0.85rem;
    }

    .zxl-app-row-copy small,
    .zxl-app-row-badge {
        display: none;
    }

    .zxl-app-row-copy strong {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .zxl-app-panels {
        order: 2;
    }

    .zxl-app-row-all {
        order: 3;
    }

    .zxl-app-panel {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .zxl-app-panel-head {
        gap: 16px;
    }

    .zxl-app-icon-lg {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .zxl-plan-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .zxl-plan {
        padding: 14px 16px;
    }

    .zxl-plan strong {
        font-size: 1.2rem;
    }

    .zxl-plan strong span {
        display: block;
        margin-top: 2px;
    }

    .zxl-app-panel-actions .zxl-button {
        flex: 1 1 100%;
    }

    .zxl-timeline {
        gap: 26px;
        margin-top: 32px;
    }

    .zxl-timeline::before {
        left: 21px;
    }

    .zxl-step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 16px;
    }

    .zxl-step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .zxl-step h3 {
        margin-top: 8px;
        font-size: 1.2rem;
    }

    .zxl-video-frame {
        padding: 6px;
        border-radius: 18px;
    }

    .zxl-video-frame video {
        border-radius: 13px;
    }

    .zxl-bento {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 36px;
    }

    .zxl-bento-card,
    .zxl-bento-card-wide {
        display: flex;
        grid-column: auto;
        gap: 22px;
        border-radius: 24px;
    }

    .zxl-bento-number {
        font-size: 3rem;
    }

    .zx-final-cta .zxl-button {
        flex: 1 1 200px;
    }
}

/* ───────────── Reduced motion ───────────── */

@media (prefers-reduced-motion: reduce) {
    .zx-home *,
    .zx-home *::before,
    .zx-home *::after {
        transition: none !important;
        animation: none !important;
    }

    html.zxl-reveal-ready .zx-home .zxl-reveal-item {
        opacity: 1;
        translate: none;
    }

    .zxl-path-card {
        transform: none;
    }

    .zxl-gallery-viewport {
        scroll-behavior: auto;
    }
}
