/* Inventory guide page (inventory.html) — self-contained; no Tailwind rebuild needed */

:root {
    --inv-green: #008b2c;
    --inv-green-2: #00a632;
    --inv-green-700: #006b22;
    --inv-green-900: #06351a;
    --inv-green-50: #eef8f1;
    --inv-green-100: #d8efe0;
    --inv-gold: #F2CD00;
    --inv-gold-700: #8a6d00;
    --inv-gold-50: #fff9db;
    --inv-red: #c2410c;
    --inv-red-50: #fff1ea;
    --inv-blue: #1d64c8;
    --inv-blue-50: #eaf2fd;
    --inv-ink: #172026;
    --inv-ink-2: #34424c;
    --inv-muted: #5b6770;
    --inv-line: #e3eae6;
    --inv-bg: #f5f8f6;
    --inv-card: #ffffff;
    --inv-radius: 20px;
    --inv-radius-sm: 12px;
    --inv-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
    --inv-shadow-lg: 0 24px 48px -20px rgba(16, 24, 40, 0.25);
    --inv-header-h: 61px;
    --inv-guidenav-h: 56px;
}

.inv-page {
    background: #ffffff;
    color: var(--inv-ink);
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
}
.inv-page section[id] { scroll-margin-top: calc(var(--inv-header-h) + var(--inv-guidenav-h) + 12px); }
/* Zero-specificity resets so component classes below always win */
:where(.inv-page) :where(h1, h2, h3, h4) { margin: 0; line-height: 1.3; color: inherit; }
:where(.inv-page) :where(p) { margin: 0; }
:where(.inv-page main) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.inv-page main) :where(img) { max-width: 100%; display: block; }
.inv-page button { font-family: inherit; }
.inv-num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Sprite icons; contexts below override the size */
.i { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
[dir="ltr"] .inv-workflow i { display: inline-block; transform: scaleX(-1); }

.inv-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .inv-container { padding: 0 32px; } }

.inv-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Focus */
.inv-page a:focus-visible,
.inv-page button:focus-visible,
.inv-page input:focus-visible,
.inv-page select:focus-visible,
.inv-page summary:focus-visible {
    outline: 3px solid rgba(0, 139, 44, 0.45);
    outline-offset: 2px;
}

/* ---------- Typography helpers ---------- */
.inv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--inv-green);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}
.inv-eyebrow::before {
    content: "";
    width: 18px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--inv-green), var(--inv-gold));
}
.inv-h2 { font-size: 28px; font-weight: 900; color: var(--inv-ink); }
@media (min-width: 768px) { .inv-h2 { font-size: 36px; } }
.inv-lead { font-size: 17px; color: var(--inv-muted); margin-top: 12px; max-width: 720px; }
.inv-section-head { margin-bottom: 36px; }
.inv-section-head--center { text-align: center; }
.inv-section-head--center .inv-lead { margin-inline: auto; }

