/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE — Shared styles for all product sub-pages
   Used by: /products/pos/, /products/inventory/, etc.
   ═══════════════════════════════════════════════════════════════ */

/* ── Product Hero (extends .hero from shared CSS) ──── */
.product-hero {
    padding-top: calc(64px + var(--space-16));
    padding-bottom: var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, #f8faff 0%, #f0f4ff 40%, #ffffff 100%);
}

.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--color-gray-200) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.product-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 30%, rgba(99, 102, 241, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 90% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 55% 85%, rgba(59, 130, 246, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.product-hero > .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .product-hero {
        padding-top: calc(72px + var(--space-24));
        padding-bottom: var(--space-24);
        text-align: left;
        overflow-x: clip;
        min-height: 700px;
    }

    .product-hero > .container {
        display: flex;
        align-items: center;
        gap: clamp(48px, 6vw, 96px);
    }
}

.product-hero__content {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .product-hero__content {
        max-width: 540px;
        flex-shrink: 0;
        align-items: flex-start;
    }
}

.product-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
}

.product-hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-gray-500);
    line-height: 1.65;
    margin-bottom: var(--space-8);
    max-width: 540px;
}

@media (max-width: 1024px) {
    .product-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.product-hero__image {
    margin-top: var(--space-12);
    position: relative;
}

@media (min-width: 1024px) {
    .product-hero__image {
        margin-top: 0;
        flex: 1;
        min-width: 0;
        padding-left: clamp(20px, 3vw, 44px);
        margin-right: -32px;
    }
}

.product-hero__image-frame {
    max-width: 620px;
    margin-left: auto;
}

.product-hero__image-frame--frame,
.product-hero__image-frame--photo-overlays {
    border-radius: 32px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow:
        0 34px 80px -36px rgba(15, 23, 42, 0.26),
        0 18px 32px -24px rgba(15, 23, 42, 0.12);
}

.product-hero__image-frame > img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.product-hero__image-frame--frame > img,
.product-hero__image-frame--photo-overlays > img {
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.32);
}

.product-hero__image-frame--cutout {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-hero__image-frame--cutout > img {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.2));
}

@media (max-width: 1024px) {
    .product-hero__image-frame--frame,
    .product-hero__image-frame--photo-overlays {
        padding: 12px;
        border-radius: 24px;
    }

    .product-hero__image-frame--frame > img,
    .product-hero__image-frame--photo-overlays > img {
        border-radius: 18px;
    }
}

.product-hero__overlay-stack {
    pointer-events: none;
}

.product-hero__overlay {
    position: absolute;
    z-index: 2;
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-hero__overlay--top {
    top: 44px;
    left: -132px;
    width: 188px;
    transform: translate3d(-24px, 18px, 0) scale(0.94);
}

.product-hero__overlay--bottom {
    right: -118px;
    bottom: -58px;
    width: 212px;
    transform: translate3d(22px, 24px, 0) scale(0.94);
}

.product-hero__overlay-stack.is-visible .product-hero__overlay {
    opacity: 1;
}

.product-hero__overlay-stack.is-visible .product-hero__overlay--top {
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0.06s;
}

.product-hero__overlay-stack.is-visible .product-hero__overlay--bottom {
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0.18s;
}

.product-hero__ui-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 18px;
    padding: 10px 11px;
    box-shadow:
        0 18px 36px -28px rgba(15, 23, 42, 0.24),
        0 10px 16px -14px rgba(15, 23, 42, 0.16);
}

.product-hero__ui-card--soft {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.97));
}

.product-hero__ui-card--sand {
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.98), rgba(255, 255, 255, 0.97));
}

.product-hero__ui-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.product-hero__ui-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

.product-hero__ui-eyebrow svg {
    width: 12px;
    height: 12px;
    color: var(--color-primary);
}

.product-hero__ui-title {
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--color-gray-900);
}

.product-hero__ui-sub {
    margin-top: 3px;
    font-size: 0.62rem;
    line-height: 1.28;
    color: var(--color-gray-500);
}

