.emca-product-page {
    --emca-bg: #fff8f1;
    --emca-card: #ffffff;
    --emca-ink: #1d2230;
    --emca-muted: #626a7a;
    --emca-accent: #7c4dff;
    --emca-accent-2: #18a999;
    --emca-line: rgba(29, 34, 48, .12);
    background:
        radial-gradient(circle at 12% 0%, rgba(124, 77, 255, .16), transparent 28rem),
        radial-gradient(circle at 88% 10%, rgba(24, 169, 153, .16), transparent 26rem),
        var(--emca-bg);
    border-radius: 32px;
    color: var(--emca-ink);
    container-type: inline-size;
    font-family: inherit;
    margin: 0 auto;
    max-width: 1180px;
    overflow: hidden;
    width: 100%;
}

.emca-product-page * {
    box-sizing: border-box;
}

.emca-product-page h1,
.emca-product-page h2,
.emca-product-page h3,
.emca-product-page p,
.emca-product-page strong,
.emca-product-page span {
    hyphens: auto;
    overflow-wrap: anywhere;
}

.emca-product-page h1,
.emca-product-page h2,
.emca-product-page h3,
.emca-product-page strong {
    color: var(--emca-ink) !important;
}

.emca-product-hero,
.emca-product-section {
    padding: clamp(32px, 6vw, 78px);
}

.emca-product-hero {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
}

.emca-product-hero-copy,
.emca-product-section-heading,
.emca-product-stats div,
.emca-product-feature,
.emca-product-neuro-card,
.emca-product-qr-card {
    min-width: 0;
}

.emca-product-eyebrow {
    color: var(--emca-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.emca-product-hero h1,
.emca-product-section h2 {
    letter-spacing: -.04em;
    line-height: .98;
    margin: 0;
}

.emca-product-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.2rem);
    max-width: 820px;
}

.emca-product-subtitle,
.emca-product-section p {
    color: var(--emca-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.emca-product-subtitle {
    max-width: 700px;
}

.emca-product-actions,
.emca-product-stats,
.emca-product-qr-grid,
.emca-product-feature-grid,
.emca-product-neuro-grid {
    display: grid;
    gap: 16px;
}

.emca-product-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin-top: 28px;
}

.emca-product-store-button {
    background: var(--emca-ink);
    border-radius: 18px;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    min-width: 170px;
    padding: 13px 18px;
    text-decoration: none;
}

.emca-product-store-button small {
    color: rgba(255, 255, 255, .72);
    font-size: .76rem;
}

.emca-product-store-button strong {
    color: #fff !important;
    font-size: 1.05rem;
}

.emca-product-store-button-disabled {
    opacity: .55;
}

.emca-product-secondary-link {
    color: var(--emca-ink);
    font-weight: 700;
}

.emca-product-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    margin-top: 34px;
}

.emca-product-stats div,
.emca-product-feature,
.emca-product-neuro-card,
.emca-product-qr-card {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--emca-line);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(29, 34, 48, .08);
}

.emca-product-stats div {
    padding: 18px 16px;
}

.emca-product-stats strong,
.emca-product-stats span {
    display: block;
}

.emca-product-stats span {
    color: var(--emca-muted);
    font-size: .82rem;
    margin-top: 4px;
}

.emca-product-stats strong {
    font-size: clamp(.9rem, 1.3vw, 1.05rem);
    line-height: 1.25;
}

.emca-product-mockups {
    min-height: 510px;
    position: relative;
    width: 100%;
}

.emca-product-phone {
    background: #111827;
    border: 10px solid #111827;
    border-radius: 42px;
    box-shadow: 0 30px 80px rgba(17, 24, 39, .28);
    min-height: 430px;
    padding: 16px;
    position: absolute;
    width: min(270px, 44vw);
}

.emca-product-phone-primary {
    right: 34%;
    top: 22px;
    transform: rotate(-7deg);
    z-index: 2;
}

.emca-product-phone-secondary {
    right: 0;
    top: 92px;
    transform: rotate(8deg);
}

