/* ═══════════════════════════════════════════════════════════════════════════
   Landing pages (lp-*) — /{lang}/features/{slug} and /{lang}/for/{slug}
   ───────────────────────────────────────────────────────────────────────────
   The landing templates were ported into SLAtech.Web from the verticals, but
   their stylesheet was not: every vertical defines the lp-* system in its own
   css (med.css, business.css, …) while www loaded only design-tokens / base /
   layout / legal. The markup rendered with 37 undefined class names, so the
   pages came out as bare HTML — numbered breadcrumbs, stacked stat text, plain
   text links instead of buttons.

   This is the same component set, structure for structure, with the colours
   bound to www's own tokens rather than a vertical palette. www has no radius
   or shadow tokens, so those follow the literals already used in base.css
   (6 / 8 / 12px).

   RTL rules are not optional here: www serves Hebrew from the same templates.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Bootstrap classes the templates use but www does not load ──────────────
   The landing markup came from the verticals, which ship Bootstrap; www does
   not. Only the handful of classes these templates actually reference are
   defined here — not a Bootstrap subset for general use. Without the first
   block the breadcrumb renders as a numbered list.
   ──────────────────────────────────────────────────────────────────────── */
.lp-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}
.lp-breadcrumb .breadcrumb-item { display: flex; align-items: center; }
.lp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 .5rem;
    color: var(--text-on-light-muted);
}
.lp-breadcrumb .breadcrumb.mb-0 { margin-bottom: 0; }
.lp-breadcrumb .py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.text-decoration-none { text-decoration: none; }

/* On <aside class="col-lg-3 d-none d-lg-block"> — the "all features" sidebar is
   desktop-only. Undefined, both are inert and the sidebar also shows on phones,
   pushing the article down a full screen. */
.d-none { display: none; }
@media (min-width: 992px) {
    .d-lg-block { display: block; }
}

/* ── Breadcrumb bar ─────────────────────────────────────────────────────── */
.lp-breadcrumb {
    background: var(--bg-light-secondary);
    border-bottom: 1px solid var(--border-on-light-default);
    font-size: .82rem;
    padding: var(--space-3) 0;
}
.lp-breadcrumb .breadcrumb {
    margin: 0;
    flex-wrap: wrap;
}
.lp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-on-light-muted); }
.lp-breadcrumb a { color: var(--accent-green); text-decoration: none; }
.lp-breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.lp-hero {
    background: linear-gradient(135deg,
        var(--bg-dark-primary) 0%,
        var(--bg-dark-secondary) 60%,
        rgba(4, 120, 87, .18) 100%);
    color: var(--text-on-dark-primary);
    padding: 72px 0 56px;
}
.lp-eyebrow {
    font-size: .75rem;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent-teal);
    margin-bottom: 14px;
}
.lp-h1 {
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-on-dark-primary);
    margin-bottom: 18px;
    letter-spacing: -.02em;
}
.lp-subtitle {
    font-size: 1rem;
    color: var(--text-on-dark-secondary);
    line-height: var(--leading-relaxed);
    max-width: 520px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-lp-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-green);
    color: #fff !important;
    font-weight: var(--weight-bold);
    font-size: .92rem;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none !important;
    border: none;
    transition: background .2s, transform .18s;
}
.btn-lp-primary:hover { background: var(--accent-green-hover); transform: translateY(-2px); }
.btn-lp-primary.btn-lp-lg { font-size: 1rem; padding: 15px 34px; }

.btn-lp-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: rgba(255, 255, 255, .82) !important;
    font-weight: var(--weight-semibold);
    font-size: .92rem;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, .28);
    text-decoration: none !important;
    transition: background .18s, border-color .18s, color .18s;
}
.btn-lp-outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .55);
    color: #fff !important;
}

/* ── Hero stats ─────────────────────────────────────────────────────────── */
.lp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-stat-item {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 18px 16px;
    text-align: center;
}
.lp-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-on-dark-primary);
    line-height: 1.1;
}
.lp-stat-label {
    font-size: .76rem;
    color: var(--text-on-dark-muted);
    margin-top: 4px;
}

/* ── Body + sidebar ─────────────────────────────────────────────────────── */
.lp-body { padding: 56px 0; background: var(--bg-light-primary); }

.lp-sidebar {
    position: sticky;
    top: 110px;
    background: var(--bg-light-secondary);
    border: 1px solid var(--border-on-light-default);
    border-radius: 8px;
    padding: 18px;
}
.lp-sidebar-title {
    font-size: .7rem;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-on-light-muted);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-on-light-default);
}
.lp-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.lp-sidebar-link {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: .83rem;
    color: var(--text-on-light-primary);
    text-decoration: none;
    transition: background .14s, color .14s;
    line-height: 1.4;
}
.lp-sidebar-link:hover {
    background: var(--accent-green-subtle);
    color: var(--accent-green-hover);
}
.lp-sidebar-link.active {
    background: var(--accent-green-subtle);
    color: var(--accent-green-hover);
    font-weight: var(--weight-semibold);
    border-left: 3px solid var(--accent-green);
    padding-left: 7px;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.lp-section { margin-bottom: 48px; }
.lp-section-light {
    background: var(--bg-light-secondary);
    border-radius: 12px;
    padding: 32px 28px;
}
.lp-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-on-light-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-on-light-default);
}