/* ---------- Badges ---------- */
.inv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}
.inv-badge svg { width: 14px; height: 14px; flex: 0 0 auto; }
.inv-badge--live { background: var(--inv-green-50); color: var(--inv-green-700); border: 1px solid var(--inv-green-100); }
.inv-badge--concept { background: var(--inv-gold-50); color: var(--inv-gold-700); border: 1px solid #f4e3a0; }
.inv-badge--sample { background: #f1f3f5; color: var(--inv-ink-2); border: 1px solid #e2e6ea; }
.inv-badge--dark { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }

/* ---------- Buttons ---------- */
.inv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.inv-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.inv-btn--primary { background: linear-gradient(135deg, var(--inv-green), var(--inv-green-2)); color: #fff; box-shadow: 0 10px 22px -10px rgba(0, 139, 44, 0.7); }
.inv-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(0, 139, 44, 0.8); }
.inv-btn--ghost-light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.inv-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.2); }
.inv-btn--outline { background: #fff; color: var(--inv-ink); border-color: var(--inv-line); }
.inv-btn--outline:hover { border-color: var(--inv-green); color: var(--inv-green); }
.inv-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.inv-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
[dir="rtl"] .inv-btn .inv-flip { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.inv-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: 130px 0 140px;
    color: #fff;
    overflow: hidden;
    background: var(--inv-green-900);
}
.inv-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.inv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 20, 12, 0.35) 0%, rgba(6, 20, 12, 0.2) 40%, rgba(6, 20, 12, 0.75) 100%),
        linear-gradient(90deg, rgba(4, 40, 18, 0.15) 0%, rgba(4, 40, 18, 0.88) 70%);
}
[dir="ltr"] .inv-hero::after {
    background:
        linear-gradient(180deg, rgba(6, 20, 12, 0.35) 0%, rgba(6, 20, 12, 0.2) 40%, rgba(6, 20, 12, 0.75) 100%),
        linear-gradient(270deg, rgba(4, 40, 18, 0.15) 0%, rgba(4, 40, 18, 0.88) 70%);
}
.inv-hero-inner { position: relative; z-index: 1; width: 100%; }
.inv-hero-content { max-width: 680px; }
.inv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-bottom: 18px; }
.inv-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.inv-crumbs a:hover { color: #fff; text-decoration: underline; }
.inv-hero-kicker { display: block; font-size: 14px; font-weight: 800; color: var(--inv-gold); margin-bottom: 12px; }
.inv-hero h1 { font-size: 36px; font-weight: 900; line-height: 1.2; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
@media (min-width: 768px) { .inv-hero h1 { font-size: 52px; } }
.inv-hero-sub { margin-top: 18px; font-size: 17px; color: rgba(255, 255, 255, 0.88); max-width: 620px; }
@media (min-width: 768px) { .inv-hero-sub { font-size: 19px; } }
.inv-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.inv-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.inv-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.inv-hero-meta svg { width: 16px; height: 16px; color: var(--inv-gold); }

/* Benefit cards overlap the hero */
.inv-benefits-wrap { position: relative; z-index: 2; margin-top: -84px; }
.inv-benefits { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .inv-benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .inv-benefits { grid-template-columns: repeat(4, 1fr); } }
.inv-benefit {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--inv-line);
    border-radius: var(--inv-radius);
    box-shadow: var(--inv-shadow-lg);
}
.inv-icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--inv-green-50);
    color: var(--inv-green);
}
.inv-icon svg { width: 22px; height: 22px; }
.inv-icon--gold { background: var(--inv-gold-50); color: var(--inv-gold-700); }
.inv-benefit h2 { font-size: 16px; font-weight: 800; }
.inv-benefit p { font-size: 13.5px; color: var(--inv-muted); margin-top: 4px; line-height: 1.6; }

