/* =============================================================================
   Subroutine — site-wide custom styles
   ============================================================================= */

/* ── "Account" nav link → styled as a subtle pill button ─────────────────── */
nav a[href$="/account/"] {
    border: 1.5px solid var(--primary-color);
    border-radius: 999px;
    padding: 0.2em 0.85em !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

nav a[href$="/account/"]:hover {
    background: var(--primary-color);
    color: #111 !important;
    text-decoration: none;
}


/* =============================================================================
   Landing page — scoped under #landing-page
   ============================================================================= */

#landing-page {
    width: 100%;
    /* Pull back tabi's default article container constraints */
    max-width: none;
    padding: 0;
}

/* ── Shared container ────────────────────────────────────────────────────── */
.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Shared button ───────────────────────────────────────────────────────── */
.lp-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    font-size: 1rem;
    cursor: pointer;
}

.lp-btn-primary {
    background: var(--primary-color);
    color: #111 !important;
    border: none;
}

.lp-btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.lp-btn-secondary {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
}

.lp-btn-secondary:hover {
    background: var(--primary-color);
    color: #111 !important;
}

.lp-btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* ── Shared eyebrow label ────────────────────────────────────────────────── */
.lp-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

/* ── Screenshot frame ────────────────────────────────────────────────────── */
.lp-screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--bg-3);
    display: block;
}


/* ── HERO ────────────────────────────────────────────────────────────────── */
.lp-hero {
    padding: 5.5rem 0 4.5rem;
}

.lp-hero .lp-container {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.lp-hero-text {
    flex: 1 1 0;
    min-width: 0;
}

.lp-hero-img {
    flex: 1 1 0;
    min-width: 0;
}

.lp-wordmark {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color-high-contrast);
    line-height: 1;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.lp-tagline {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 1rem;
}

.lp-sub {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.75;
    margin: 0 0 2rem;
    max-width: 480px;
}

.lp-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ── FEATURE SECTIONS ────────────────────────────────────────────────────── */
.lp-feature {
    padding: 5rem 0;
    border-top: 1px solid var(--bg-3);
}

.lp-feature-inner {
    display: flex;
    align-items: center;
    gap: 4.5rem;
}

/* Flip order for alternating layout */
.lp-feature-flip .lp-feature-inner {
    flex-direction: row-reverse;
}

.lp-feature-img,
.lp-feature-text {
    flex: 1 1 0;
    min-width: 0;
}

.lp-feature-text h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-color-high-contrast);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.lp-feature-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.lp-feature-text code {
    background: var(--bg-1);
    border: 1px solid var(--bg-3);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.88em;
    white-space: nowrap;
}


/* ── API FEATURE (centered, code block) ──────────────────────────────────── */
.lp-feature-api {
    background: var(--bg-0);
    border-top: 1px solid var(--bg-3);
    border-bottom: 1px solid var(--bg-3);
}

.lp-feature-api .lp-container {
    max-width: 860px;
    text-align: center;
}

.lp-feature-api h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-color-high-contrast);
    margin: 0 0 0.75rem;
}

.lp-feature-api p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin: 0 0 1.5rem;
}

.lp-code-block {
    text-align: left;
    margin-top: 2rem;
}

.lp-code-block pre {
    background: var(--bg-2);
    border: 1px solid var(--bg-3);
    border-radius: 10px;
    padding: 1.75rem 2rem;
    overflow-x: auto;
    margin: 0;
}

.lp-code-block code {
    font-family: 'Fira Code', 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.93rem;
    color: var(--text-color-high-contrast);
    line-height: 1.8;
    background: none;
    border: none;
    padding: 0;
}


/* ── PLATFORMS ───────────────────────────────────────────────────────────── */
.lp-platforms {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-3);
}

.lp-platforms h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color-high-contrast);
    margin: 0 0 2.5rem;
}

.lp-platform-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.lp-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.lp-platform-icon {
    font-size: 2.25rem;
}


/* ── FOOTER CTA ──────────────────────────────────────────────────────────── */
.lp-cta-footer {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-3);
    background: var(--bg-0);
}

.lp-cta-footer h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color-high-contrast);
    margin: 0 0 2rem;
}


/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .lp-hero .lp-container {
        flex-direction: column;
    }

    .lp-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .lp-wordmark {
        font-size: 2.4rem;
    }

    .lp-feature-inner,
    .lp-feature-flip .lp-feature-inner {
        flex-direction: column;
        gap: 2.5rem;
    }

    /* On mobile always show image above text */
    .lp-feature-flip .lp-feature-img {
        order: -1;
    }

    .lp-feature-text h2 {
        font-size: 1.55rem;
    }

    .lp-cta-footer h2 {
        font-size: 1.55rem;
    }

    .lp-platform-list {
        gap: 2rem;
    }
}
