/* ================================================================
   HOME_WHY_LLM.CSS — "Why not just use an LLM?" section (#1396)

   Homepage section positioning Lex-Ray against the obvious buyer
   question. Visual language matches the features showcase
   (home_features.css): white cards on the coral gradient, coral top
   bars, JetBrains Mono kickers with the decrypt treatment. Brand and
   surface colours come from tokens.css; a few raw literals remain for
   the dark terminal panel and its on-dark text (e.g. #fff, #212529,
   #ff8a90, #ced4da, #868e96) where no token fits yet. The white card
   fill is no longer among them — #1567 named it --lx-on-brand-sheet
   once it turned out this file wrote it three times.
   The duel demo deliberately contrasts a dark "your model" terminal
   panel with a light Lex-Ray product panel.

   Operator chip colours mirror the real product's normative cards
   (normative_cards.css --op-* palette) so the replica looks like the
   thing it replicates.
   ================================================================ */

.why-llm-section {
    padding: 4.5rem 20px 5rem;
    scroll-snap-align: start;
    scroll-margin-top: 70px;
}

/* ::highlight() family vars — Chrome resolves custom properties inside
   ::highlight() against the ROOT element, and normative_cards.css defines
   these only on .normative-cards, so the production hover-highlight would
   paint transparent. This sheet ships only on the homepage, so :root is
   page-scoped in effect (values = normative_cards.css; same fix as the
   transparency page's _styles.html). */
:root {
    --actor-bg: #e9efff; --actor-fg: #274690; --actor-bd: #bfd0f8;
    --time-bg: #fff1c7; --time-fg: #8a5a00; --time-bd: #f2d98b;
    --cond-bg: #e9f8f3; --cond-fg: #0f766e; --cond-bd: #b8e7da;
    --ref-bg: #ffe9d6; --ref-fg: #9a3412; --ref-bd: #f5c9a6;
    --term-bg: #eef0ff; --term-fg: #4338ca; --term-bd: #c7cdfc;
    --bool-bg: #efe7ff; --bool-fg: #6b21a8; --bool-bd: #d9c2fb;
    --exc-bg: #fde8ee; --exc-fg: #be123c; --exc-bd: #f7b3c4;
    --neg-bg: #fef3c7; --neg-fg: #92400e; --neg-bd: #f7d487;
    --penalty-bg: #ffe4ec; --penalty-fg: #9d174d; --penalty-bd: #f5b4c8;
}

/* ---------------------------------------------------------------- head */

.wnl-head {
    max-width: 780px;
    margin: 0 auto 2.75rem;
    text-align: center;
    color: #fff;
}

.wnl-head h2 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    margin: 0 0 0.4rem;
}

.wnl-head .ss-dot-divider-white {
    margin: 0.8rem auto;
}

/* The eight-word answer — mono, terminal-style, load-bearing */
.wnl-thesis {
    margin: 0.4rem 0 1rem;
    font-family: var(--font-stack-mono);
    font-size: clamp(0.95rem, 2.4vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
}

.wnl-lead {
    margin: 0 auto;
    max-width: 46em;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.wnl-lead strong {
    color: #fff;
}

/* ---------------------------------------------------------------- cards */

/* Flex, not grid, so the five cards wrap 3-then-2 with the trailing row
   centred under the first (grid's auto-fit would leave a left-aligned
   orphan). flex-basis + max-width keeps 3-up on desktop, 2-up on tablet,
   1-up on mobile. */
.wnl-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.wnl-card {
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 380px;
    background: var(--lx-on-brand-sheet);
    border-radius: 16px;
    padding: 1.4rem 1.5rem 1.5rem;
    box-shadow: 0 12px 32px rgba(44, 0, 2, 0.18);
    text-align: center;
}

.wnl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lx-brand), var(--lx-brand-strong));
}

/* A large, grey glyph centred at the top of each card — a quiet visual
   anchor that doesn't compete with the coral top bar. */
.wnl-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.9rem;
    color: var(--lx-text-muted);
    font-size: 2.4rem;
}

.wnl-card-icon i {
    line-height: 1;
}

.wnl-kicker {
    display: block;
    font-family: var(--font-stack-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--lx-brand);
    margin-bottom: 0.45rem;
}

.wnl-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
}

