/* ========================================
   PUBLIC LANDING PAGES — shared design (/developer/)

   The pieces a landing page is built from: a centered hero, pill-shaped
   buttons, a feature grid, numbered steps and a closing card. A page adds
   only its own parts in a stylesheet of its own (developer.css).

   Every rule is scoped under .lp-page: home.css styles every
   `section:not(.footer)` with width: 100% and margin: 0, which outranks a
   bare class and pins the content to the left edge.
   ======================================== */

body.lp-body {
    background: var(--bg-color);
}

.lp-page {
    --lp-max: 1080px;
    font-family: var(--font-family-base);
    color: var(--text-primary);
    overflow-x: clip;
}

.lp-page h1,
.lp-page h2,
.lp-page h3 {
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.lp-page p {
    color: var(--text-secondary);
}

.lp-page code {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
    padding: 0.1em 0.4em;
    border-radius: var(--radius-md);
    background-color: var(--primary-subtle);
    color: var(--text-primary);
}

.lp-page [hidden] {
    display: none !important;
}

/* Anchored sections clear the fixed navbar when the nav jumps to them. */
.lp-page [id] {
    scroll-margin-top: calc(var(--navbar-height) + var(--space-6));
}

.lp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Buttons ---------- */

.lp-page .lp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.lp-page .lp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 48px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        background-color var(--transition-fast), border-color var(--transition-fast);
}

.lp-page .lp-btn--primary {
    background: var(--primary-color);
    color: #fff;
    border: 0;
    box-shadow: 0 8px 24px -8px var(--primary-color);
}

.lp-page .lp-btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.lp-page .lp-btn--ghost {
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border-color);
}

.lp-page .lp-btn--ghost:hover {
    border-color: var(--primary-color);
}

.lp-page .lp-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ---------- Hero ---------- */

.lp-page .lp-hero {
    width: 100%;
    margin: 0;
    padding: var(--space-12) var(--space-4) var(--space-12);
    text-align: center;
    box-sizing: border-box;
}

.lp-page .lp-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--surface);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
}

.lp-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--success-500);
    box-shadow: 0 0 0 4px var(--success-subtle);
}

.lp-page .lp-hero__title {
    max-width: 860px;
    margin: 0 auto var(--space-6);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
}

.lp-gradient {
    display: inline-block;
    background: linear-gradient(90deg, var(--guacamole-primary-500), #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-page .lp-hero__lead {
    max-width: 640px;
    margin: 0 auto var(--space-10);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* ---------- Section frame and heading ---------- */

.lp-page .lp-section {
    width: 100%;
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0 var(--space-4) var(--space-24);
    box-sizing: border-box;
}

.lp-page .lp-heading {
    max-width: 720px;
    margin: 0 auto var(--space-3);
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.lp-page .lp-heading + .lp-steps,
.lp-page .lp-heading + .lp-features {
    margin-top: var(--space-10);
}

.lp-page .lp-subheading {
    max-width: 620px;
    margin: 0 auto var(--space-12);
    text-align: center;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
}

.lp-page .lp-eyebrow {
    margin: 0 0 var(--space-3);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* ---------- Features ---------- */

.lp-page .lp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-10);
}

.lp-feature {
    text-align: center;
}

.lp-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-xl);
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.lp-page .lp-feature h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-2);
}

.lp-page .lp-feature p {
    max-width: 300px;
    margin: 0 auto;
    line-height: var(--line-height-normal);
}

/* ---------- Numbered steps ---------- */

.lp-page .lp-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* The line joining the three numbers. */
.lp-page .lp-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 16.6%;
    right: 16.6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.lp-steps__num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-full);
    background: var(--bg-color);
    border: 1px solid var(--border-strong);
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.lp-page .lp-steps h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-2);
}

.lp-page .lp-steps p {
    margin: 0;
    line-height: var(--line-height-normal);
}

/* ---------- Closing call to action ---------- */

.lp-page .lp-cta {
    width: calc(100% - 2 * var(--space-4));
    max-width: 860px;
    margin: 0 auto var(--space-24);
    padding: var(--space-16) var(--space-6);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--border-color);
    background:
        radial-gradient(ellipse 80% 100% at 50% 0%, var(--primary-overlay-light), transparent 70%),
        var(--surface);
    text-align: center;
    box-sizing: border-box;
}

.lp-page .lp-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-3);
}

.lp-page .lp-cta > p {
    margin: 0 0 var(--space-8);
    font-size: var(--font-size-lg);
}

/* ---------- Motion and small screens ---------- */

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

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

@media (max-width: 760px) {
    .lp-page .lp-hero {
        padding-top: var(--space-8);
    }

    .lp-page .lp-section {
        padding-bottom: var(--space-16);
    }

    .lp-page .lp-features,
    .lp-page .lp-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-8);
    }

    .lp-page .lp-steps::before {
        display: none;
    }
}
