/* ==========================================================================
   Automated keyword landing pages (lp_pillar_page) + /explore/ hub.
   Loaded only on those views. Uses the --om-* tokens from matrix.css.
   ========================================================================== */

.olp {
    --olp-text: #b7c8bb;
    --olp-gap: clamp(4.5rem, 9vw, 8rem);
    position: relative;
    color: var(--om-white);
    background:
        radial-gradient(circle at 82% 0%, rgba(93,255,130,.09), transparent 32%),
        var(--om-black);
}

.olp-wrap {
    width: min(100% - 40px, 1220px);
    margin-inline: auto;
}

.olp :is(h1, h2, h3) {
    color: var(--om-white) !important;
}

.olp :is(p, li) {
    color: var(--olp-text) !important;
}

.olp .breadcrumbs {
    display: inline-block;
    margin: 0 0 2.4rem;
}

/* Labels ---------------------------------------------------------------- */

.olp-eyebrow,
.olp-label,
.olp-card-kicker,
.olp-product-meta {
    color: var(--om-green) !important;
    font: 700 10px/1.4 var(--om-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.olp-eyebrow {
    display: inline-flex;
    margin: 0;
    padding: .55rem .8rem;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--om-line);
    background: rgba(93,255,130,.05);
}

.olp-dot {
    width: 7px;
    height: 7px;
    background: var(--om-green);
    box-shadow: 0 0 12px var(--om-green);
    animation: olp-blink 1.6s steps(2, start) infinite;
}

@keyframes olp-blink { to { visibility: hidden; } }

.olp-label {
    margin: 0 0 1rem;
}

/* Buttons ---------------------------------------------------------------- */

.olp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2.2rem;
}

.olp-btn {
    display: inline-flex;
    min-height: 54px;
    padding: 0 1.6rem;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    font: 800 12px/1 var(--om-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.olp-btn span {
    transition: transform .18s ease;
}

.olp-btn:hover span {
    transform: translateX(4px);
}

.olp-btn-primary {
    color: #021507 !important;
    background: var(--om-green);
}

.olp-btn-primary:hover {
    background: var(--om-green-bright);
}

.olp-btn-ghost {
    color: var(--om-white) !important;
    background: rgba(93,255,130,.08);
    box-shadow: inset 0 0 0 1px var(--om-line);
}

.olp-btn-ghost:hover {
    color: var(--om-green) !important;
    background: rgba(93,255,130,.14);
}

.olp-link {
    color: var(--om-green) !important;
    font: 700 11px/1 var(--om-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
}

.olp-link:hover {
    color: var(--om-green-bright) !important;
}

/* Hero ------------------------------------------------------------------- */

.olp-hero {
    padding: 2.2rem 0 var(--olp-gap);
    border-bottom: 1px solid var(--om-line);
    background:
        linear-gradient(rgba(93,255,130,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93,255,130,.035) 1px, transparent 1px);
    background-size: 56px 56px;
}

.olp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.olp-hero h1 {
    margin: 1.4rem 0 1.4rem;
    font-size: clamp(2.8rem, 6.2vw, 6rem);
    font-weight: 850;
    line-height: .95;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.olp-lead {
    max-width: 680px;
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.7;
}

.olp-points {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 0 0;
    padding: 0;
    gap: .6rem 1.6rem;
    list-style: none;
}

.olp-points li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--om-white) !important;
    font: 600 12px/1.5 var(--om-mono);
}

.olp-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--om-green);
    border-bottom: 2px solid var(--om-green);
    transform: rotate(-45deg);
}

.olp-frame {
    position: relative;
    background: var(--om-panel);
    border: 1px solid var(--om-line);
    box-shadow: 0 40px 120px rgba(0,0,0,.5), 0 0 0 1px rgba(93,255,130,.06), 0 0 80px rgba(93,255,130,.08);
    transform: rotate(1.2deg);
}

.olp-frame-bar {
    display: flex;
    padding: .7rem .9rem;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--om-line);
}

.olp-frame-bar span {
    width: 8px;
    height: 8px;
    border: 1px solid var(--om-green-muted);
}

.olp-frame-bar b {
    margin-left: auto;
    color: var(--om-muted);
    font: 700 9px/1 var(--om-mono);
    letter-spacing: .12em;
}

.olp-frame-media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #030604;
}

.olp-frame-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.olp-frame-empty {
    display: grid;
    place-items: center;
    color: var(--om-line);
    font: 800 clamp(1.5rem, 3vw, 2.4rem)/1 var(--om-mono);
}