.wnl-card p {
    margin: 0 0 0.6rem;
    color: var(--lx-text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.wnl-card p:last-child {
    margin-bottom: 0;
}

/* Load-bearing phrases ("probabilistic citation", "Lex-Ray is what you put
   in front of it") pop against the muted body copy. */
.wnl-card p strong {
    color: #212529;
    font-weight: 700;
}

/* ---------------------------------------------------------------- duel */

.wnl-duel-head {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #fff;
}

.wnl-duel-head h3 {
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin: 0 0 0.5rem;
}

.wnl-duel-head p {
    margin: 0 auto;
    max-width: 44em;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* The two panels stack full-width: the prompt band above, the product
   panel (statements | provision, side by side) below. */
.wnl-duel-panel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(44, 0, 2, 0.18);
}

.wnl-panel-model {
    margin-bottom: 1.5rem;
}

.wnl-model-cols {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: start;
}

.wnl-model-side {
    padding-top: 0.4rem;
}

@media (max-width: 899px) {
    .wnl-model-cols {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.wnl-product-cols {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 899px) {
    .wnl-product-cols {
        grid-template-columns: 1fr;
    }
}

/* Left: the visitor's model — dark terminal chrome */
.wnl-panel-model {
    background: #212529;
    color: #f8f9fa;
    padding: 1.4rem 1.5rem 1.5rem;
}

.wnl-panel-model .wnl-kicker {
    color: #ff8a90;
}

.wnl-panel-model h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 0.6rem;
}

.wnl-panel-model p {
    color: #ced4da;
    font-size: 0.875rem;
    line-height: 1.55;
}

.wnl-prompt {
    font-family: var(--font-stack-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 3px solid var(--lx-brand);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.9rem 0 0.5rem;
    color: #f1f3f5;
    white-space: pre-wrap;
}

.wnl-prompt::before {
    content: '> ';
    color: #ff8a90;
}

.wnl-prompt-note {
    font-size: 0.75rem;
    color: #adb5bd;
    margin: 0 0 1rem;
}

.wnl-prompt-checks {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #adb5bd;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wnl-prompt-checks strong {
    color: #dee2e6;
}

.wnl-prompt-checks em {
    color: #ff8a90;
    font-style: italic;
}

.wnl-clickouts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.wnl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    font-family: var(--font-stack-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wnl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

.wnl-btn--copy {
    border-style: dashed;
    color: #ced4da;
}

.wnl-btn--done {
    border-color: var(--lx-success-solid);
    color: var(--lx-success-solid);
}

.wnl-ask-twice {
    font-family: var(--font-stack-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: #ff8a90;
    margin: 0 0 0.35rem;
}

.wnl-fineprint {
    font-size: 0.75rem;
    color: #868e96;
    margin: 0;
}

.wnl-panel-model .wnl-fineprint {
    padding-top: 0.2rem;
}

/* Right: the Lex-Ray product panel — light. The statement cards inside
   are the real normative-card component (normative_cards.css). */
.wnl-panel-product {
    /* Own positioning context for the ::before top bar — don't rely on an
       ancestor (.wnl-duel-panel) happening to be position:relative. */
    position: relative;
    background: var(--lx-on-brand-sheet);
    color: #212529;
    padding: 1.4rem 1.5rem 1.5rem;
}

.wnl-panel-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lx-brand), var(--lx-brand-strong));
}

.wnl-panel-product h4 {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    color: #212529;
}

.wnl-demo-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--lx-surface-muted);
    border: 1px solid var(--lx-border);
    color: var(--lx-text-muted);
    font-family: var(--font-stack-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: 2px;
    margin-left: 0.4rem;
    white-space: nowrap;
}

.wnl-panel-product .wnl-sub {
    margin: 0 0 0.9rem;
    color: var(--lx-text-muted);
    font-size: 0.85rem;
}

/* Facet pills — the product's X-ray facet row */
.wnl-facets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.wnl-facet {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--lx-border);
    background: #fff;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wnl-facet:hover {
    border-color: var(--lx-border-strong);
}

.wnl-facet--on {
    border-color: var(--lx-brand);
    background: rgba(var(--color-coral-base-rgb), 0.08);
    color: var(--lx-brand-strong);
}

.wnl-facet-n {
    font-family: var(--font-stack-mono);
    font-size: 0.7rem;
    padding: 0 5px;
    border-radius: 8px;
    background: var(--lx-surface-inset);
    color: var(--lx-text-muted);
}

.wnl-facet--on .wnl-facet-n {
    background: rgba(var(--color-coral-base-rgb), 0.15);
    color: var(--lx-brand-strong);
}

/* Statement list — operator chips mirror normative_cards.css */
.wnl-statements {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 2px;
}

/* The statements render through the PRODUCTION card renderer
   (normative_cards.js renderCard + normative_cards.css) inside this
   scroll viewport — only the embedding is styled here. */
.wnl-cards {
    /* the nc container's own margin/overflow fight the scroll viewport */
    margin: 0;
    overflow: visible;
}

/* Card summaries hold long statement names — let them wrap. */
.wnl-cards .ob-name {
    white-space: normal;
}

.wnl-seg {
    display: flex;
    gap: 0.55rem;
    margin: 0 0 0.55rem;
    border-radius: 6px;
    padding: 0.15rem 0.3rem;
}

.wnl-seg--active {
    background: rgba(var(--color-coral-base-rgb), 0.07);
    box-shadow: inset 2px 0 0 var(--lx-brand);
}

.wnl-seg-marker {
    flex: 0 0 auto;
    font-family: var(--font-stack-mono);
    font-size: 0.72rem;
    color: var(--lx-text-muted);
    padding-top: 2px;
}

.wnl-provision {
    background: var(--lx-surface-muted);
    border: 1px solid var(--lx-border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    max-height: 560px;
    overflow-y: auto;
    font-size: 0.84rem;
    line-height: 1.65;
}

.wnl-prov-h {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #212529;
}

.wnl-prov-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.wnl-prov-pill {
    padding: 0 7px;
    border-radius: 9px;
    background: #ffecee;
    border: 1px solid var(--color-coral-200);
    color: var(--lx-brand-strong);
    font-size: 0.68rem;
    font-weight: 700;
}

.wnl-prov-pill--mono {
    font-family: var(--font-stack-mono);
    background: #fff;
    border-color: var(--lx-border);
    color: var(--lx-text-muted);
    font-weight: 600;
}

.wnl-prov-note {
    font-size: 0.68rem;
    color: var(--lx-text-muted);
    font-family: var(--font-stack-mono);
}

/* ---- The injected REAL provision fragment (celex card HTML) ----
   The homepage doesn't load Bootstrap or celex.css, so scope minimal
   shims: hide the dead header buttons, shim the few utility classes the
   fragment uses, and give definition links the product's coral. */
.wnl-prov-text .celex-card {
    border: 0;
    background: none;
    margin: 0;
}

.wnl-prov-text .card-header {
    padding: 0 0 0.4rem;
    background: none;
    border: 0;
}

.wnl-prov-text .article-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

.wnl-prov-text .card-body {
    padding: 0;
}

.wnl-prov-text .card-header-btn,
.wnl-prov-text .logged-in-only {
    display: none;
}

.wnl-prov-text .d-flex { display: flex; }
.wnl-prov-text .d-inline-flex { display: inline-flex; }
.wnl-prov-text .d-block { display: block; }
.wnl-prov-text .justify-content-between { justify-content: space-between; }
.wnl-prov-text .align-items-start { align-items: flex-start; }
.wnl-prov-text .align-items-center { align-items: center; }
.wnl-prov-text .flex-nowrap { flex-wrap: nowrap; }
.wnl-prov-text .mb-0 { margin-bottom: 0; }

.wnl-prov-text .paragraph-container {
    margin-bottom: 0.55rem;
    gap: 0.55rem;
}

.wnl-prov-text .paragraph-prefix {
    flex: 0 0 auto;
    font-family: var(--font-stack-mono);
    font-size: 0.72rem;
    color: var(--lx-text-muted);
    padding-top: 2px;
}

.wnl-prov-text .paragraph-content {
    min-width: 0;
}

/* defined-term links — coral, no underline (celex.css .internal-link) */
.wnl-prov-text .internal-link,
.wnl-prov-text .definition {
    color: var(--lx-brand);
    text-decoration: none;
    border-bottom: 0;
}

.wnl-prov-text .related-links-grid {
    font-size: 0.72rem;
    color: var(--lx-text-muted);
    margin: 0.3rem 0 0.7rem;
}

.wnl-prov-text .related-links-grid a {
    color: var(--lx-brand-strong);
    text-decoration: none;
}

/* Provenance footer of the product panel */
.wnl-provenance {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
    font-size: 0.72rem;
    color: var(--lx-text-muted);
}

/* Caption under the duel */
.wnl-caption {
    max-width: 46em;
    margin: 1.5rem auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.6;
}

.wnl-caption strong {
    color: #fff;
}

/* ---------------------------------------------------------------- pricing */

.wnl-pricing {
    max-width: 560px;
    margin: 3rem auto 0;
    text-align: center;
    background: var(--lx-on-brand-sheet);
    border-radius: 16px;
    padding: 1.8rem 1.6rem 1.7rem;
    box-shadow: 0 12px 32px rgba(44, 0, 2, 0.18);
    position: relative;
    overflow: hidden;
}

.wnl-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lx-brand), var(--lx-brand-strong));
}