/* ---------- Legend ---------- */
.inv-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 28px;
    padding: 14px 18px;
    border-radius: var(--inv-radius-sm);
    background: var(--inv-bg);
    border: 1px solid var(--inv-line);
    font-size: 13px;
    color: var(--inv-muted);
}
.inv-legend strong { color: var(--inv-ink); font-weight: 800; }
.inv-legend-item { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Sticky guide nav ---------- */
.inv-guidenav {
    position: sticky;
    top: var(--inv-header-h);
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--inv-line);
    transition: top 0.35s ease;
    margin-top: 40px;
}
body.hdr-hidden .inv-guidenav { top: 0; }
.inv-guidenav-track {
    display: flex;
    gap: 6px;
    height: var(--inv-guidenav-h);
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.inv-guidenav-track::-webkit-scrollbar { display: none; }
.inv-guidenav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--inv-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.inv-guidenav a:hover { color: var(--inv-ink); background: var(--inv-bg); }
.inv-guidenav a.is-active { background: var(--inv-green); color: #fff; }
.inv-guidenav-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 999px;
    font-size: 11px; font-weight: 800;
    background: var(--inv-green-50); color: var(--inv-green);
}
.inv-guidenav a.is-active .inv-guidenav-num { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- Sections ---------- */
.inv-section { padding: 72px 0; }
@media (min-width: 768px) { .inv-section { padding: 96px 0; } }
.inv-section--tint { background: var(--inv-bg); }

/* ---------- Lifecycle ---------- */
.inv-cycle-wrap { position: relative; }
.inv-cycle { position: relative; display: flex; flex-direction: column; gap: 0; }
.inv-cycle-item { position: relative; }
.inv-cycle-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: start;
    color: var(--inv-ink);
}
.inv-cycle-node {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid var(--inv-line);
    color: var(--inv-green);
    box-shadow: var(--inv-shadow);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.inv-cycle-node svg { width: 24px; height: 24px; }
.inv-cycle-step { font-size: 11px; font-weight: 800; color: var(--inv-muted); display: block; }
.inv-cycle-label { font-size: 15px; font-weight: 800; line-height: 1.35; display: block; }
.inv-cycle-btn:hover .inv-cycle-node { border-color: var(--inv-green); transform: translateY(-2px); }
.inv-cycle-item.is-active .inv-cycle-node {
    background: linear-gradient(135deg, var(--inv-green), var(--inv-green-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px -10px rgba(0, 139, 44, 0.7);
}
.inv-cycle-item.is-active .inv-cycle-label { color: var(--inv-green-700); }

/* Mobile/tablet: vertical stepper with a connector line */
.inv-cycle-item::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    inset-inline-start: 25px;
    width: 2px;
    background: linear-gradient(var(--inv-green-100), var(--inv-green-100));
}
.inv-cycle-item:first-child::before { top: 50%; }
.inv-cycle-item:last-child::before { bottom: 50%; }
.inv-cycle-loop-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: var(--inv-radius-sm);
    background: var(--inv-gold-50);
    color: var(--inv-gold-700);
    font-size: 13px;
    font-weight: 700;
}
.inv-cycle-loop-mobile svg { width: 18px; height: 18px; flex: 0 0 auto; }
.inv-cycle-loop { display: none; }

.inv-cycle-panel {
    position: relative;
    z-index: 1;
    margin: 6px 0 12px;
    padding: 20px;
    border-radius: var(--inv-radius);
    background: #fff;
    border: 1px solid var(--inv-line);
    box-shadow: var(--inv-shadow);
    animation: invFadeUp 0.35s ease both;
}
.inv-cycle-panel h3 { font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-cycle-panel p { color: var(--inv-muted); margin-top: 8px; font-size: 15px; }
.inv-cycle-panel ul { margin-top: 12px; display: grid; gap: 8px; }
.inv-cycle-panel li { display: flex; gap: 8px; font-size: 14px; color: var(--inv-ink-2); }
.inv-cycle-panel li::before {
    content: "";
    flex: 0 0 auto;
    width: 7px; height: 7px; margin-top: 9px; border-radius: 999px;
    background: var(--inv-green);
}
.inv-cycle-panel .inv-btn { margin-top: 16px; }

@media (min-width: 1024px) {
    .inv-cycle {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }
    .inv-cycle-item { flex: 1 1 0; min-width: 0; }
    .inv-cycle-item::before {
        top: 26px; bottom: auto;
        inset-inline-start: 50%;
        width: calc(100% + 8px);
        height: 2px;
    }
    .inv-cycle-item:first-child::before { top: 26px; }
    .inv-cycle-item:last-child::before { display: none; }
    /* Arrowhead on each connector */
    .inv-cycle-item::after {
        content: "";
        position: absolute;
        top: 21px;
        inset-inline-start: calc(100% - 4px);
        width: 10px; height: 10px;
        border-top: 2px solid var(--inv-green-100);
        border-inline-end: 2px solid var(--inv-green-100);
        transform: rotate(45deg);
    }
    [dir="rtl"] .inv-cycle-item::after { transform: rotate(-45deg); }
    .inv-cycle-item:last-child::after { display: none; }
    .inv-cycle-btn {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 0 4px;
    }
    .inv-cycle-label { font-size: 13.5px; }
    .inv-cycle-loop-mobile { display: none; }
    .inv-cycle-loop {
        display: block;
        position: relative;
        height: 58px;
        margin-top: 6px;
    }
    .inv-cycle-loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    [dir="ltr"] .inv-cycle-loop svg { transform: scaleX(-1); }
    .inv-cycle-loop-label {
        position: absolute;
        left: 50%;
        bottom: -4px;
        transform: translateX(-50%);
        padding: 2px 12px;
        border-radius: 999px;
        background: var(--inv-gold-50);
        color: var(--inv-gold-700);
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }
    .inv-cycle-panel { margin-top: 18px; }
}

/* ---------- Step sections ---------- */
.inv-step-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.inv-step-num {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--inv-green), var(--inv-green-2));
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 24px -12px rgba(0, 139, 44, 0.8);
}
.inv-step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.inv-step-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) {
    .inv-step-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .inv-step--flip .inv-step-media { order: -1; }
}
.inv-subhead { font-size: 15px; font-weight: 900; color: var(--inv-ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.inv-subhead svg { width: 18px; height: 18px; color: var(--inv-green); }
.inv-why { font-size: 16px; color: var(--inv-ink-2); margin-bottom: 22px; }
.inv-checklist { display: grid; gap: 10px; }
.inv-checklist li { display: flex; gap: 10px; font-size: 15px; color: var(--inv-ink-2); }
.inv-checklist li svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--inv-green); }