.olp-frame-caption {
    display: flex;
    padding: .9rem 1rem;
    justify-content: space-between;
    gap: 1rem;
    color: var(--om-white) !important;
    border-top: 1px solid var(--om-line);
    font: 600 12px/1.4 var(--om-sans);
    text-decoration: none !important;
}

.olp-frame-caption b {
    color: var(--om-green);
    font: 700 10px/1.4 var(--om-mono);
    white-space: nowrap;
}

.olp-hero-compact {
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.olp-hero-compact h1 {
    max-width: 960px;
}

/* Sections --------------------------------------------------------------- */

.olp-section {
    padding-block: var(--olp-gap);
    border-bottom: 1px solid var(--om-line);
}

.olp-heading {
    max-width: 820px;
    margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.olp-heading-row {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.olp h2 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 820;
    line-height: 1;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.olp-split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.olp-split-head {
    position: sticky;
    top: 110px;
}

/* Prose (HTML from the workflow) ---------------------------------------- */

.olp-prose > :first-child {
    margin-top: 0;
}

.olp-prose :is(p, li) {
    font-size: 1.05rem;
    line-height: 1.85;
}

.olp-prose p {
    margin: 0 0 1.1em;
}

.olp-prose > :last-child {
    margin-bottom: 0;
}

.olp-prose-lg p {
    color: var(--om-white) !important;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.65;
}

.olp-prose h3 {
    margin: 2.2rem 0 .7rem;
    font-size: 1.3rem;
    letter-spacing: -.02em;
}

.olp-prose :is(ul, ol) {
    margin: 1.4rem 0;
    padding-left: 1.3rem;
}

.olp-prose li {
    margin-bottom: .45rem;
}

.olp-prose li::marker {
    color: var(--om-green);
}

.olp-prose strong {
    color: var(--om-white);
}

.olp-prose a,
.olp-faq-answer a {
    color: var(--om-green) !important;
    text-decoration: underline;
    text-decoration-color: rgba(93,255,130,.4);
    text-underline-offset: 3px;
}

.olp-prose a:hover,
.olp-faq-answer a:hover {
    text-decoration-color: var(--om-green);
}

/* Benefit boxes ---------------------------------------------------------- */

.olp-box-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--om-line);
    border: 1px solid var(--om-line);
}

.olp-box-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.olp-box {
    position: relative;
    min-height: 260px;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    background: var(--om-black-soft);
    transition: background .2s ease;
}

.olp-box:hover {
    background: var(--om-panel-raised);
}

.olp-box-index {
    color: var(--om-green);
    font: 700 11px/1 var(--om-mono);
}

.olp-box h3 {
    margin: 3rem 0 .8rem;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.olp-box p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.7;
}

/* Products --------------------------------------------------------------- */

.olp-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.olp-product {
    overflow: hidden;
    background: var(--om-panel);
    border: 1px solid var(--om-line);
    transition: border-color .2s ease, transform .2s ease;
}

.olp-product:hover {
    border-color: var(--om-green);
    transform: translateY(-3px);
}

.olp-product-media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #030604;
}

