/* ==========================================================================
   Efisia — Lara product pages (overview, docs, legal, purchase).
   ========================================================================== */

.lara-shell {
    --accent: var(--cyan);
    --accent-glow: var(--cyan-glow);
    padding-top: 28px;
    padding-bottom: 48px;
}

.lara-subnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 44px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    scrollbar-width: none;
}

.lara-subnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 10px;
    margin-right: 4px;
    border-right: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.lara-subnav a {
    padding: 9px 14px;
    border-radius: 11px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
}

.lara-subnav a:hover { color: var(--text); background: var(--surface-2); }

.lara-subnav a.active {
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #7c3aed);
}

.lara-doc { max-width: 980px; }

/* Legacy pages wrap their content in Bootstrap's .container; the shell already handles width. */
.lara-doc .container { max-width: none; margin: 0; padding: 0; }

.lara-doc h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.lara-doc h2 { font-size: 1.55rem; margin-top: 2.2em; }
.lara-doc h3 { font-size: 1.15rem; }
.lara-doc .meta, .lara-doc .muted { color: var(--text-muted); }
.lara-doc ul, .lara-doc ol { padding-left: 1.3em; }
.lara-doc li { margin-bottom: 0.35em; }

.lara-hero { padding-bottom: 8px; }
.lara-hero .hero-cta { margin-bottom: 8px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0 !important;
    list-style: none;
}

.feature-grid .panel { margin: 0; }
.feature-grid p { margin: 0; color: var(--text-muted); }

.doc-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.lara-doc .checklist { padding-left: 0; }

.note {
    margin-top: 12px;
    padding: 14px 18px;
    border-left: 4px solid var(--amber);
    border-radius: 10px;
    background: color-mix(in srgb, var(--amber) 10%, transparent);
}

@media (max-width: 720px) {
    .doc-columns { grid-template-columns: 1fr; gap: 0; }
}

/* Price tables (ProductPriceTables): the published list prices from the Efisia Portal. */
.price-basis { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.price-table-wrap { overflow-x: auto; margin: 12px 0 8px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; border-bottom-color: var(--border-strong); }
.price-table tbody th { font-weight: 600; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table s { color: var(--text-muted); }
.price-name { margin-right: 6px; }
.price-desc, .price-note, .price-unit { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }
.price-table .num .price-note { white-space: normal; max-width: 260px; margin-left: auto; }
.price-includes { margin: 0; padding-left: 1.1em; }
.price-includes li { margin-bottom: 0.15em; }
.price-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--text);
}
.price-badge .icon { width: 0.9em; height: 0.9em; }
.price-badge--save { margin-top: 4px; background: color-mix(in srgb, var(--green) 14%, transparent); }

@media (max-width: 720px) {
    .price-table th, .price-table td { padding: 10px 6px; }
    .price-table .num .price-note { max-width: 160px; }
}
