/* ============================================
   The Legendary Suite — page styles
   Layered on top of style.css (same type, nav, footer).
   ============================================ */

:root {
    --lg-orange: #c2410c;
    --lg-orange-mid: #ea580c;
    --lg-orange-light: #fb923c;
    --lg-orange-tint: #fff7ed;
    --lg-ink: #101828;
    --lg-muted: #475467;
    --lg-line: #eaecf0;

    --lg-erp: #c2410c;
    --lg-ams: #4f46e5;
    --lg-emr: #1e3a5f;

    --lg-accent: var(--lg-orange);
    --lg-accent-tint: rgba(194, 65, 12, 0.07);
}

body.lg-erp { --lg-accent: var(--lg-erp); --lg-accent-tint: rgba(194, 65, 12, 0.07); }
body.lg-ams { --lg-accent: var(--lg-ams); --lg-accent-tint: rgba(79, 70, 229, 0.07); }
body.lg-emr { --lg-accent: var(--lg-emr); --lg-accent-tint: rgba(30, 58, 95, 0.07); }

/* ---------- Wordmark ---------- */
.lg-mark {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lg-ink);
    white-space: nowrap;
}
.lg-mark b { color: var(--lg-orange); font-weight: 700; }
.lg-mark--erp b { color: var(--lg-erp); }
.lg-mark--ams b { color: var(--lg-ams); }
.lg-mark--emr b { color: var(--lg-emr); }

/* ---------- Section label, Legendary tone ---------- */
.lg-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--lg-accent);
    background: var(--lg-accent-tint);
    border: 1px solid color-mix(in srgb, var(--lg-accent) 22%, transparent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lg-btn {
    background: var(--lg-accent);
    color: #fff;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--lg-accent) 35%, transparent);
}
.lg-btn:hover {
    background: color-mix(in srgb, var(--lg-accent) 85%, #000);
    transform: translateY(-1px);
}
.btn-outline.lg-btn-outline:hover {
    box-shadow: inset 0 0 0 1.5px var(--lg-accent);
    color: var(--lg-accent);
    background: var(--lg-accent-tint);
}

/* ---------- Legendary top bar (replaces the AI-BI navbar on Legendary pages) ---------- */
.lg-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lg-line);
}
.lg-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.25rem;
}
.lg-topbar-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.lg-topbar-brand .lg-mark { font-size: 1.25rem; }
.lg-topbar-by {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #98a2b3;
    letter-spacing: 0;
    white-space: nowrap;
}
.lg-topbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.lg-topbar-links::-webkit-scrollbar { display: none; }
.lg-topbar-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lg-muted);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.lg-topbar-link:hover { color: var(--lg-ink); background: rgba(0,0,0,0.04); }
.lg-topbar-link.is-active { color: #fff; background: var(--lg-ink); }
.lg-topbar-cta { padding: 0.6rem 1.25rem; font-size: 0.875rem; white-space: nowrap; flex-shrink: 0; }

/* ---------- Sub navigation across the Legendary pages (legacy) ---------- */
.lg-subnav {
    position: sticky;
    top: 4.5rem;
    z-index: 40;
    margin-top: calc(3.5rem + 1.5rem);
    background: rgba(252, 252, 252, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--lg-line);
    border-bottom: 1px solid var(--lg-line);
}
.lg-subnav-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 3.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.lg-subnav-inner::-webkit-scrollbar { display: none; }
.lg-subnav-title { margin-right: 1rem; font-size: 0.9375rem; }
.lg-subnav a.lg-subnav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lg-muted);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.lg-subnav a.lg-subnav-link:hover { color: var(--lg-ink); background: rgba(0,0,0,0.04); }
.lg-subnav a.lg-subnav-link.is-active { color: #fff; background: var(--lg-ink); }
.lg-subnav-cta { margin-left: auto; padding-left: 1rem; }
.lg-subnav-cta .btn { padding: 0.5rem 1.1rem; font-size: 0.8125rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.lg-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    text-align: center;
    overflow: hidden;
}
.lg-hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto;
    height: 60rem;
    background:
        radial-gradient(38rem 22rem at 50% 30%, color-mix(in srgb, var(--lg-accent) 12%, transparent), transparent 70%),
        radial-gradient(30rem 18rem at 20% 60%, rgba(251, 146, 60, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.lg-hero .container { position: relative; z-index: 1; }
.lg-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.lg-hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.25rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: var(--lg-ink);
    max-width: 16ch;
}
.lg-hero h1 em {
    font-style: normal;
    color: var(--lg-accent);
}
.lg-hero-sub {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--lg-muted);
    max-width: 40rem;
}
.lg-hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.lg-hero-products {
    display: flex;
    gap: 0.75rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.0625rem;
    color: var(--lg-muted);
}
.lg-hero-products .dot { color: var(--lg-line); }

/* ---------- Browser frame for screenshots ---------- */
.lg-frame {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--lg-line);
    box-shadow: 0 30px 80px rgba(16, 24, 40, 0.12), 0 8px 24px rgba(16, 24, 40, 0.06);
    overflow: hidden;
}
.lg-frame-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    background: #f8f9fb;
    border-bottom: 1px solid var(--lg-line);
}
.lg-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e7ec; display: block; }
.lg-frame-url {
    margin-left: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #98a2b3;
    background: #fff;
    border: 1px solid var(--lg-line);
    border-radius: 6px;
    padding: 0.2rem 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lg-frame img { display: block; width: 100%; height: auto; }
.lg-frame-note {
    text-align: center;
    font-size: 0.8125rem;
    color: #98a2b3;
    margin-top: 0.9rem;
}
.lg-hero-shot { margin-top: 3.5rem; width: 100%; max-width: 1080px; }

/* ---------- Generic section ---------- */
.lg-section { padding: 6rem 0; }
.lg-section--tint { background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%); }
.lg-section--dark { background: var(--lg-ink); color: #fff; }
.lg-section--dark .lg-head h2, .lg-section--dark h3 { color: #fff; }
.lg-section--dark .lg-head p { color: #c4c9d4; }
.lg-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}
.lg-head h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--lg-ink);
    max-width: 22ch;
}
.lg-head p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--lg-muted);
    max-width: 40rem;
}
.lg-kicker {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lg-ink);
}
.lg-kicker span { color: var(--lg-accent); }