/* Media */
.inv-media {
    position: relative;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--inv-green-50);
    box-shadow: var(--inv-shadow-lg);
    aspect-ratio: 4 / 3;
}
.inv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.inv-media:hover img { transform: scale(1.03); }
.inv-media figcaption {
    position: absolute;
    inset-inline: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--inv-ink-2);
}
.inv-media--screen { aspect-ratio: auto; background: #fff; border: 1px solid var(--inv-line); }
.inv-media--screen img { height: auto; }
.inv-media--screen figcaption { position: static; background: var(--inv-bg); border-radius: 0; border-top: 1px solid var(--inv-line); }
.inv-media--diagram { aspect-ratio: auto; background: #fff; border: 1px solid var(--inv-line); padding: 20px; }
.inv-media--diagram svg { width: 100%; height: auto; display: block; }

/* Example + smart solution row */
.inv-pair { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 900px) { .inv-pair { grid-template-columns: 1fr 1fr; } }
.inv-example {
    position: relative;
    padding: 22px;
    border-radius: var(--inv-radius);
    background: var(--inv-gold-50);
    border: 1px solid #f3e4a6;
}
.inv-example-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: var(--inv-gold-700); margin-bottom: 8px; }
.inv-example-label svg { width: 18px; height: 18px; }
.inv-example p { font-size: 15px; color: var(--inv-ink-2); }
.inv-example p + p { margin-top: 8px; }

.inv-smart {
    position: relative;
    padding: 22px;
    border-radius: var(--inv-radius);
    color: #e9f6ee;
    background:
        radial-gradient(400px 200px at 100% 0%, rgba(242, 205, 0, 0.16), transparent 60%),
        linear-gradient(135deg, #0b3d1f 0%, #06351a 60%, #0d2a1c 100%);
    overflow: hidden;
}
.inv-smart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.inv-smart-title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; color: #fff; }
.inv-smart-title svg { width: 20px; height: 20px; color: var(--inv-gold); }
.inv-smart p { font-size: 14.5px; color: rgba(233, 246, 238, 0.85); }
.inv-smart ul { margin-top: 12px; display: grid; gap: 8px; }
.inv-smart li { display: flex; gap: 8px; font-size: 14px; color: rgba(233, 246, 238, 0.9); }
.inv-smart li::before { content: "✦"; color: var(--inv-gold); flex: 0 0 auto; }
.inv-smart .inv-alert p { color: inherit; margin-top: 4px; }
.inv-smart-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: rgba(233, 246, 238, 0.7); }

/* ---------- Demo shell ---------- */
.inv-demo {
    margin-top: 32px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--inv-line);
    box-shadow: var(--inv-shadow);
    overflow: hidden;
}
.inv-demo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    background: var(--inv-bg);
    border-bottom: 1px solid var(--inv-line);
}
.inv-demo-title { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 900; }
.inv-demo-title svg { width: 20px; height: 20px; color: var(--inv-green); }
.inv-demo-body { padding: 20px; }
@media (min-width: 768px) { .inv-demo-body { padding: 24px; } }
.inv-demo-foot { padding: 12px 20px; border-top: 1px solid var(--inv-line); font-size: 12.5px; color: var(--inv-muted); background: #fcfdfc; }
.inv-noscript { padding: 20px; color: var(--inv-muted); font-size: 14px; }

/* Segmented control */
.inv-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-seg button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--inv-line);
    background: #fff;
    color: var(--inv-ink-2);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.inv-seg button svg { width: 18px; height: 18px; color: var(--inv-green); }
