/* Mini Apps product pages (first app: WallBe).
   Loaded only on a single product page in the mini-apps category, and
   every class here starts with "ma-", so nothing can reach another page.
   Shadows are a deep slate, never black, and fall down and to the right:
   one light, top left. */

/* ── Icon beside the name ───────────────────────────── */
.ma-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.ma-title__icon {
    flex: none;
    width: 72px;
    height: 72px;
    filter: drop-shadow(3px 6px 10px rgba(24, 34, 46, 0.22));
}
.woocommerce div.product .ma-title .product_title {
    margin: 0;
}

/* ── The section under the buy area ─────────────────── */
.ma-page {
    grid-column: 1 / -1;
    margin-top: clamp(48px, 7vw, 96px);
    display: flex;
    flex-direction: column;
    gap: clamp(72px, 9vw, 128px);
}
.ma-heading {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 clamp(24px, 3vw, 36px);
}

/* Screenshot and text, alternating sides */
.ma-blocks {
    display: flex;
    flex-direction: column;
    gap: clamp(56px, 7vw, 104px);
}
.ma-block {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.ma-block--reverse {
    grid-template-columns: 6fr 5fr;
}
.ma-block--reverse .ma-block__text { order: 2; }
.ma-block--reverse .ma-block__media { order: 1; }
.ma-block__title {
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 16px;
    max-width: 18ch;
    text-wrap: balance;
}
.ma-block__desc {
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 44ch;
    margin: 0;
}
.ma-block__points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ma-block__points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
    max-width: 44ch;
}
.ma-block__points svg {
    flex: none;
    margin-top: 4px;
    color: var(--text-secondary);
}
.ma-block__media--wide {
    padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px);
}
.ma-wide {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
}
.ma-block__media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(28px, 4vw, 56px) 20px;
    border-radius: var(--radius-lg, 20px);
    background: var(--bg-secondary);
}
/* Shots are 2x captures of a 392pt panel: never draw them wider than that. */
.ma-shot {
    width: auto;
    max-width: min(392px, 100%);
    max-height: 600px;
    height: auto;
    filter: drop-shadow(10px 18px 28px rgba(24, 34, 46, 0.24));
}
.ma-shot--dark { display: none; }
[data-theme="dark"] .ma-shot--light { display: none; }
[data-theme="dark"] .ma-shot--dark { display: block; }
[data-theme="dark"] .ma-block__media {
    background: rgba(255, 255, 255, 0.035);
}
[data-theme="dark"] .ma-shot {
    filter: drop-shadow(10px 18px 28px rgba(0, 6, 12, 0.5));
}

/* Feature grid */
.ma-features__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.6vw, 22px);
}
.ma-feature {
    padding: 24px 24px 26px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
}
.ma-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text);
    margin-bottom: 16px;
}
.ma-feature__title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 6px;
}
.ma-feature__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
[data-theme="dark"] .ma-feature {
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .ma-feature__icon {
    background: rgba(255, 255, 255, 0.06);
}

/* Complimentary pack */
.ma-pack {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--radius-lg, 20px);
    background: var(--bg-secondary);
}
.ma-pack__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 8px;
}
.ma-pack__title {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 12px;
}
.ma-pack__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    max-width: 38ch;
}
.ma-pack__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.ma-pack__grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}
[data-theme="dark"] .ma-pack {
    background: rgba(255, 255, 255, 0.035);
}

/* Good to know, and questions */
.ma-facts-faq {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.ma-facts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ma-facts__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text);
}
.ma-facts__list svg {
    flex: none;
    color: var(--text-secondary);
}
.ma-faq__item {
    border-top: 1px solid var(--border);
}
.ma-faq__item:last-child {
    border-bottom: 1px solid var(--border);
}
.ma-faq__item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.ma-faq__item summary::-webkit-details-marker { display: none; }
.ma-faq__item summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}
.ma-faq__item[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}
.ma-faq__item p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 18px;
    max-width: 62ch;
}

/* ── Narrow screens ─────────────────────────────────── */
@media (max-width: 860px) {
    .ma-block,
    .ma-block--reverse,
    .ma-pack,
    .ma-facts-faq {
        grid-template-columns: 1fr;
    }
    .ma-block--reverse .ma-block__text { order: 1; }
    .ma-block--reverse .ma-block__media { order: 2; }
    .ma-block__title { max-width: none; }
    .ma-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ma-title__icon { width: 56px; height: 56px; }
    .ma-features__grid { grid-template-columns: 1fr; }
    .ma-pack__grid { grid-template-columns: repeat(2, 1fr); }
}
