/* =========================================================================
   ASTRA — public landing page, section types introduced by the new copy.

   Loaded AFTER landing.css, which stays the single source of truth for the
   design tokens (--lp-*), reset, navbar, buttons, pricing cards, FAQ and
   footer. Nothing here redefines a token or restyles a shared component, so
   the previous landing page at /page/ is unaffected.

   Everything below reads the existing dark surfaces and gold accent; no new
   colours are introduced.

   Section map:
     1. Shared bits      — trust row, closers, pull quote, action row
     2. Hero visual      — market summary card
     3. Information overload diagram
     4. Card grids       — 2 / 3 / 4 up
     5. Numbered steps   — 3 / 4 / 5 up
     6. Before vs after
     7. Product showcase — alternating screenshot rows
     8. Testimonials
     9. Pricing + FAQ tail
    10. Our story
    11. Final CTA tail
    12. Responsive
   ========================================================================= */

/* ============================ 1. SHARED BITS ============================= */

/* Trust indicators under the hero CTA and the final CTA. */
.lp2-trust {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    font-size: .9rem;
    color: var(--lp-text-dim);
}
.lp2-trust li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
/* Gold check, drawn so no icon font is needed. */
.lp2-trust li::before {
    content: "";
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--lp-accent);
    border-bottom: 2px solid var(--lp-accent);
    transform: rotate(-45deg) translateY(-2px);
}

/* The one-line statement that closes most sections. */
.lp2-closer {
    margin: 48px auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--lp-text);
}
.lp2-closer--grad {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    background: var(--lp-accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pull quote — Meet ASTRA. */
.lp2-quote {
    margin: 48px auto 0;
    max-width: 760px;
    padding: 28px 32px;
    border-left: 3px solid var(--lp-accent);
    background: var(--lp-panel);
    border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--lp-text);
}

/* Centred button row below a section. */
.lp2-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

/* ========================== 2. HERO — SUMMARY =========================== */
.lp2-summary {
    max-width: 620px;
    margin: 0 auto;
    padding: 24px;
    background: var(--lp-panel);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-glow), var(--lp-glow-gold);
    text-align: left;
}

.lp2-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lp-border);
}
.lp2-summary-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--lp-text-dim);
}
.lp2-summary-pair {
    font-family: var(--lp-font-mono);
    font-size: .9rem;
    font-weight: 600;
    color: var(--lp-accent);
}

.lp2-summary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0;
}
.lp2-metric { display: flex; flex-direction: column; gap: 6px; }
.lp2-metric .k {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lp-text-dim);
}
.lp2-metric .v {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lp-text);
}
.lp2-metric .v.up { color: var(--lp-ok); }

.lp2-meter {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: var(--lp-panel-2);
    overflow: hidden;
}
.lp2-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--lp-accent-grad);
}

/* The recommendation is the point of the card, so it gets the gold panel. */
.lp2-summary-rec {
    padding: 18px 20px;
    background: var(--lp-accent-bg);
    border: 1px solid var(--lp-accent-border);
    border-radius: var(--lp-radius-sm);
}
.lp2-rec-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lp-accent-soft);
}
.lp2-rec-value {
    display: block;
    margin-top: 4px;
    font-family: var(--lp-font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--lp-accent);
}
.lp2-summary-rec p {
    margin: 6px 0 0;
    font-size: .9rem;
    color: var(--lp-text-muted);
}

.lp2-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.lp2-level {
    padding: 12px 14px;
    background: var(--lp-panel-2);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    text-align: center;
}
.lp2-level .k {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lp-text-dim);
}
.lp2-level .v {
    display: block;
    margin-top: 4px;
    font-family: var(--lp-font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-text);
}
.lp2-level .v.ok   { color: var(--lp-ok); }
.lp2-level .v.risk { color: var(--lp-danger); }

/* ===================== 3. INFORMATION OVERLOAD ========================== */
/* Sources sit on a ring and all point inward at the trader in the middle —
   the brief the generated illustration missed. Chips are placed by angle from
   --i, and counter-rotated so the labels stay upright. */