.inv-seg button:hover { border-color: var(--inv-green); }
.inv-seg button[aria-pressed="true"] { background: var(--inv-green); border-color: var(--inv-green); color: #fff; }
.inv-seg button[aria-pressed="true"] svg { color: #fff; }

/* Chips */
.inv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--inv-bg); border: 1px solid var(--inv-line);
    font-size: 13px; font-weight: 700; color: var(--inv-ink-2);
}

/* Layout helpers inside demos */
.inv-cols { display: grid; gap: 20px; }
@media (min-width: 900px) { .inv-cols--2 { grid-template-columns: 1fr 1fr; } .inv-cols--3 { grid-template-columns: repeat(3, 1fr); } .inv-cols--side { grid-template-columns: 1.4fr 1fr; } }
.inv-panel { padding: 18px; border-radius: 16px; border: 1px solid var(--inv-line); background: #fff; }
.inv-panel--tint { background: var(--inv-bg); }
.inv-panel h4 { font-size: 14px; font-weight: 900; margin-bottom: 12px; color: var(--inv-ink); display: flex; align-items: center; gap: 8px; }
.inv-panel h4 svg { width: 18px; height: 18px; color: var(--inv-green); }
.inv-muted { color: var(--inv-muted); font-size: 13px; }
.inv-mt { margin-top: 16px; }

/* Tables */
.inv-table-wrap { overflow-x: auto; border: 1px solid var(--inv-line); border-radius: 14px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.inv-table th {
    text-align: start;
    font-size: 12px;
    font-weight: 800;
    color: var(--inv-muted);
    background: var(--inv-bg);
    padding: 10px 14px;
    border-bottom: 1px solid var(--inv-line);
    white-space: nowrap;
}
.inv-table td { padding: 11px 14px; border-bottom: 1px solid var(--inv-line); color: var(--inv-ink-2); vertical-align: middle; }
.inv-table tr:last-child td { border-bottom: 0; }
.inv-table td strong { color: var(--inv-ink); font-weight: 800; }
.inv-table tr.is-flagged td { background: #fffbea; }

/* Status pills */
.inv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.inv-pill::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.inv-pill--ok { background: var(--inv-green-50); color: var(--inv-green-700); }
.inv-pill--warn { background: var(--inv-gold-50); color: var(--inv-gold-700); }
.inv-pill--bad { background: var(--inv-red-50); color: var(--inv-red); }
.inv-pill--info { background: var(--inv-blue-50); color: var(--inv-blue); }

/* Form fields */
.inv-fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .inv-fields--2 { grid-template-columns: 1fr 1fr; } .inv-fields--3 { grid-template-columns: repeat(3, 1fr); } .inv-fields--4 { grid-template-columns: repeat(4, 1fr); } }
.inv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.inv-field label, .inv-field .inv-label { font-size: 13px; font-weight: 800; color: var(--inv-ink-2); }
.inv-input, .inv-select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #d5dfd9;
    background: #fff;
    color: var(--inv-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inv-input:focus, .inv-select:focus { border-color: var(--inv-green); box-shadow: 0 0 0 3px rgba(0, 139, 44, 0.15); outline: none; }
.inv-input-group { display: flex; align-items: stretch; }
.inv-input-group .inv-input { border-start-end-radius: 0; border-end-end-radius: 0; direction: ltr; text-align: start; }
[dir="rtl"] .inv-input-group .inv-input { text-align: right; }
.inv-input-group .inv-addon {
    display: inline-flex; align-items: center;
    padding: 0 12px;
    border: 1px solid #d5dfd9; border-inline-start: 0;
    border-start-end-radius: 12px; border-end-end-radius: 12px;
    background: var(--inv-bg);
    font-size: 13px; font-weight: 800; color: var(--inv-muted);
    white-space: nowrap;
}
.inv-error { font-size: 13px; font-weight: 700; color: var(--inv-red); }

/* Quantity stepper */
.inv-field .inv-stepper { align-self: flex-start; }
.inv-stepper { display: inline-flex; align-items: center; border: 1px solid #d5dfd9; border-radius: 14px; overflow: hidden; background: #fff; }
.inv-stepper button {
    width: 46px; height: 46px;
    border: 0; background: var(--inv-bg);
    font-size: 22px; font-weight: 700; color: var(--inv-green);
    cursor: pointer;
}
.inv-stepper button:hover { background: var(--inv-green-50); }
.inv-stepper input {
    width: 84px; height: 46px;
    border: 0; border-inline: 1px solid #e3eae6;
    text-align: center;
    font-family: inherit; font-size: 18px; font-weight: 900; color: var(--inv-ink);
    -moz-appearance: textfield;
}
.inv-stepper input::-webkit-outer-spin-button,
.inv-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Stat tiles */
.inv-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.inv-stat { padding: 16px; border-radius: 16px; background: var(--inv-bg); border: 1px solid var(--inv-line); }
.inv-stat-label { font-size: 12.5px; font-weight: 700; color: var(--inv-muted); }
.inv-stat-value { font-size: 24px; font-weight: 900; color: var(--inv-ink); margin-top: 4px; line-height: 1.2; }
.inv-stat-value small { font-size: 13px; font-weight: 700; color: var(--inv-muted); }
.inv-stat--good { background: var(--inv-green-50); border-color: var(--inv-green-100); }
.inv-stat--good .inv-stat-value { color: var(--inv-green-700); }
.inv-stat--bad { background: var(--inv-red-50); border-color: #fbd5c3; }
.inv-stat--bad .inv-stat-value { color: var(--inv-red); }
.inv-stat--warn { background: var(--inv-gold-50); border-color: #f3e4a6; }
.inv-stat--warn .inv-stat-value { color: var(--inv-gold-700); }

/* Alerts */
.inv-alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    border: 1px solid;
}
.inv-alert svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.inv-alert strong { font-weight: 900; }
.inv-alert--warn { background: var(--inv-gold-50); border-color: #f3e4a6; color: #5c4900; }
.inv-alert--warn svg { color: var(--inv-gold-700); }
.inv-alert--bad { background: var(--inv-red-50); border-color: #fbd5c3; color: #7a2908; }
.inv-alert--bad svg { color: var(--inv-red); }
.inv-alert--ok { background: var(--inv-green-50); border-color: var(--inv-green-100); color: #0d4a22; }
.inv-alert--ok svg { color: var(--inv-green); }
.inv-alert--info { background: var(--inv-blue-50); border-color: #cfe0f8; color: #123c75; }
.inv-alert--info svg { color: var(--inv-blue); }
.inv-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Recipe flow illustration */
.inv-flow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.inv-flow-ings { display: grid; gap: 8px; }
.inv-flow-ing {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--inv-line);
    font-size: 13.5px; font-weight: 700;
    min-width: 190px;
}
.inv-flow-ing span:last-child { margin-inline-start: auto; color: var(--inv-green-700); font-weight: 900; }
.inv-flow-dot { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; }
.inv-flow-arrow { color: var(--inv-green); }
.inv-flow-arrow svg { width: 40px; height: 40px; }
[dir="rtl"] .inv-flow-arrow svg { transform: scaleX(-1); }
.inv-flow-result {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 18px; border-radius: 18px;
    background: var(--inv-green-50);
    border: 1px dashed var(--inv-green);
    font-weight: 900; text-align: center;
}
.inv-flow-result svg { width: 64px; height: 64px; }

.inv-progress { height: 8px; border-radius: 999px; background: #e7eeea; overflow: hidden; }
.inv-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--inv-green), var(--inv-green-2)); transition: width 0.3s ease; }
.inv-delta-up { color: var(--inv-red); font-weight: 900; }
.inv-delta-down { color: var(--inv-green-700); font-weight: 900; }

/* Warehouse diagram + stock bars */
.inv-wh-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.inv-wh {
    padding: 14px; border-radius: 16px; border: 1px solid var(--inv-line); background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.inv-wh.is-source { border-color: #f3c9b2; box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.08); }
.inv-wh.is-dest { border-color: var(--inv-green-100); box-shadow: 0 0 0 3px rgba(0, 139, 44, 0.1); }
.inv-wh-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; margin-bottom: 10px; }
.inv-wh-name svg { width: 18px; height: 18px; color: var(--inv-green); }
.inv-wh-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 13px; margin-top: 8px; }
.inv-wh-row .inv-progress { grid-column: 1 / -1; height: 6px; }
.inv-wh-row.is-low .inv-progress span { background: var(--inv-red); }
.inv-wh-change { font-size: 12px; font-weight: 900; margin-inline-start: 4px; }

/* Ops cards (step 5) */
.inv-ops { display: grid; gap: 16px; }
@media (min-width: 960px) { .inv-ops { grid-template-columns: repeat(3, 1fr); } }
.inv-op { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; border: 1px solid var(--inv-line); background: #fff; }
.inv-op-head { display: flex; align-items: center; gap: 10px; }
.inv-op-head h4 { font-size: 15px; font-weight: 900; }
.inv-op p { font-size: 13.5px; color: var(--inv-muted); }
.inv-op-list { display: grid; gap: 6px; }
.inv-op-line { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--inv-bg); font-size: 13px; }
.inv-op-line.is-flash { animation: invFlash 0.8s ease; }
@keyframes invFlash { 0% { background: #ffe9a6; } 100% { background: var(--inv-bg); } }
.inv-op-line .neg { color: var(--inv-red); font-weight: 900; }
.inv-op-line .pos { color: var(--inv-green-700); font-weight: 900; }
.inv-op .inv-btn { align-self: flex-start; }
.inv-log { display: grid; gap: 6px; max-height: 170px; overflow-y: auto; }
.inv-log-item { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: var(--inv-red-50); color: #7a2908; }

/* Counting method cards */
.inv-methods { display: grid; gap: 14px; }
@media (min-width: 900px) { .inv-methods { grid-template-columns: repeat(3, 1fr); } }
.inv-method {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px; border-radius: 18px;
    border: 1.5px solid var(--inv-line); background: #fff;
    text-align: start; cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    color: var(--inv-ink);
}
.inv-method:hover { transform: translateY(-2px); border-color: #b9d9c4; }
.inv-method[aria-pressed="true"] { border-color: var(--inv-green); box-shadow: 0 0 0 4px rgba(0, 139, 44, 0.1); }
.inv-method h4 { font-size: 16px; font-weight: 900; }
.inv-method p { font-size: 13.5px; color: var(--inv-muted); }
.inv-method-detail { margin-top: 16px; }
.inv-schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.inv-schedule div { padding: 10px; border-radius: 12px; background: var(--inv-bg); border: 1px solid var(--inv-line); font-size: 13px; }
.inv-schedule strong { display: block; font-size: 12px; color: var(--inv-green-700); font-weight: 900; }

/* Workflow chips */
.inv-workflow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.inv-workflow span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 12.5px; font-weight: 700; color: #fff; }
.inv-workflow i { font-style: normal; color: var(--inv-gold); }

/* Definitions (warehouse vs cost center) */
.inv-defs { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 768px) { .inv-defs { grid-template-columns: 1fr 1fr; } }
.inv-def { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--inv-line); }
.inv-def h4 { font-size: 16px; font-weight: 900; }
.inv-def p { font-size: 14px; color: var(--inv-muted); margin-top: 4px; }
.inv-def em { font-style: normal; font-weight: 800; color: var(--inv-ink-2); }

/* Toast */
.inv-toast {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: 16px;
    background: var(--inv-ink); color: #fff;
    box-shadow: var(--inv-shadow-lg);
    font-size: 14px;
}
.inv-toast svg { width: 22px; height: 22px; color: var(--inv-gold); flex: 0 0 auto; }
.inv-toast small { display: block; color: rgba(255, 255, 255, 0.65); font-size: 12px; margin-top: 2px; }

/* ---------- Best practices ---------- */
.inv-practices-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .inv-practices-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .inv-practices-grid { grid-template-columns: repeat(3, 1fr); } }
.inv-practice {
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--inv-line);
    box-shadow: var(--inv-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inv-practice[open] { border-color: var(--inv-green-100); box-shadow: 0 0 0 4px rgba(0, 139, 44, 0.06), var(--inv-shadow); }
.inv-practice summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    cursor: pointer;
    list-style: none;
}
.inv-practice summary::-webkit-details-marker { display: none; }
.inv-practice-num { font-size: 13px; font-weight: 900; color: var(--inv-green); display: block; }
.inv-practice-title { font-size: 15.5px; font-weight: 900; line-height: 1.45; display: block; margin-top: 2px; }
.inv-practice-toggle {
    margin-inline-start: auto;
    flex: 0 0 auto;
    width: 28px; height: 28px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--inv-bg); color: var(--inv-green);
    transition: transform 0.25s ease;
}
.inv-practice-toggle svg { width: 16px; height: 16px; }
.inv-practice[open] .inv-practice-toggle { transform: rotate(45deg); }
.inv-practice-body { padding: 0 18px 18px; font-size: 14px; color: var(--inv-muted); }
@media (min-width: 1080px) { .inv-practice:last-child { grid-column: 2; } }

/* ---------- Summary ---------- */
.inv-summary {
    position: relative;
    overflow: hidden;
    padding: 56px 24px;
    border-radius: 32px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(242, 205, 0, 0.18), transparent 60%),
        radial-gradient(600px 300px at 85% 100%, rgba(0, 166, 50, 0.35), transparent 60%),
        linear-gradient(135deg, #0b3d1f 0%, #06351a 55%, #0d2a1c 100%);
}
@media (min-width: 768px) { .inv-summary { padding: 72px 56px; } }
.inv-summary h2 { font-size: 30px; font-weight: 900; }
@media (min-width: 768px) { .inv-summary h2 { font-size: 42px; } }
.inv-summary > p { max-width: 760px; margin: 18px auto 0; font-size: 17px; color: rgba(255, 255, 255, 0.85); }
.inv-summary-points { display: grid; gap: 12px; margin: 34px auto 0; max-width: 860px; }
@media (min-width: 700px) { .inv-summary-points { grid-template-columns: repeat(3, 1fr); } }
.inv-summary-point {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 900;
}
.inv-summary-point .inv-icon { background: rgba(242, 205, 0, 0.15); color: var(--inv-gold); }
.inv-summary-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.inv-credits { margin-top: 28px; font-size: 12px; color: var(--inv-muted); text-align: center; }
.inv-credits a { color: inherit; }

/* ---------- Reveal on scroll ---------- */
.inv-js .inv-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.inv-js .inv-reveal.is-in { opacity: 1; transform: none; }
@keyframes invFadeUp { from { opacity: 0; transform: translateY(8px); } }

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