/* ---------- Cards ---------- */
.lg-grid { display: grid; gap: 1.5rem; }
.lg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lg-grid--5 { grid-template-columns: repeat(5, 1fr); }

.lg-card {
    background: #fff;
    border: 1px solid var(--lg-line);
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.lg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.lg-card h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; color: var(--lg-ink); }
.lg-card p { font-size: 0.975rem; line-height: 1.6; color: var(--lg-muted); }
.lg-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--lg-accent);
}
.lg-card-icon svg { width: 22px; height: 22px; }
.lg-num {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lg-accent);
}

/* Problem: two columns, crossed lists */
.lg-problem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.lg-problem .lg-card { padding: 2rem; }
.lg-xlist { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.5rem; }
.lg-xlist li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--lg-ink);
    font-size: 1rem;
    line-height: 1.5;
}
.lg-xlist li::before {
    content: "";
    flex: 0 0 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #fef3f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d92d20' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.lg-checklist { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.lg-checklist li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--lg-muted);
}
.lg-checklist li::before {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--lg-accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ---------- Product cards (suite page) ---------- */
.lg-product {
    position: relative;
    background: #fff;
    border: 1px solid var(--lg-line);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lg-product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--pc, var(--lg-orange));
}
.lg-product:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.lg-product--erp { --pc: var(--lg-erp); }
.lg-product--ams { --pc: var(--lg-ams); }
.lg-product--emr { --pc: var(--lg-emr); }
.lg-product .lg-mark { font-size: 1.75rem; }
.lg-product .lg-mark b { color: var(--pc); }
.lg-product-for {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pc);
    font-weight: 600;
}
.lg-product p { color: var(--lg-muted); line-height: 1.6; font-size: 1rem; }
.lg-product-thumb {
    margin-top: auto;
    border-radius: 10px;
    border: 1px solid var(--lg-line);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f4f4f5;
}
.lg-product-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.lg-product-more {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--pc);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- Split: text + screenshot ---------- */
.lg-split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
    align-items: center;
}
.lg-split + .lg-split { margin-top: 6rem; }
.lg-split--flip { grid-template-columns: 7fr 5fr; }
.lg-split--flip .lg-split-text { order: 2; }
.lg-split-text { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.lg-split-text h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--lg-ink);
}
.lg-split-text p { font-size: 1.0625rem; line-height: 1.65; color: var(--lg-muted); }