.lp2-overload {
    /* Fixed 520px box, so the ring radius can be an absolute length. A
       percentage would resolve against each chip's own size, not the ring. */
    --lp2-ring: 190px;
    position: relative;
    width: 520px;
    max-width: 100%;
    aspect-ratio: 1;
    margin: 56px auto 0;
}
/* The ring the sources sit on — inset 14% of 520px lands on --lp2-ring. */
.lp2-overload::before {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px dashed var(--lp-border-strong);
    border-radius: 50%;
}
/* Seven spokes, one per source, all aimed at the centre. Masked to the gap
   between the trader and the ring so they read as "pointing inward". */
.lp2-overload::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-conic-gradient(
        from 0deg,
        var(--lp-border-strong) 0deg .5deg,
        transparent .5deg calc(360deg / 7)
    );
    -webkit-mask-image: radial-gradient(circle at center, transparent 74px, #000 78px, #000 164px, transparent 168px);
            mask-image: radial-gradient(circle at center, transparent 74px, #000 78px, #000 164px, transparent 168px);
}

.lp2-overload-src {
    --angle: calc(var(--i) * (360deg / 7));
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    padding: .5rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--lp-text-muted);
    background: var(--lp-panel);
    border: 1px solid var(--lp-border-strong);
    border-radius: 999px;
    /* Rotate onto the ring, push out by the radius, then counter-rotate so
       the label itself stays upright. */
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--lp2-ring) * -1))
        rotate(calc(var(--angle) * -1));
}

.lp2-overload-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 132px;
    height: 132px;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-accent-bg);
    border: 1px solid var(--lp-accent-border);
    text-align: center;
}
.lp2-overload-core strong {
    font-size: 1.1rem;
    color: var(--lp-accent);
}
.lp2-overload-core span {
    font-size: .78rem;
    color: var(--lp-text-muted);
}

/* ============================= 4. CARD GRIDS ============================= */
.lp2-grid-2,
.lp2-grid-3,
.lp2-grid-4 {
    display: grid;
    gap: 20px;
    margin-top: 48px;
}
.lp2-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp2-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp2-grid-4 { grid-template-columns: repeat(4, 1fr); }

.lp2-tile {
    padding: 26px 24px;
    background: var(--lp-panel);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    transition: border-color .15s ease, transform .15s ease;
}
.lp2-tile:hover {
    border-color: var(--lp-border-strong);
    transform: translateY(-2px);
}
.lp2-tile h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lp-text);
}
.lp2-tile p {
    margin: 0;
    font-size: .93rem;
    line-height: 1.65;
    color: var(--lp-text-muted);
}

/* Gold top rule for the tiles that carry the product promise. */
.lp2-tile--accent {
    border-top: 2px solid var(--lp-accent);
}
.lp2-tile--accent:hover { border-color: var(--lp-border-strong); border-top-color: var(--lp-accent-2); }

/* =========================== 5. NUMBERED STEPS ========================== */
.lp2-steps {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
.lp2-steps--3 { grid-template-columns: repeat(3, 1fr); }
.lp2-steps--4 { grid-template-columns: repeat(4, 1fr); }
.lp2-steps--5 { grid-template-columns: repeat(5, 1fr); }

.lp2-step {
    padding: 26px 22px;
    background: var(--lp-panel);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}
.lp2-step-num {
    display: block;
    margin-bottom: 14px;
    font-family: var(--lp-font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    background: var(--lp-accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp2-step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-text);
}
.lp2-step p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.65;
    color: var(--lp-text-muted);
}

/* =========================== 6. BEFORE VS AFTER ========================= */
.lp2-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
}
.lp2-compare-col {
    padding: 28px 26px;
    background: var(--lp-panel);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}
.lp2-compare-col--astra {
    border-color: var(--lp-accent-border);
    background: linear-gradient(180deg, var(--lp-accent-bg), transparent 45%), var(--lp-panel);
}
.lp2-compare-lede {
    margin: 10px 0 18px;
    font-size: .85rem;
    color: var(--lp-text-dim);
}

