:root {
    color-scheme: light;
    --bg: #f4f2ee;
    --surface: #ffffff;
    --surface-2: #f6f3ee;
    --edge: #ddd7ce;
    --text: #17181a;
    --muted: #656a70;
    --accent: #ff0a8c;
    --accent-2: #ff4fb1;
    font-family: Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f2ee;
    color: var(--text);
}

img {
    display: block;
    width: 100%;
}

.shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 40px;
    display: grid;
    gap: 18px;
}

.page-head {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.surface {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--edge);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(18, 20, 24, 0.05);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.gallery {
    display: grid;
    gap: 12px;
}

.gallery-main {
    overflow: hidden;
}

.gallery-main img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.thumb {
    overflow: hidden;
    padding: 0;
}

.thumb img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.thumb.is-active {
    border-color: #bfc8d5;
    box-shadow: 0 0 0 2px rgba(72, 112, 255, 0.12);
}

.buy-column {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 18px;
}

.software-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-badge {
    min-height: 46px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--edge);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.app-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-badge-ae .app-icon {
    background: #12071f;
    color: #c58cff;
    border: 1px solid #5c3e84;
}

.app-badge-pr .app-icon {
    background: #05142a;
    color: #6db5ff;
    border: 1px solid #2d5e8f;
}

.title-block {
    display: grid;
    gap: 8px;
}

.eyebrow {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
p {
    margin: 0;
}

h1 {
    font-size: clamp(34px, 6vw, 52px);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.subhead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
    max-width: 28ch;
}

.purchase-card {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.price-meta {
    display: block;
}

.price-current {
    font-size: 46px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.license-note {
    color: var(--muted);
}

.license-note {
    font-size: 13px;
    line-height: 1.45;
}

.cta-stack {
    display: grid;
    gap: 0;
}

.primary-button,
.secondary-button {
    min-height: 50px;
    border-radius: 14px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    transition: transform 120ms ease, filter 120ms ease;
}

.primary-button {
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff8f3;
    box-shadow: 0 12px 24px rgba(255, 10, 140, 0.2);
}

.secondary-button {
    background: #f2eee8;
    color: var(--text);
    border: 1px solid var(--edge);
}

.primary-button:hover,
.secondary-button:hover {
    filter: brightness(1.03);
}

.primary-button:active,
.secondary-button:active {
    transform: scale(0.985);
}

.primary-button.is-disabled,
.secondary-button.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
    pointer-events: auto;
}

.full-width {
    width: 100%;
}

.summary-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.summary-item {
    display: grid;
    gap: 6px;
}

.summary-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.media-card {
    overflow: hidden;
    padding: 0;
}

.media-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.media-caption {
    padding: 14px 16px 16px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .buy-column {
        position: static;
    }

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

@media (max-width: 700px) {
    .shell {
        width: min(100% - 18px, 1220px);
        padding: 14px 0 28px;
        gap: 14px;
    }

    .gallery-strip,
    .media-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 34px;
    }
}
