/* ==========================================================================
   Landing page — lemanager.net/
   Everything here is scoped under .lp-* so it cannot leak into the blog.
   Palette is the existing theme-lemanager palette; the only borrowed colour is
   the amber the game itself uses for headings and star ratings.
   ========================================================================== */

/* This stylesheet is only linked on the landing page, so the bare `nav` and
   `footer` rules below cannot affect the blog. The hero supplies its own top
   spacing. */
nav {
    margin-bottom: 0;
}

/* The theme gives nav a 1200px container while the landing shell is 1120px, so
   the brand and the hero text sat on different left edges. Share the width. */
.nav-content {
    max-width: 1120px;
    padding: 0 24px;
}

/* The preceding section already draws a full-width border. The footer's own
   top border only spans its centred box, which reads as a second, shorter
   line directly under the first. */
footer.full-bleed-footer {
    max-width: 1120px;
    border-top: none;
}

/* Tokens live on :root rather than on a list of section selectors — this
   stylesheet is only served on the landing page, and scoping them per section
   means any new section silently loses every var(). */
:root {
    --lp-bg: #0f172a;
    --lp-surface: #1e293b;
    --lp-border: #334155;
    --lp-text: #e2e8f0;
    --lp-heading: #f1f5f9;
    --lp-muted: #94a3b8;
    --lp-dim: #64748b;
    --lp-accent: #60a5fa;
    --lp-amber: #f5a524;

    --lp-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

.lp-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1600px) {
    .lp-shell,
    .nav-content,
    footer.full-bleed-footer {
        max-width: 1360px;
    }

    .lp-hero-shot {
        max-width: 1420px;
    }
}

/* --- shared type ------------------------------------------------------- */

.lp-eyebrow {
    font-family: var(--lp-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lp-dim);
    margin: 0 0 1rem;
}

.lp-more {
    margin: 0;
    font-family: var(--lp-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.lp-more a {
    color: var(--lp-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.35);
    padding-bottom: 2px;
}

.lp-more a:hover,
.lp-more a:focus-visible {
    border-bottom-color: var(--lp-accent);
}

.lp-more a::after {
    content: ' \2192';
}

/* --- buttons ---------------------------------------------------------- */

.lp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 2.5rem 0 0;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lp-btn-primary {
    background: var(--lp-accent);
    color: #0b1220;
}

.lp-btn-primary:hover {
    background: #8cc0fc;
    transform: translateY(-1px);
}

.lp-btn-secondary {
    color: var(--lp-text);
    border-color: var(--lp-border);
    background: transparent;
}

.lp-btn-secondary:hover {
    border-color: var(--lp-muted);
    background: rgba(51, 65, 85, 0.35);
    transform: translateY(-1px);
}

.lp-btn:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 3px;
}

/* --- hero ------------------------------------------------------------- */

.lp-hero {
    padding: 5.5rem 0 0;
    background:
        radial-gradient(120% 80% at 15% 0%, rgba(96, 165, 250, 0.10) 0%, transparent 60%),
        var(--lp-bg);
    border-bottom: 1px solid var(--lp-border);
}

.lp-hero-title {
    margin: 0;
    max-width: 21ch;
    font-size: clamp(2.4rem, 6.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.035em;
    color: var(--lp-heading);
}

.lp-hero-title span {
    display: block;
    color: var(--lp-accent);
}

.lp-hero-sub {
    margin: 1.75rem 0 0;
    max-width: 56ch;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--lp-muted);
}

.lp-hero-shot {
    margin: 4.5rem auto 0;
    max-width: 1180px;
    padding: 0 24px;
}

/* Screenshots are shown whole — cropping into them destroyed the one thing that
   reads at page size, which is *which screen* you are looking at. Legibility is
   handled by clicking through to the lightbox instead. */
.lp-zoom {
    /* reset button chrome */
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    font: inherit;
    background: none;

    position: relative;
    cursor: zoom-in;
    border-radius: 10px;
    line-height: 0;
}

.lp-zoom img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-hero-shot .lp-zoom img {
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.6), 0 0 50px rgba(96, 165, 250, 0.10);
}

.lp-feature-shot .lp-zoom img {
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.55);
}

.lp-zoom:hover img {
    border-color: var(--lp-accent);
}

.lp-zoom:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 4px;
}

/* Persistent affordance — a hover-only hint is invisible on touch. */
.lp-zoom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: var(--lp-mono);
    font-size: 0.65rem;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-text);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--lp-border);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lp-zoom-badge::before {
    content: '\2921  ';
}

.lp-zoom:hover .lp-zoom-badge {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
    color: #0b1220;
}

.lp-hero-shot figcaption {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: var(--lp-dim);
    text-align: center;
}

