/* Shared app catalog and product page styles. */
.app-catalog {
    background: #f7f5ff;
}

.app-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 490px), 1fr));
    gap: 24px;
}

.app-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    container-type: inline-size;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e0fc;
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(66, 43, 126, .09);
}

.app-card-copy {
    align-self: center;
    padding: clamp(24px, 5cqi, 56px);
}

.app-mark {
    display: block;
    border-radius: 16px;
    margin-bottom: 18px;
}

.app-label {
    color: #6744b5;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.app-card h3 {
    color: #231540;
    font-size: clamp(2rem, 6.5cqi, 3.3rem);
    line-height: 1.12;
    margin: 6px 0 12px;
    overflow-wrap: anywhere;
}

.app-card-copy > p:not(.app-label) {
    max-width: 32ch;
    color: #534865;
    margin-bottom: 22px;
}

.app-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .6em;
    border: 1px solid #5935a9;
    border-radius: 999px;
    padding: 10px 20px;
    background: #5935a9;
    color: #fff;
    font-size: .94rem;
    font-weight: 700;
}

.app-button:hover {
    background: #422480;
    color: #fff;
}

.app-card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2.1vw, 26px);
    min-width: 0;
    padding: 26px 18px;
    background: radial-gradient(ellipse at 65% 30%, #6d48bb 0%, #302050 58%, #221538 100%);
}

.app-card-art img {
    width: min(43%, 135px);
    height: auto;
    border: 2px solid #e4d6ff;
    border-radius: 14px;
    box-shadow: 0 10px 30px #160b36;
}

.app-card-art img:first-child {
    transform: translateY(8px) rotate(-7deg);
}

.app-card-art img:last-child {
    transform: translateY(-8px) rotate(7deg);
}

.pixmonta-art {
    background: radial-gradient(ellipse at 68% 16%, #9634bc 0%, #721958 49%, #441236 100%);
}

.pixmonta-art img {
    border-color: #fbd8f1;
    box-shadow: 0 10px 30px rgba(62, 10, 54, .6);
}

.paperpouch-card {
    grid-column: 1 / -1;
    border-color: #d6e7dd;
}

.paperpouch-card .app-label {
    color: #1e654f;
}

:is(.paperpouch-card, .paperpouch-page) .app-button {
    border-color: #1e654f;
    background: #1e654f;
}

:is(.paperpouch-card, .paperpouch-page) .app-button:hover {
    background: #174c3c;
}

.paperpouch-art {
    background: radial-gradient(ellipse at 68% 16%, #34775e 0%, #205341 52%, #16372d 100%);
}

.paperpouch-art img {
    border-color: #c9e2d3;
    box-shadow: 0 10px 30px rgba(9, 41, 30, .54);
}

.product-page {
    --primary: #0b1f3a;
    --accent-2: #5935a9;
    --bg-soft: #f7f5ff;
    --border: #e7e0fc;
    margin: 0;
    color: #2d2141;
    font: 1rem/1.6 "Inter", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

.product-page *, .product-page *::before, .product-page *::after {
    box-sizing: border-box;
}

.product-page :is(h1, h2, h3, p, ul, ol, figure) {
    margin: 0;
}

.product-page a {
    color: #5636a1;
    text-underline-offset: .22em;
}

.product-page a.app-button {
    color: #fff;
    text-decoration: none;
}

.product-page a:focus-visible {
    outline: 3px solid #8155d2;
    outline-offset: 4px;
}

.product-wrap {
    width: min(100% - 48px, 1112px);
    margin-inline: auto;
}

.product-top, .product-footer {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.product-top .nav, .product-footer .product-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    min-height: 72px;
    padding-block: 12px;
}

.product-top .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.product-top .brand img {
    border-radius: 11px;
}

.product-nav, .product-links, .product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.product-nav a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.product-nav a:hover {
    color: var(--accent-2);
}

.product-hero {
    padding: clamp(44px, 8vw, 96px) 0;
    background: radial-gradient(ellipse at 70% 5%, #e8d9ff 0%, transparent 62%), #f8f5ff;
}

.paperpouch-page .product-hero {
    background: radial-gradient(ellipse at 70% 5%, #dceee3 0%, transparent 62%), #f5faf7;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 6vw, 76px);
}

.product-hero h1, .product-heading h1 {
    color: #231540;
    font-size: clamp(2.6rem, 7.4vw, 5.4rem);
    line-height: 1.03;
    letter-spacing: -.045em;
    margin: 8px 0 14px;
}

.product-hero .product-tagline {
    color: #442e68;
    font-size: clamp(1.4rem, 3.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 14px;
}

.product-hero .product-intro {
    max-width: 40ch;
    color: #534865;
    font-size: 1.08rem;
}

.product-actions {
    margin-top: 24px;
}

.product-hero-grid > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
    box-shadow: 0 20px 45px rgba(48, 21, 83, .25);
}

.product-hero :is(.pixmonta-art, .paperpouch-art) {
    padding: clamp(28px, 5vw, 48px) 18px;
    border-radius: 26px;
}

.product-hero .pixmonta-art {
    box-shadow: 0 20px 45px rgba(62, 10, 54, .2);
}

.product-hero .paperpouch-art {
    box-shadow: 0 20px 45px rgba(9, 41, 30, .18);
}

.product-hero :is(.pixmonta-art, .paperpouch-art) img {
    width: min(41%, 164px);
}

.product-section {
    padding-block: clamp(40px, 7vw, 80px);
}

.product-section h2 {
    color: #231540;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.14;
    margin-bottom: 10px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.product-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(61, 33, 112, .10);
}

.product-gallery figcaption {
    margin-top: 12px;
    color: #534865;
    font-size: .94rem;
}

.product-gallery h3 {
    color: #2d2141;
    font-size: 1.03rem;
    margin-bottom: 3px;
}

.paperpouch-page .product-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
}

.paperpouch-page .product-gallery figure {
    width: min(100%, 284px);
}

.paperpouch-page .product-gallery img {
    aspect-ratio: 391 / 824;
    object-fit: contain;
    background: #f5f8f5;
    border-color: #d6e7dd;
}

.product-help, .product-heading {
    background: var(--bg-soft);
}

.product-links {
    margin-top: 18px;
}

.product-footer {
    border-top: 1px solid var(--border);
    border-bottom: 0;
    font-size: .9rem;
}

.product-heading {
    padding-block: 44px;
}

.product-heading h1 {
    max-width: 18ch;
    font-size: clamp(2.15rem, 5.4vw, 3.8rem);
}

.product-heading .product-policy-date {
    margin-top: 12px;
    color: #534865;
    font-size: .9rem;
}

.product-policy {
    width: min(100% - 48px, 800px);
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.product-policy h2 {
    margin-top: 32px;
    font-size: 1.5rem;
}

.product-policy h2:first-child {
    margin-top: 0;
}

.product-policy p + p, .product-policy ul, .product-policy li + li {
    margin-top: 10px;
}

.product-policy ul {
    padding-inline-start: 22px;
}

@media (max-width: 900px) {
    .product-nav { display: none; }
    .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .app-card, .product-hero-grid { grid-template-columns: 1fr; }
    .product-wrap, .product-policy { width: min(100% - 36px, 1112px); }
    .product-gallery { gap: 22px 12px; }
    .product-gallery img { border-radius: 12px; }
    .product-hero-grid > img { max-width: 400px; }
    .paperpouch-page .product-gallery { grid-template-columns: 1fr; gap: 32px; }
}