/* ---------- Feature bullets row (product pages) ---------- */
.lg-points {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.lg-point {
    border-top: 2px solid var(--lg-accent);
    padding-top: 1rem;
}
.lg-point h4 { font-size: 0.975rem; font-weight: 600; color: var(--lg-ink); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.lg-point p { font-size: 0.9rem; line-height: 1.55; color: var(--lg-muted); }

/* ---------- AI questions ---------- */
.lg-asks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lg-ask {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lg-ask-who {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lg-orange-light);
    font-weight: 600;
}
.lg-ask-q {
    font-size: 1.125rem;
    line-height: 1.45;
    color: #fff;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.lg-ask-q::before { content: "\201C"; color: var(--lg-orange-light); }
.lg-ask-q::after { content: "\201D"; color: var(--lg-orange-light); }
.lg-section--dark .lg-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
.lg-section--dark .lg-card h3 { color: #fff; }
.lg-section--dark .lg-card p { color: #c4c9d4; }
.lg-section--dark .lg-card:hover { box-shadow: none; border-color: rgba(255,255,255,0.22); }
.lg-section--dark .lg-label {
    color: var(--lg-orange-light);
    background: rgba(251,146,60,0.1);
    border-color: rgba(251,146,60,0.25);
}

/* ---------- Comparison table ---------- */
.lg-compare-wrap { overflow-x: auto; border-radius: 1.25rem; border: 1px solid var(--lg-line); background: #fff; }
.lg-compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.lg-compare th, .lg-compare td {
    text-align: left;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--lg-line);
    font-size: 0.975rem;
    line-height: 1.5;
    vertical-align: top;
}
.lg-compare tr:last-child td { border-bottom: none; }
.lg-compare thead th {
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lg-muted);
    background: #f9fafb;
}
.lg-compare thead th.is-us { color: var(--lg-accent); background: var(--lg-accent-tint); }
.lg-compare td:first-child { font-weight: 600; color: var(--lg-ink); width: 18%; }
.lg-compare td.is-them { color: #667085; }
.lg-compare td.is-us { color: var(--lg-ink); font-weight: 500; background: color-mix(in srgb, var(--lg-accent) 3%, #fff); }

/* ---------- Module chips ---------- */
.lg-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.lg-chip {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--lg-line);
    color: var(--lg-ink);
}

/* ---------- Steps / CTA ---------- */
.lg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.lg-step { position: relative; padding: 2rem; border-radius: 1.25rem; background: #fff; border: 1px solid var(--lg-line); }
.lg-step-n {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--lg-accent); color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.lg-step h3 { font-size: 1.125rem; font-weight: 600; color: var(--lg-ink); margin-bottom: 0.4rem; }
.lg-step p { color: var(--lg-muted); line-height: 1.6; }

.lg-cta {
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
    background:
        radial-gradient(40rem 20rem at 50% 0%, rgba(251,146,60,0.25), transparent 70%),
        var(--lg-ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.lg-cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; color: #fff; max-width: 20ch; }
.lg-cta p { color: #c4c9d4; font-size: 1.0625rem; line-height: 1.6; max-width: 36rem; }
.lg-cta .btn-outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.lg-cta .btn-outline:hover { color: #fff; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1.5px #fff; }
.lg-cta-contact { font-size: 0.9375rem; color: #98a2b3; }
.lg-cta-contact a { color: #fff; text-decoration: none; }
.lg-cta-contact a:hover { text-decoration: underline; }

/* ---------- Demo tour page ---------- */
.lg-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.3rem;
    border-radius: var(--radius-pill);
    background: #f2f4f7;
    border: 1px solid var(--lg-line);
}
.lg-tab {
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--lg-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lg-tab:hover { color: var(--lg-ink); }
.lg-tab[aria-selected="true"] { background: #fff; color: var(--lg-ink); box-shadow: 0 1px 3px rgba(16,24,40,0.1); }
.lg-tab b { font-weight: 700; }
.lg-tab--erp b { color: var(--lg-erp); }
.lg-tab--ams b { color: var(--lg-ams); }
.lg-tab--emr b { color: var(--lg-emr); }
.lg-tabs-wrap { display: flex; justify-content: center; margin-bottom: 3rem; position: sticky; top: 5rem; z-index: 30; }

.lg-tour-panel[hidden] { display: none; }
.lg-tour-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.lg-tour-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; color: var(--lg-ink); }
.lg-tour-intro p { color: var(--lg-muted); font-size: 1.0625rem; line-height: 1.6; max-width: 40rem; margin-top: 0.5rem; }
.lg-tour-intro .btn { flex-shrink: 0; }

.lg-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
.lg-shot { margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.lg-shot--wide { grid-column: 1 / -1; }
.lg-shot button {
    padding: 0;
    border: 1px solid var(--lg-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    box-shadow: 0 12px 40px rgba(16,24,40,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: 100%;
}
.lg-shot button:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(16,24,40,0.14); }
.lg-shot img { width: 100%; height: auto; display: block; }
.lg-shot figcaption { display: flex; gap: 0.85rem; align-items: baseline; }
.lg-shot-n {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lg-accent);
    flex-shrink: 0;
}
.lg-shot figcaption strong { display: block; color: var(--lg-ink); font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.lg-shot figcaption span { color: var(--lg-muted); font-size: 0.9375rem; line-height: 1.55; }
.lg-tour-panel[data-product="erp"] { --lg-accent: var(--lg-erp); --lg-accent-tint: rgba(194,65,12,0.07); }
.lg-tour-panel[data-product="ams"] { --lg-accent: var(--lg-ams); --lg-accent-tint: rgba(79,70,229,0.07); }
.lg-tour-panel[data-product="emr"] { --lg-accent: var(--lg-emr); --lg-accent-tint: rgba(30,58,95,0.07); }
.lg-disclaimer { text-align: center; color: #98a2b3; font-size: 0.875rem; margin-top: 3rem; }

/* Lightbox */
.lg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 12, 18, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 4.5rem;
}
.lg-lightbox.is-open { display: flex; }
.lg-lightbox figure { margin: 0; max-width: 1500px; width: 100%; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.lg-lightbox img { max-width: 100%; max-height: calc(100vh - 10rem); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lg-lightbox figcaption { color: #e4e7ec; text-align: center; font-size: 0.975rem; line-height: 1.5; max-width: 48rem; }
.lg-lightbox figcaption strong { color: #fff; display: block; }
.lg-lb-btn {
    position: absolute;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
}
.lg-lb-btn:hover { background: rgba(255,255,255,0.2); }
.lg-lb-close { top: 1rem; right: 1rem; }
.lg-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lg-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Homepage teaser ---------- */
.lg-teaser {
    border-radius: 2rem;
    border: 1px solid var(--lg-line);
    background:
        radial-gradient(36rem 18rem at 85% 0%, rgba(251,146,60,0.14), transparent 70%),
        #fff;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.lg-teaser h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; color: var(--lg-ink); margin: 1rem 0; }
.lg-teaser p { color: var(--lg-muted); font-size: 1.0625rem; line-height: 1.6; }
.lg-teaser-list { display: flex; flex-direction: column; gap: 0.9rem; }
.lg-teaser-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--lg-line);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.lg-teaser-item:hover { border-color: var(--lg-orange-light); transform: translateX(3px); }
.lg-teaser-item .lg-mark { font-size: 1.125rem; }
.lg-teaser-item span:last-child { font-size: 0.9rem; color: var(--lg-muted); }
.lg-teaser .hero-cta { justify-content: flex-start; margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .lg-grid--3, .lg-grid--5, .lg-asks, .lg-steps { grid-template-columns: 1fr 1fr; }
    .lg-points { grid-template-columns: repeat(2, 1fr); }
    .lg-split, .lg-split--flip { grid-template-columns: 1fr; gap: 2rem; }
    .lg-split--flip .lg-split-text { order: 0; }
    .lg-teaser { grid-template-columns: 1fr; padding: 2.5rem; }
    .lg-topbar-inner { gap: 1rem; }
    .lg-topbar-link { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
}
@media (max-width: 767px) {
    .lg-section { padding: 4rem 0; }
    .lg-grid--3, .lg-grid--2, .lg-grid--5, .lg-asks, .lg-steps, .lg-problem, .lg-shots { grid-template-columns: 1fr; }
    .lg-points { grid-template-columns: 1fr; }
    .lg-hero { padding-top: 3rem; }
    .lg-topbar-inner { flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.6rem; padding-bottom: 0.35rem; min-height: 0; }
    .lg-topbar-brand { flex: 1; }
    .lg-topbar-brand .lg-mark { font-size: 1.1rem; }
    .lg-topbar-cta { padding: 0.5rem 1rem; font-size: 0.8125rem; }
    .lg-topbar-links { order: 3; width: 100%; margin: 0 -0.5rem; }
    .lg-tabs-wrap { top: 6.75rem; }
    .lg-tab { padding: 0.55rem 0.9rem; font-size: 0.875rem; }
    .lg-lightbox { padding: 3.5rem 0.75rem; }
    .lg-lb-prev, .lg-lb-next { top: auto; bottom: 1rem; transform: none; }
    .lg-teaser { padding: 1.75rem; }
    .lg-hero-products .dot { display: none; }
    /* Comparison table becomes stacked cards */
    .lg-compare-wrap { overflow: visible; border: none; background: transparent; }
    .lg-compare { min-width: 0; }
    .lg-compare thead { display: none; }
    .lg-compare, .lg-compare tbody, .lg-compare tr, .lg-compare td { display: block; width: 100%; }
    .lg-compare tr {
        background: #fff;
        border: 1px solid var(--lg-line);
        border-radius: 1rem;
        overflow: hidden;
        margin-bottom: 0.9rem;
    }
    .lg-compare td { padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--lg-line); }
    .lg-compare td:first-child { width: 100%; font-size: 1.0625rem; padding-top: 1rem; }
    .lg-compare tr td:last-child { border-bottom: none; }
    .lg-compare td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 0.2rem;
        color: #98a2b3;
    }
    .lg-compare td.is-us[data-label]::before { color: var(--lg-accent); }
    .lg-cta { padding: 3rem 1.25rem; border-radius: 1.5rem; }
}

/* ---------- Meeting confirmation ---------- */
.lg-confirm-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--lg-orange);
    box-shadow: 0 10px 30px rgba(194, 65, 12, 0.3);
}
.lg-confirm-check svg { width: 30px; height: 30px; }
.lg-confirm-when {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--lg-ink);
    background: #fff;
    border: 1px solid var(--lg-line);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.25rem;
}
.lg-confirm-when[hidden] { display: none; }

/* Sticky top bar: style.css sets overflow-x:hidden on html/body, which turns body
   into a scroll container and breaks position:sticky. clip prevents sideways
   scroll the same way without creating a scroll container. */
html:has(.lg-topbar),
html:has(.lg-topbar) body { overflow-x: clip; }

.lg-disclaimer a { color: var(--lg-muted); }
.lg-disclaimer a:hover { color: var(--lg-ink); }

@media (max-width: 1100px) {
    .lg-topbar-link .lg-pre { display: none; }
}
@media (max-width: 1100px) and (min-width: 768px) {
    .lg-topbar-by { display: none; }
}