/* ── Pain cards ─────────────────────────────────────────────────────────── */
.lp-pain-card {
    background: var(--bg-light-primary);
    border: 1px solid var(--border-on-light-default);
    border-left: 3px solid var(--bg-dark-secondary);
    border-radius: 8px;
    padding: 22px 18px;
    height: 100%;
    transition: box-shadow .2s;
}
.lp-pain-card:hover { box-shadow: 0 6px 20px rgba(10, 14, 26, .09); }
.lp-pain-icon { font-size: 1.8rem; margin-bottom: 10px; }
.lp-pain-card h3 {
    font-size: .92rem;
    font-weight: var(--weight-bold);
    margin-bottom: 6px;
    color: var(--text-on-light-primary);
}
.lp-pain-card p {
    font-size: .84rem;
    color: var(--text-on-light-muted);
    margin: 0;
    line-height: 1.65;
}

/* ── Feature cards ──────────────────────────────────────────────────────── */
.lp-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lp-feat-card {
    background: var(--bg-light-primary);
    border: 1px solid var(--border-on-light-default);
    border-radius: 8px;
    padding: 22px;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.lp-feat-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, .11);
}
.lp-feat-icon { font-size: 1.7rem; margin-bottom: 10px; }
.lp-feat-card h3 {
    font-size: .92rem;
    font-weight: var(--weight-bold);
    margin-bottom: 6px;
    color: var(--text-on-light-primary);
}
.lp-feat-card p {
    font-size: .84rem;
    color: var(--text-on-light-muted);
    margin: 0;
    line-height: 1.65;
}

/* ── FAQ accordion ──────────────────────────────────────────────────────── */
.lp-accordion-item {
    border: 1px solid var(--border-on-light-default) !important;
    border-radius: 6px !important;
    margin-bottom: 6px;
    overflow: hidden;
}
.lp-accordion-item .accordion-button {
    font-weight: var(--weight-semibold);
    font-size: .9rem;
    color: var(--text-on-light-primary);
    background: var(--bg-light-primary);
}
.lp-accordion-item .accordion-button:not(.collapsed) {
    color: var(--accent-green-hover);
    background: var(--accent-green-subtle);
    box-shadow: none;
}
.lp-accordion-item .accordion-body {
    font-size: .86rem;
    color: var(--text-on-light-muted);
    line-height: var(--leading-relaxed);
}

/* ── Related links ──────────────────────────────────────────────────────── */
.lp-related-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--bg-light-primary);
    border: 1px solid var(--border-on-light-default);
    border-radius: 8px;
    padding: 14px 18px;
    transition: border-color .18s, transform .18s;
    text-decoration: none;
}
.lp-related-card:hover { border-color: var(--accent-green); transform: translateY(-2px); }
.lp-related-type {
    font-size: .7rem;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-green-hover);
}
.lp-related-title {
    font-size: .88rem;
    font-weight: var(--weight-semibold);
    color: var(--text-on-light-primary);
}
.lp-related-arrow { font-size: .82rem; color: var(--accent-green); }

/* ── Closing CTA ────────────────────────────────────────────────────────── */
.lp-cta {
    background: linear-gradient(135deg, var(--bg-dark-primary) 0%, var(--bg-dark-secondary) 100%);
    padding: 72px 0;
    color: var(--text-on-dark-primary);
}
.lp-cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--text-on-dark-primary);
    margin-bottom: 14px;
}
.lp-cta-sub {
    font-size: .92rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 30px;
}

/* ── RTL (Hebrew) ───────────────────────────────────────────────────────── */
[dir="rtl"] .lp-h1,
[dir="rtl"] .lp-subtitle { text-align: right; }
[dir="rtl"] .lp-pain-card {
    border-left: 1px solid var(--border-on-light-default);
    border-right: 3px solid var(--bg-dark-secondary);
}
[dir="rtl"] .lp-sidebar-link.active {
    border-left: none;
    border-right: 3px solid var(--accent-green);
    padding-left: 10px;
    padding-right: 7px;
}
[dir="rtl"] .lp-eyebrow { letter-spacing: 0; }
[dir="rtl"] .lp-related-arrow { transform: scaleX(-1); }
[dir="rtl"] .lp-feat-card,
[dir="rtl"] .lp-pain-card { text-align: right; }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .lp-hero { padding: 44px 0 36px; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-stats-grid { grid-template-columns: 1fr 1fr; }
    .lp-section-light { padding: 22px 14px; }
    .lp-cta { padding: 44px 0; }
    .lp-sidebar { position: static; }
}
