/* landing.css — apex site chrome + landing page.
   Loads AFTER style.css and never overrides it. Every landing-only rule is
   namespaced .lp-* so the shared app classes (.card, .battle-card, .battle-row,
   .rule-trail, .basis-label) keep behaving exactly as they do inside the app.
   Do not merge this into style.css — style.css is shared with the demo webui. */

/* --- shared chrome ------------------------------------------------------- */

.lp-skip {
    position: absolute;
    left: -9999px;
    background: var(--accent);
    color: #1a1d24;
    padding: 0.5rem 0.9rem;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    z-index: 10;
}
.lp-skip:focus { left: 0; top: 0; }

.lp-header {
    border-bottom: 1px solid #2a2d36;
    background: var(--bg);
}

.lp-header-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.lp-wordmark {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.lp-wordmark:hover { color: var(--accent); }

.lp-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}
.lp-nav a {
    color: var(--muted);
    text-decoration: none;
}
.lp-nav a:hover { color: var(--text); }

.lp-nav-cta {
    color: var(--accent) !important;
    border: 1px solid #3a3d46;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
}
.lp-nav-cta:hover { border-color: var(--accent); }

@media (max-width: 560px) {
    .lp-nav a:not(.lp-nav-cta) { display: none; }
}

/* --- layout -------------------------------------------------------------- */

.lp-hero,
.lp-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1rem;
    border-bottom: 1px solid #20232b;
}
.lp-close { border-bottom: none; }

.lp-hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }

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

.lp-eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.9rem;
}

.lp-h1 {
    font-size: clamp(1.75rem, 5.2vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 1.1rem;
    max-width: 20ch;
}

.lp-lede {
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    color: var(--text);
    margin: 0 0 1.25rem;
    max-width: 54ch;
}

.lp-kicker {
    display: inline-block;
    margin: 0 0 1.75rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent);
    color: var(--muted);
    font-size: 0.95rem;
}

.lp-h2 {
    font-size: clamp(1.35rem, 3.4vw, 1.7rem);
    line-height: 1.25;
    margin: 0 0 0.9rem;
    letter-spacing: -0.01em;
}

.lp-body {
    color: var(--muted);
    margin: 0 0 1.5rem;
    max-width: 58ch;
}

.lp-footnote {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 1.25rem 0 0;
    max-width: 58ch;
}

/* --- calls to action ----------------------------------------------------- */

.lp-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
}

.lp-cta {
    display: inline-block;
    background: var(--accent);
    color: #1a1d24;
    font-weight: 700;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 1rem;
}
.lp-cta:hover { filter: brightness(1.08); }

.lp-cta-quiet {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    padding: 0.7rem 0.9rem;
    border: 1px solid #2a2d36;
    border-radius: 8px;
    font-size: 0.95rem;
}
.lp-cta-quiet:hover { color: var(--text); border-color: #3a3d46; }

.lp-cta-note {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0;
}

/* --- steps (a real sequence, hence the numbering) ------------------------ */

.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.lp-step {
    border-top: 1px solid #2a2d36;
    padding-top: 0.9rem;
}

.lp-step-num {
    display: block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
}

.lp-step-title {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.lp-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- sample output (the one place we reuse app classes on purpose) ------- */

.lp-sample-label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.75rem 0 0.25rem;
}

.lp-sample-grid { margin-top: 0.5rem; }

/* --- scenario list ------------------------------------------------------- */

.lp-group-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 1.75rem 0 0.6rem;
}
.lp-group-count { color: var(--accent); }

.lp-scenario-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-scenario-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid #20232b;
    font-size: 0.95rem;
}

.lp-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border: 1px solid #2a2d36;
    border-radius: 4px;
    padding: 0.12rem 0.45rem;
}

.lp-badge-free {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- disclaimer + footer ------------------------------------------------- */

.lp-disclaimer-block {
    max-width: 860px;
    margin: 2.5rem auto 0;
    padding: 1rem 1.1rem;
    background: var(--card-bg);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.lp-disclaimer-block strong { color: var(--text); }
.lp-disclaimer-block a { color: var(--accent); }

@media (max-width: 900px) {
    .lp-disclaimer-block { margin-left: 1rem; margin-right: 1rem; }
}

.lp-footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.75rem 1rem 2.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

.lp-footer-trust { margin: 0 0 0.75rem; }

.lp-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.lp-footer-nav a { color: var(--muted); text-decoration: none; }
.lp-footer-nav a:hover { color: var(--accent); }

.lp-footer-mark { margin: 0; color: #5c6069; }

/* --- stub pages ---------------------------------------------------------- */

.lp-prose { max-width: 62ch; }
.lp-prose h3 { color: var(--accent); margin: 1.75rem 0 0.5rem; font-size: 1rem; }
.lp-prose p, .lp-prose li { color: var(--muted); }
.lp-prose ul { padding-left: 1.1rem; }
.lp-prose li { margin-bottom: 0.45rem; }

.lp-stub-note {
    background: var(--card-bg);
    border-left: 4px solid var(--unverified);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* --- /run holdings roster (Q-021) ---------------------------------------- */

.lp-holdings-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lp-holding-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.lp-holding-remove {
    background: transparent;
    color: var(--muted);
    border: 1px solid #3a3d46;
    font-weight: normal;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
}
.lp-holding-remove:hover { color: var(--text); border-color: var(--accent); }

#run-gauntlet-btn:disabled,
#custom-ticker-label input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- quality floor ------------------------------------------------------- */

a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