.wnl-price-line {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.3rem;
}

.wnl-price-line .wnl-price-zero {
    color: var(--lx-brand);
}

.wnl-price-sub {
    color: var(--lx-text-muted);
    font-size: 0.85rem;
    margin: 0 0 1.1rem;
}

.wnl-signup-btn {
    display: inline-block;
    padding: 0.65rem 2.2rem;
    border-radius: 999px;
    background: var(--lx-brand);
    color: #fff;
    font-family: var(--font-stack-mono);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wnl-signup-btn:hover {
    background: var(--lx-brand-strong);
    color: #fff;
    transform: translateY(-1px);
}

/* The conversion card's two actions, stacked and RANKED (#2093, #2282).

   A column, not a row. #2093 put them side by side at the same pill size, the
   same 0.95rem and the same font-weight: 700, 0.6rem apart — two equally
   weighted buttons ten pixels apart, which reads as two buttons competing
   rather than as a primary call to action and its quieter alternative. Nothing
   about it said which one to press. "Start free" gets the line; the other sits
   under it. The old `flex-wrap` existed so neither button was clipped on a
   narrow viewport; a column cannot clip, so it goes. */
.wnl-pricing-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* The home page's route to /pricing — deliberately NOT a button (#2282).

   Subordinate to "Start free" on every axis that carries rank at once: no
   fill, no border, no pill, a lighter weight, a step smaller, and the muted
   text colour rather than the brand one. It was an outlined pill of the same
   geometry, which is a weaker claim than it looks — an outline reads as a
   button, and a button beside a button reads as a choice rather than a
   fallback.

   Underlined, so it reads as a link without depending on colour: greyscale
   print and colour blindness both erase a colour-only affordance, the same
   reason #1796's provision badges state their category three times. Hover
   moves the colour only — no transform, so there is nothing for the
   reduced-motion block below to have to switch off.

   Both colours clear AA against this card, which is `--lx-on-brand-sheet`,
   effectively white: `--lx-text-muted` (#6c757d) is 4.7:1 at rest and
   `--lx-brand-strong` (#d60b27) is 5.2:1 on hover. NOT `--lx-brand` (#fd515b),
   which is 3.1:1 — below the 4.5:1 bar for text this size, and what the
   outlined pill this replaces was using for its resting label. A hover state
   that drops legibility is not a hover state. */
.wnl-plans-link {
    display: inline-block;
    color: var(--lx-text-muted);
    font-family: var(--font-stack-mono);
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease;
}

.wnl-plans-link:hover {
    color: var(--lx-brand-strong);
    text-decoration: underline;
}

.wnl-pricing .wnl-fineprint {
    color: var(--lx-text-muted);
    margin-top: 0.8rem;
}

/* ---------------------------------------------------------------- footer link */

.wnl-transparency-link {
    text-align: center;
    margin: 2rem auto 0;
    font-size: 0.92rem;
}

.wnl-transparency-link a {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.wnl-transparency-link a:hover {
    border-bottom-color: #fff;
    color: #fff;
}

/* ---------------------------------------------------------------- reveal */

.wnl-reveal {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wnl-reveal.visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .wnl-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .wnl-btn,
    .wnl-signup-btn {
        transition: none;
    }
}