/* ========================== 7. PRODUCT SHOWCASE ========================= */
.lp2-showcase {
    display: flex;
    flex-direction: column;
    gap: 72px;
    margin-top: 56px;
}
.lp2-shot {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 48px;
}
/* Alternate which side the screenshot lands on. */
.lp2-shot--flip .lp2-shot-text  { order: 2; }
.lp2-shot--flip .lp2-shot-media { order: 1; }

.lp2-shot-num {
    display: block;
    margin-bottom: 12px;
    font-family: var(--lp-font-mono);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--lp-accent);
}
.lp2-shot-text h3 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: var(--lp-text);
}
.lp2-shot-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lp-text-muted);
}

.lp2-shot-media {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-panel);
    overflow: hidden;
    box-shadow: var(--lp-glow);
}
.lp2-shot-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================ 8. TESTIMONIALS =========================== */
.lp2-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.lp2-testimonial {
    margin: 0;
    padding: 26px 24px;
    background: var(--lp-panel);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}
.lp2-stars {
    margin-bottom: 12px;
    font-size: .95rem;
    letter-spacing: .18em;
    color: var(--lp-accent);
}
.lp2-testimonial blockquote {
    margin: 0;
    font-size: .98rem;
    line-height: 1.65;
    color: var(--lp-text);
}

/* ========================= 9. PRICING + FAQ TAIL ======================== */
.lp2-pricing-note {
    margin-top: 32px;
    text-align: center;
}

.lp2-faq-more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}
.lp2-faq-more p {
    margin: 0;
    font-size: .95rem;
    color: var(--lp-text-muted);
}

/* ============================== 10. OUR STORY =========================== */
.lp2-story {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 64px;
}
.lp2-story-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--lp-text-muted);
}
.lp2-story-text .lp-h2 { margin-bottom: 24px; }
.lp2-story-tagline {
    margin-top: 28px;
    font-size: 1.3rem;
    font-weight: 700;
    font-style: italic;
    color: var(--lp-text) !important;
}
.lp2-story-visual svg {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
}

/* =========================== 11. FINAL CTA TAIL ========================= */
.lp2-cta-closer {
    margin: 28px auto 0;
    max-width: 640px;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--lp-text-muted);
}

/* ============================= 12. RESPONSIVE =========================== */
@media (max-width: 980px) {
    .lp2-grid-4,
    .lp2-steps--4,
    .lp2-steps--5 { grid-template-columns: repeat(2, 1fr); }
    .lp2-testimonials { grid-template-columns: repeat(2, 1fr); }

    .lp2-shot,
    .lp2-story {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    /* Text first on every row once stacked, flip or not. */
    .lp2-shot--flip .lp2-shot-text  { order: 0; }
    .lp2-shot--flip .lp2-shot-media { order: 0; }
    .lp2-showcase { gap: 56px; }
}

@media (max-width: 760px) {
    .lp2-grid-2,
    .lp2-grid-3,
    .lp2-grid-4,
    .lp2-steps--3,
    .lp2-steps--4,
    .lp2-steps--5,
    .lp2-compare,
    .lp2-testimonials { grid-template-columns: 1fr; }

    .lp2-summary-metrics { grid-template-columns: 1fr; gap: 16px; }
    .lp2-levels { grid-template-columns: 1fr; }

    .lp2-closer { font-size: 1.05rem; }
    .lp2-closer--grad { font-size: 1.25rem; }
    .lp2-quote { padding: 22px 24px; font-size: 1.05rem; }
    .lp2-shot-text h3 { font-size: 1.35rem; }

    /* The ring does not survive a narrow column — fall back to a plain
       wrapped list of the same sources, with the trader last. */
    .lp2-overload {
        width: auto;
        aspect-ratio: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        margin-top: 40px;
    }
    .lp2-overload::before,
    .lp2-overload::after { display: none; }
    .lp2-overload-src {
        position: static;
        transform: none;
    }
    .lp2-overload-core {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        padding: 18px;
        border-radius: var(--lp-radius);
        margin-top: 8px;
    }
}