.olp-product-media :is(video, img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.olp-product-copy {
    display: flex;
    padding: 1rem 1.1rem;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.olp-product-copy h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.olp-product-copy h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.olp-product-meta {
    font-size: 9px;
    white-space: nowrap;
}

/* Mid-page band ---------------------------------------------------------- */

.olp-band {
    background: var(--om-green);
}

.olp-band-inner {
    display: flex;
    padding-block: 1.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.olp-band p {
    margin: 0;
    color: #021507 !important;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.olp-band .olp-btn-primary {
    color: var(--om-green) !important;
    background: #021507;
    flex-shrink: 0;
}

/* FAQ -------------------------------------------------------------------- */

.olp-faq-list {
    border-top: 1px solid var(--om-line);
}

.olp-faq-list details {
    border-bottom: 1px solid var(--om-line);
}

.olp-faq-list summary {
    display: flex;
    padding: 1.4rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    cursor: pointer;
    list-style: none;
}

.olp-faq-list summary::-webkit-details-marker {
    display: none;
}

.olp-faq-list summary h3 {
    margin: 0;
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.4;
    letter-spacing: -.01em;
}

.olp-faq-list summary:hover h3 {
    color: var(--om-green) !important;
}

.olp-faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.olp-faq-icon::before,
.olp-faq-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
    background: var(--om-green);
    transition: transform .2s ease;
}

.olp-faq-icon::after {
    transform: rotate(90deg);
}

details[open] .olp-faq-icon::after {
    transform: rotate(0);
}

.olp-faq-answer p {
    margin: 0 0 1.5rem;
    max-width: 680px;
    line-height: 1.8;
}

/* Final CTA -------------------------------------------------------------- */

.olp-final {
    padding-block: var(--olp-gap);
    border-bottom: 1px solid var(--om-line);
}

.olp-final-card {
    display: grid;
    padding: clamp(2rem, 6vw, 5rem);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(93,255,130,.18), transparent 45%),
        var(--om-panel);
    border: 1px solid var(--om-green);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.olp-final-card h2 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: .95;
}

.olp-final-card p:not(.olp-label) {
    max-width: 640px;
    margin: 1.2rem 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.olp-actions-stack {
    flex-direction: column;
    margin-top: 0;
}

/* Cards (related + hub) -------------------------------------------------- */

.olp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.olp-card {
    display: flex;
    min-height: 250px;
    padding: 1.6rem;
    flex-direction: column;
    background: var(--om-panel);
    border: 1px solid var(--om-line);
    text-decoration: none !important;
    transition: border-color .2s ease, background .2s ease;
}

.olp-card:hover {
    background: var(--om-panel-raised);
    border-color: var(--om-green);
}

.olp-card :is(h2, h3) {
    margin: 1.2rem 0 .7rem;
    font-size: 1.3rem;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.olp-card p {
    margin: 0 0 1.4rem;
    font-size: .95rem;
    line-height: 1.65;
}

.olp-card b {
    margin-top: auto;
    color: var(--om-green);
    font: 700 10px/1 var(--om-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.olp-related {
    border-bottom: 0;
}

.olp-pagination {
    margin-top: 3rem;
}

.olp-pagination ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 8px;
    list-style: none;
}

.olp-pagination :is(a, span) {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    padding: 0 .9rem;
    align-items: center;
    justify-content: center;
    color: var(--om-white) !important;
    border: 1px solid var(--om-line);
    font: 700 11px/1 var(--om-mono);
    text-decoration: none !important;
}

.olp-pagination .current,
.olp-pagination a:hover {
    color: #021507 !important;
    background: var(--om-green);
    border-color: var(--om-green);
}

/* Sticky mobile CTA ------------------------------------------------------ */

.olp-sticky {
    display: none;
}

@media (max-width: 960px) {
    .olp-hero-grid,
    .olp-split,
    .olp-final-card {
        grid-template-columns: 1fr;
    }

    .olp-hero-visual {
        max-width: 420px;
    }

    .olp-split-head {
        position: static;
    }

    .olp-box-grid,
    .olp-box-grid-4,
    .olp-product-grid,
    .olp-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .olp-actions-stack {
        flex-direction: row;
    }
}

@media (max-width: 700px) {
    .olp-wrap {
        width: min(100% - 32px, 1220px);
    }

    .olp-hero h1 {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .olp-btn {
        width: 100%;
    }

    .olp-box-grid,
    .olp-box-grid-4,
    .olp-card-grid {
        grid-template-columns: 1fr;
    }

    .olp-box {
        min-height: 0;
    }

    .olp-box h3 {
        margin-top: 1.6rem;
    }

    .olp-product-grid {
        gap: 10px;
    }

    .olp-product-copy {
        flex-direction: column;
        gap: .4rem;
    }

    .olp-heading-row,
    .olp-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .olp-frame {
        transform: none;
    }

    .olp-frame-media {
        aspect-ratio: 1 / 1;
    }

    .olp-sticky:not([hidden]) {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 8000;
        display: flex;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        align-items: center;
        gap: 12px;
        background: rgba(2,5,3,.94);
        border-top: 1px solid var(--om-line);
        backdrop-filter: blur(14px);
    }

    .olp-sticky span {
        overflow: hidden;
        flex: 1;
        color: var(--om-white);
        font-size: .8rem;
        font-weight: 700;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .olp-sticky .olp-btn {
        width: auto;
        min-height: 44px;
        padding: 0 1rem;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .olp-dot { animation: none; }
    .olp-btn, .olp-btn span, .olp-product, .olp-card, .olp-box { transition: none; }
    .olp-product:hover { transform: none; }
}