.emca-product-phone-speaker {
    background: rgba(255, 255, 255, .2);
    border-radius: 99px;
    height: 5px;
    margin: 0 auto 14px;
    width: 74px;
}

.emca-product-phone-screen {
    background: linear-gradient(180deg, #fff, #f3f4ff);
    border-radius: 30px;
    min-height: 370px;
    padding: 24px 18px;
}

.emca-product-phone-screen h3 {
    font-size: 1.55rem;
    margin: 0 0 18px;
}

.emca-product-screen-card {
    background: #fff;
    border: 1px solid rgba(29, 34, 48, .08);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(29, 34, 48, .08);
    margin-bottom: 12px;
    padding: 14px;
}

.emca-product-section {
    border-top: 1px solid var(--emca-line);
}

.emca-product-section-heading {
    max-width: 760px;
}

.emca-product-section h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.emca-product-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    margin-top: 34px;
}

.emca-product-feature {
    padding: 24px;
}

.emca-product-neuro {
    background:
        linear-gradient(135deg, rgba(124, 77, 255, .10), rgba(24, 169, 153, .10)),
        rgba(255, 255, 255, .34);
}

.emca-product-neuro-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    margin-top: 34px;
}

.emca-product-neuro-card {
    background: rgba(255, 255, 255, .82);
    padding: 26px;
}

.emca-product-neuro-card span,
.emca-product-feature span {
    color: var(--emca-accent-2);
    font-weight: 900;
}

.emca-product-neuro-card h3,
.emca-product-feature h3 {
    font-size: 1.15rem;
    margin: 12px 0 8px;
}

.emca-product-neuro-card p,
.emca-product-feature p {
    font-size: .96rem;
    margin: 0;
}

.emca-product-downloads {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: .9fr 1.1fr;
}

.emca-product-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emca-product-qr-card {
    padding: 22px;
    text-align: center;
}

.emca-product-qr-card a {
    color: inherit;
    display: block;
    text-decoration: none;
}

.emca-product-qr-card img,
.emca-product-qr-placeholder {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--emca-line);
    border-radius: 18px;
    display: grid;
    margin: 0 auto 16px;
    max-width: 210px;
    padding: 14px;
    width: 100%;
}

.emca-product-qr-card img {
    display: block;
    object-fit: contain;
}

.emca-product-qr-placeholder {
    gap: 4px;
    grid-template-columns: repeat(7, 1fr);
}

.emca-product-qr-placeholder span {
    background: rgba(29, 34, 48, .14);
    border-radius: 3px;
}

.emca-product-qr-placeholder span:nth-child(3n),
.emca-product-qr-placeholder span:nth-child(4n + 1),
.emca-product-qr-placeholder span:nth-child(11),
.emca-product-qr-placeholder span:nth-child(31) {
    background: var(--emca-ink);
}

.emca-product-qr-card h3 {
    margin: 0;
}

.emca-product-qr-card p,
.emca-product-qr-card small {
    color: var(--emca-muted);
}

.emca-product-admin-preview {
    border: 1px solid #dcdcde;
    border-radius: 22px;
    max-height: 720px;
    overflow: auto;
    padding: 12px;
}

@media (max-width: 900px) {
    .emca-product-hero,
    .emca-product-downloads {
        grid-template-columns: 1fr;
    }

    .emca-product-mockups {
        min-height: 460px;
    }

    .emca-product-feature-grid,
    .emca-product-neuro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .emca-product-hero,
    .emca-product-section {
        padding: 28px 18px;
    }

    .emca-product-stats,
    .emca-product-feature-grid,
    .emca-product-neuro-grid,
    .emca-product-qr-grid {
        grid-template-columns: 1fr;
    }

    .emca-product-mockups {
        min-height: 760px;
    }

    .emca-product-phone {
        left: 50%;
        right: auto;
        width: min(280px, 86vw);
    }

    .emca-product-phone-primary {
        top: 0;
        transform: translateX(-55%) rotate(-4deg);
    }

    .emca-product-phone-secondary {
        top: 350px;
        transform: translateX(-45%) rotate(5deg);
    }
}