.product-hero__ui-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.product-hero__ui-action {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-hero__ui-action svg {
    width: 15px;
    height: 15px;
}

.product-hero__ui-card .m-tag {
    font-size: 0.6rem;
    padding: 4px 7px;
}

.product-hero__ui-card .m-kv-list {
    margin-top: 7px;
}

.product-hero__ui-card .m-kv-list__row {
    padding: 6px 0;
    font-size: 0.68rem;
}

.product-hero__ui-card .vis-mini-card__bubble {
    border-radius: 12px;
    padding: 8px 9px;
}

.product-hero__ui-card .vis-mini-card__bubble-title {
    font-size: 0.62rem;
    margin-bottom: 3px;
}

.product-hero__ui-card .vis-mini-card__bubble-copy {
    font-size: 0.66rem;
    line-height: 1.34;
}

@media (max-width: 1024px) {
    .product-hero__overlay--top {
        top: 12px;
        left: 12px;
        width: min(42vw, 176px);
    }

    .product-hero__overlay--bottom {
        right: 12px;
        bottom: 12px;
        width: min(48vw, 196px);
    }

    .product-hero__ui-card {
        padding: 8px 9px;
        border-radius: 15px;
        box-shadow:
            0 14px 28px -24px rgba(15, 23, 42, 0.22),
            0 8px 14px -12px rgba(15, 23, 42, 0.14);
    }

    .product-hero__ui-eyebrow {
        font-size: 0.58rem;
        gap: 4px;
    }

    .product-hero__ui-title {
        font-size: 0.7rem;
    }

    .product-hero__ui-sub,
    .product-hero__ui-card .m-kv-list__row,
    .product-hero__ui-card .vis-mini-card__bubble-copy {
        font-size: 0.62rem;
        line-height: 1.3;
    }

    .product-hero__ui-card .m-tag {
        font-size: 0.56rem;
        padding: 3px 6px;
    }
}

@media (max-width: 640px) {
    .product-hero__overlay--top {
        width: min(40vw, 148px);
    }

    .product-hero__overlay--bottom {
        width: min(46vw, 170px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-hero__overlay,
    .product-split__overlay {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ── Content Split Sections ──────────────────────────── */
.product-split {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}

.product-split--reverse {
    flex-direction: row-reverse;
}

.product-split__text {
    flex: 1;
}

.product-split__title {
    font-size: clamp(1.5rem, 3vw, 2.375rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
}

.product-split__desc {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.product-split__media-container {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    max-width: 520px;
}

.product-split__media {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

.product-split__media--frame,
.product-split__media--photo-overlays {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
}

.product-split__media img {
    width: 100%;
    display: block;
}

.product-split__media--cutout {
    border: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
}

.product-split__media--cutout img {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.2));
}

.product-split__overlay-stack {
    pointer-events: none;
}

.product-split__overlay {
    position: absolute;
    z-index: 2;
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-split__overlay--top-right {
    top: 24px;
    right: -42px;
    width: 224px;
    transform: translate3d(20px, 16px, 0) scale(0.94);
}

.product-split__overlay--bottom-left {
    bottom: -38px;
    left: -30px;
    width: 192px;
    transform: translate3d(-18px, 22px, 0) scale(0.94);
}

.product-split__overlay-stack.is-visible .product-split__overlay {
    opacity: 1;
}

.product-split__overlay-stack.is-visible .product-split__overlay--top-right {
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0.06s;
}

.product-split__overlay-stack.is-visible .product-split__overlay--bottom-left {
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0.16s;
}

.product-split__overlay .product-hero__ui-card {
    padding: 10px 11px;
}

.product-split__overlay .product-hero__ui-title {
    font-size: 0.76rem;
}

.product-split__overlay .product-hero__ui-sub,
.product-split__overlay .product-hero__ui-card .m-kv-list__row,
.product-split__overlay .product-hero__ui-card .vis-mini-card__bubble-copy {
    font-size: 0.66rem;
}

.product-split__overlay .product-hero__ui-card .m-tag {
    font-size: 0.6rem;
    padding: 4px 7px;
}

@media (max-width: 1024px) {
    .product-split,
    .product-split--reverse {
        flex-direction: column;
    }

    .product-split__media {
        width: 100%;
    }

    .product-split__overlay--top-right {
        top: 12px;
        right: 12px;
        width: min(42vw, 188px);
    }

    .product-split__overlay--bottom-left {
        bottom: 12px;
        left: 12px;
        width: min(36vw, 156px);
    }

    .product-split__overlay .product-hero__ui-card {
        padding: 8px 9px;
        border-radius: 15px;
    }

    .product-split__overlay .product-hero__ui-title {
        font-size: 0.7rem;
    }

    .product-split__overlay .product-hero__ui-sub,
    .product-split__overlay .product-hero__ui-card .m-kv-list__row,
    .product-split__overlay .product-hero__ui-card .vis-mini-card__bubble-copy {
        font-size: 0.62rem;
        line-height: 1.3;
    }

    .product-split__overlay .product-hero__ui-card .m-tag {
        font-size: 0.56rem;
        padding: 3px 6px;
    }
}

@media (max-width: 640px) {
    .product-split__overlay--top-right {
        width: min(40vw, 156px);
    }

    .product-split__overlay--bottom-left {
        width: min(32vw, 130px);
    }
}

/* ── Feature checklist ──────────────────────────────── */
.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
    margin-top: var(--space-4);
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-700);
}

.feat-item i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Functionality Cards Grid ────────────────────────── */
.func-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.func-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s;
}

.func-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.func-card i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.func-card__title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
}

.func-card__desc {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* Colored variants */
.func-card--orange { background: #FFF7ED; border-color: transparent; }
.func-card--purple { background: #F5F3FF; border-color: transparent; }
.func-card--green  { background: #ECFDF5; border-color: transparent; }
.func-card--red    { background: #FEF2F2; border-color: transparent; }
.func-card--blue   { background: #EFF6FF; border-color: transparent; }
.func-card--dark   { background: var(--color-gray-800); border-color: transparent; }
.func-card--dark .func-card__title { color: var(--color-gray-100); }
.func-card--dark .func-card__desc  { color: var(--color-gray-400); }

@media (max-width: 1024px) {
    .func-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .func-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Show only first 8, hide rest */
.func-grid:not(.func-grid--expanded) .func-card:nth-child(n+9) {
    display: none;
}

.func-grid__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: var(--space-8) auto 0;
    padding: 12px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-gray-700);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.func-grid__toggle:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-sm);
}
.func-grid__toggle svg {
    transition: transform 0.3s;
}
.func-grid--expanded + .func-grid__toggle svg {
    transform: rotate(180deg);
}

.func-card[data-modal] { cursor: pointer; }

/* ── CTA Card ──────────────────────────────────────── */
.product-cta-card {
    background: var(--color-gray-900);
    border-radius: var(--radius-2xl);
    padding: var(--space-20) var(--space-16);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.product-cta-card h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    max-width: 700px;
}

.product-cta-card .cta-sub {
    font-size: var(--text-lg);
    color: var(--color-gray-400);
    max-width: 600px;
}

.cta-btns {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.btn--cta-outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
}

.btn--cta-outline:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    color: var(--color-white);
}

.cta-trust {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding-top: var(--space-4);
}

.cta-trust span {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.cta-trust__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gray-600);
}

@media (max-width: 768px) {
    .product-cta-card {
        padding: var(--space-12) var(--space-6);
    }

    .cta-btns {
        flex-direction: column;
        width: 100%;
    }

    .cta-btns .btn {
        width: 100%;
    }

    .cta-trust {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ── Scroll Reveal Animation ──────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Feature Modal ─────────────────────────────────── */
.feat-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.feat-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.feat-modal {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 40px -8px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}
.feat-modal::-webkit-scrollbar { display: none; }
.feat-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.feat-modal__header {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    padding-left: 40px;
}
.feat-modal__header-icon { flex-shrink: 0; }
.feat-modal__header-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background: rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: background 0.2s;
}
.feat-modal__header-close:hover { background: rgba(0,0,0,0.14); }

/* Color theme variants for modal header */
.feat-modal__header--orange { background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 50%, #FDE68A 100%); }
.feat-modal__header--blue   { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #93C5FD 100%); }
.feat-modal__header--green  { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 50%, #6EE7B7 100%); }
.feat-modal__header--purple { background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #C4B5FD 100%); }
.feat-modal__header--red    { background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 50%, #FCA5A5 100%); }

.feat-modal__handle { display: none; justify-content: center; height: 32px; align-items: center; }
.feat-modal__handle-pill { width: 40px; height: 4px; border-radius: 2px; background: #D1D5DB; }

.feat-modal__close-row { display: none; justify-content: flex-end; padding: 0 20px; }
.feat-modal__m-close {
    width: 32px; height: 32px; border-radius: 16px;
    background: #F1F5F9; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-gray-500);
}

.feat-modal__body { padding: 32px 40px; display: flex; flex-direction: column; gap: 28px; }
.feat-modal__top { display: flex; flex-direction: column; gap: 12px; }

.feat-modal__icon-row { display: none; align-items: center; gap: 12px; }
.feat-modal__icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.feat-modal__icon--orange { background: #FFF7ED; }
.feat-modal__icon--orange i { color: #F59E0B; }
.feat-modal__icon--blue { background: #EFF6FF; }
.feat-modal__icon--blue i { color: #2563EB; }
.feat-modal__icon--green { background: #ECFDF5; }
.feat-modal__icon--green i { color: #10B981; }
.feat-modal__icon--purple { background: #F5F3FF; }
.feat-modal__icon--purple i { color: #7C3AED; }
.feat-modal__icon--red { background: #FEF2F2; }
.feat-modal__icon--red i { color: #EF4444; }

.feat-modal__badge--desktop { display: inline-block; }
.feat-modal__badge { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 9999px; }
.feat-modal__badge--orange { background: #FFF7ED; color: #C2410C; border: 1px solid #FDBA74; }
.feat-modal__badge--blue   { background: #EFF6FF; color: #1D4ED8; border: 1px solid #93C5FD; }
.feat-modal__badge--green  { background: #ECFDF5; color: #065F46; border: 1px solid #6EE7B7; }
.feat-modal__badge--purple { background: #F5F3FF; color: #5B21B6; border: 1px solid #C4B5FD; }
.feat-modal__badge--red    { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }

.feat-modal__title { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; color: var(--color-gray-900); }
.feat-modal__tagline { font-size: 16px; color: var(--color-gray-500); line-height: 1.5; }
.feat-modal__divider { height: 1px; background: var(--color-gray-200); }
.feat-modal__text { font-size: 15px; color: #475569; line-height: 1.7; }
.feat-modal__desc { display: flex; flex-direction: column; gap: 16px; }
.feat-modal__section-title { font-size: 18px; font-weight: 700; color: var(--color-gray-900); margin-bottom: 16px; }

.feat-modal__steps { display: flex; flex-direction: column; gap: 12px; }
.feat-modal__step { display: flex; align-items: center; gap: 12px; }
.feat-modal__step-num {
    width: 28px; height: 28px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.feat-modal__step-text { font-size: 14px; color: #334155; line-height: 1.5; }

.feat-modal__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.feat-modal__check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #334155; }
.feat-modal__check i { width: 16px; height: 16px; color: #10B981; flex-shrink: 0; }

.feat-modal__cta-row { display: flex; justify-content: center; padding-top: 8px; }
.feat-modal__cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px; border-radius: 14px;
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    box-shadow: 0 4px 8px -2px rgba(37,99,235,0.2);
    color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer;
}
.feat-modal__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 12px -2px rgba(37,99,235,0.3); }

.func-card[data-modal] { cursor: pointer; }

@media (max-width: 768px) {
    .feat-modal.is-open { transform: none; }
    .feat-modal__header { display: none !important; }
    .feat-modal__handle { display: none !important; }
    .feat-modal__close-row { display: none !important; }
    .feat-modal__icon-row { display: flex; }
    .feat-modal__badge--desktop { display: none; }
    .feat-modal__body { padding: 0 24px 32px; gap: 24px; }
    .feat-modal__title { font-size: 24px; letter-spacing: -0.6px; }
    .feat-modal__tagline { font-size: 14px; }
    .feat-modal__text { font-size: 13px; }
    .feat-modal__section-title { font-size: 16px; }
    .feat-modal__step-num { width: 24px; height: 24px; border-radius: 12px; font-size: 11px; }
    .feat-modal__step-text { font-size: 13px; }
    .feat-modal__step { gap: 10px; }
    .feat-modal__checks { gap: 8px; }
    .feat-modal__check { font-size: 12px; }
    .feat-modal__check i { width: 14px; height: 14px; }
    .feat-modal__badge { font-size: 11px; padding: 3px 10px; }
    .feat-modal__cta-row { padding: 0; }
    .feat-modal__cta { width: 100%; padding: 14px 0; }
}

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar {
    background: #fff;
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.stats-bar__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stats-bar__value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

.stats-bar__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-500);
    text-align: center;
}

.stats-bar__divider {
    width: 1px;
    height: 48px;
    background: var(--color-gray-200);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .stats-bar {
        padding: var(--space-8) 0;
    }

    .stats-bar__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8) var(--space-4);
        justify-items: center;
    }

    .stats-bar__divider {
        display: none;
    }

    .stats-bar__value {
        font-size: 1.75rem;
    }
}

/* ═════════════════════════════════════════════════════════
   Integration Flow — Graphite Block
   ═══════════════════════════════════════════════════════ */
.integration-flow { padding: 7.5rem 0; background: #FFFFFF; }
.integration-flow__inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.integration-flow__header { text-align: center; margin-bottom: 3.5rem; display: flex; flex-direction: column; align-items: center; }
.integration-flow__label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #475569;
    background: #F1F5F9; border: 1px solid #E2E8F0;
    padding: 6px 20px; border-radius: 999px; margin-bottom: 1.25rem;
}
.integration-flow__title {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
    line-height: 1.1; letter-spacing: -0.03em; color: #0F172A;
}

/* Graphite Card */
.graphite-block {
    position: relative;
    background: linear-gradient(135deg, #27272A 0%, #09090B 100%);
    border: 1px solid #3F3F46; border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    width: 100%; max-width: 960px; margin: 0 auto;
    aspect-ratio: 1040 / 540; overflow: hidden;
}

/* Corner Cards */
.gfx-card {
    position: absolute; z-index: 2;
    background: #18181B; border: 1px solid #3F3F46;
    border-radius: 12px; width: 23%; max-width: 230px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    display: flex; flex-direction: column; overflow: hidden;
    height: 26%; transition: box-shadow 0.4s ease;
}
.gfx-card--tl { top: 4%; left: 5.8%; }
.gfx-card--tr { top: 4%; right: 5.8%; }
.gfx-card--ml { top: 37%; left: 5.8%; }
.gfx-card--mr { top: 37%; right: 5.8%; }
.gfx-card--bl { bottom: 4%; left: 5.8%; }
.gfx-card--br { bottom: 4%; right: 5.8%; }
.gfx-card__hdr {
    display: flex; align-items: center; gap: 6px;
    padding: 0 10px; height: 30px; flex-shrink: 0;
    font-size: 12px; font-weight: 600; color: #E4E4E7;
}
.gfx-card__hdr i, .gfx-card__hdr svg { width: 12px; height: 12px; color: #A1A1AA; }
.gfx-card__div { height: 1px; background: #3F3F46; flex-shrink: 0; }
.gfx-card__body { padding: 8px; flex: 1; display: flex; gap: 6px; min-height: 0; }

/* POS mockup */
.gfx-pos-sidebar { display: flex; flex-direction: column; gap: 4px; width: 45px; }
.gfx-pos-sidebar span { height: 8px; border-radius: 2px; background: #52525B; }
.gfx-pos-sidebar span:last-child { width: 60%; background: #3F3F46; }
.gfx-pos-grid { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.gfx-pos-grid span { width: 36px; height: 28px; border-radius: 4px; background: #3F3F46; }
.gfx-pos-grid span:first-child { background: #71717A; }

/* KDS mockup */
.gfx-kds-ticket { flex: 1; background: #27272A; border: 1px solid #3F3F46; border-radius: 4px; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.gfx-kds-ticket span { height: 4px; border-radius: 2px; background: #52525B; }
.gfx-kds-ticket span:first-child { height: 6px; background: #71717A; }
.gfx-kds-ticket:last-child span:first-child { background: #A1A1AA; }

/* Waiter mockup */
.gfx-waiter-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gfx-waiter-bars span { height: 14px; border-radius: 4px; background: #3F3F46; }
.gfx-waiter-bars span:last-child { width: 65%; }

/* Shift mockup */
.gfx-shift-chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.gfx-shift-chart span { flex: 1; border-radius: 4px; }

/* Center Hub */
.gfx-hub {
    position: absolute; z-index: 3;
    top: 50%; left: 50%; width: 120px; height: 120px;
    margin: -60px 0 0 -60px; border-radius: 50%;
    background: #18181B; border: 2px solid #D4D4D8;
    display: flex; align-items: center; justify-content: center;
    color: #F4F4F5; font-size: 14px; font-weight: 700;
    box-shadow: 0 0 32px rgba(255,255,255,0.1);
}
.gfx-hub__pulse {
    position: absolute; top: 50%; left: 50%;
    width: 150px; height: 150px; margin: -75px 0 0 -75px;
    border-radius: 50%; border: 1.5px solid rgba(212,212,216,0.12);
    animation: gfxPulse 4s ease-in-out infinite;
}
.gfx-hub__pulse--2 {
    width: 180px; height: 180px; margin: -90px 0 0 -90px;
    animation-delay: 2s; border-color: rgba(212,212,216,0.06);
}
@keyframes gfxPulse { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 0; } }

/* Card inner content */
.gfx-card__body--data { flex-direction: column; gap: 6px; }
.gfx-val { font-size: 1.125rem; font-weight: 800; color: #F4F4F5; font-variant-numeric: tabular-nums; }
.gfx-unit { font-size: 0.6875rem; font-weight: 500; color: #71717A; margin-left: 3px; }
.gfx-label { font-size: 0.6875rem; color: #A1A1AA; margin-bottom: 2px; }
.gfx-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; flex: 1; }
.gfx-bar { flex: 1; border-radius: 3px 3px 0 0; transition: height 1.5s cubic-bezier(0.16,1,0.3,1); height: 3px; }
.gfx-progress { height: 4px; border-radius: 2px; background: #27272A; width: 100%; overflow: hidden; }
.gfx-progress__fill { height: 100%; border-radius: 2px; transition: width 1.8s cubic-bezier(0.16,1,0.3,1); width: 0%; }
.gfx-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 6px; font-size: 0.6875rem; font-weight: 600; }
.gfx-status-dot { width: 6px; height: 6px; border-radius: 50%; animation: gfxBlink 1.5s ease-in-out infinite; }
@keyframes gfxBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
/* Subtle shimmer on card highlight element */
.gfx-card__body .gfx-pos-grid span:first-child,
.gfx-kds-ticket span:first-child { animation: gfxShimmer 3s ease-in-out infinite; }
@keyframes gfxShimmer { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* SVG overlay */
.gfx-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.gfx-line { stroke: #52525B; stroke-width: 2; fill: none; }
.gfx-dot { fill: #FFFFFF; filter: drop-shadow(0 0 8px rgba(255,255,255,0.4)); }
.gfx-card--glow { box-shadow: 0 12px 24px rgba(0,0,0,0.25), 0 0 24px rgba(255,255,255,0.06), inset 0 0 12px rgba(255,255,255,0.02); }

/* Mobile — keeps diagram intact, horizontally scrollable */
@media (max-width: 768px) {
    .integration-flow { padding: 4rem 0; }
    .integration-flow__header { margin-bottom: 2rem; }
    .integration-flow__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 1rem 8px; scroll-snap-type: x mandatory; display: flex; justify-content: center; }
    .graphite-block { min-width: 400px; aspect-ratio: 1040 / 640; border-radius: 16px; margin: 0 auto; scroll-snap-align: center; }
    .gfx-card { left: 2% !important; right: auto; width: 22% !important; height: 28% !important; }
    .gfx-card--tr, .gfx-card--mr, .gfx-card--br { left: auto !important; right: 2% !important; }
    .gfx-card__hdr { height: 20px; font-size: 8px; padding: 0 5px; gap: 2px; }
    .gfx-card__hdr i, .gfx-card__hdr svg { width: 8px; height: 8px; }
    .gfx-card__body { padding: 4px 6px; gap: 2px; }
    .gfx-card__body--data { gap: 2px; }
    .gfx-label { font-size: 0.5rem; }
    .gfx-val { font-size: 0.6875rem; }
    .gfx-unit { font-size: 0.5rem; }
    .gfx-bars, .gfx-progress, .gfx-status-badge { display: none; }
    .gfx-hub { width: 56px; height: 56px; margin: -28px 0 0 -28px; font-size: 10px; border-width: 1.5px; }
    .gfx-hub__pulse { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
    .gfx-hub__pulse--2 { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
}