/* --- features --------------------------------------------------------- */

.lp-features {
    padding: 5rem 0 5.5rem;
    background: var(--lp-bg);
}

/* Alternating rows rather than a card grid: it gives each screenshot roughly
   60% of the column instead of 40%, which is the difference between "a league
   table" and "some grey rows". */
.lp-feature-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin: 0 0 3.5rem;
    padding: 0;
    list-style: none;
}

.lp-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 44px;
    align-items: center;
}

/* Image left on even rows — the column widths swap with it, or the screenshot
   ends up in the narrow column. */
.lp-feature:nth-child(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.lp-feature:nth-child(even) .lp-feature-text {
    order: 2;
}

.lp-feature h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lp-heading);
}

.lp-feature-text p:not(.lp-eyebrow) {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lp-muted);
}

.lp-feature-shot {
    margin: 0;
}

.lp-feature-shot figcaption {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--lp-dim);
}

.lp-feature-shot figcaption em {
    font-style: normal;
    color: var(--lp-muted);
}

/* --- story ------------------------------------------------------------ */

.lp-story {
    padding: 5rem 0;
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
}

.lp-story-body {
    max-width: 62ch;
    margin: 0 0 1.75rem;
}

/* Two columns from tablet up: the label sits beside the text rather than
   leaving the right two thirds of the row empty. */
@media (min-width: 900px) {
    .lp-story .lp-shell {
        display: grid;
        grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
        column-gap: 44px;
    }

    .lp-story .lp-eyebrow {
        grid-column: 1;
        grid-row: 1;
        margin: 0.35rem 0 0;
    }

    .lp-story-body {
        grid-column: 2;
        grid-row: 1;
    }

    .lp-story .lp-more {
        grid-column: 2;
        grid-row: 2;
    }
}

.lp-story-body p {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--lp-text);
}

.lp-story-body p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--lp-dim);
}

/* --- launch list ------------------------------------------------------ */

.lp-signup {
    padding: 5rem 0;
    background: var(--lp-bg);
    border-bottom: 1px solid var(--lp-border);
}

.lp-signup-inner {
    max-width: 640px;
}

@media (min-width: 900px) {
    .lp-signup-inner {
        max-width: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 64px;
        align-items: start;
    }

    .lp-signup-intro {
        max-width: 44ch;
    }

    .lp-signup-form-col {
        padding-top: 2.2rem;
    }
}

.lp-signup h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lp-heading);
}

.lp-signup-sub {
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--lp-muted);
}

.lp-signup-result {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    border: 1px solid var(--lp-border);
    font-size: 0.95rem;
    background: var(--lp-surface);
}

.lp-signup-ok {
    color: var(--lp-heading);
    border-color: rgba(96, 165, 250, 0.5);
}

.lp-signup-bad {
    color: var(--lp-amber);
    border-color: rgba(245, 165, 36, 0.4);
}

.lp-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.lp-field {
    flex: 1 1 240px;
}

.lp-field span {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--lp-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-dim);
}

.lp-field input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--lp-text);
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 6px;
}

.lp-field input::placeholder {
    color: var(--lp-dim);
}

.lp-field input:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 1px;
    border-color: var(--lp-accent);
}

.lp-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lp-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1.5rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--lp-text);
    cursor: pointer;
}

.lp-consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--lp-accent);
}

.lp-form-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--lp-dim);
}

.lp-form-note a {
    color: var(--lp-muted);
}

/* --- closing ---------------------------------------------------------- */

.lp-close {
    padding: 5.5rem 0;
    background: var(--lp-bg);
    text-align: center;
}

.lp-close h2 {
    margin: 0 auto;
    max-width: 30ch;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--lp-heading);
}

.lp-close .lp-cta-row {
    justify-content: center;
}

/* --- responsive ------------------------------------------------------- */

@media (max-width: 860px) {
    .lp-hero {
        padding-top: 3.5rem;
    }

    .lp-hero-shot {
        margin-top: 3rem;
        padding: 0 16px;
    }

    .lp-story,
    .lp-close {
        padding: 3.5rem 0;
    }

    .lp-feature-grid {
        gap: 3.5rem;
    }

    .lp-feature,
    .lp-feature:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    /* Text always leads on a phone, whatever the desktop order. */
    .lp-feature:nth-child(even) .lp-feature-text {
        order: 0;
    }



}

@media (max-width: 520px) {
    .lp-shell {
        padding: 0 18px;
    }

    .lp-btn {
        width: 100%;
    }

    .lp-feature-shot figcaption,
    .lp-hero-shot figcaption {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-btn {
        transition: none;
    }

    .lp-btn:hover {
        transform: none;
    }
}
