/* PHOW SECTION
   Shared by /phow/, /phow/privacy/ and /phow/delete-account/.
   Loaded after /style.css. */

.phow{
    --phow-red: #b74b4b;
    --phow-red-soft: rgba(183, 75, 75, 0.14);
    --phow-line: rgba(183, 75, 75, 0.24);
    --phow-card: linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(10, 10, 10, 0.98));
    --phow-muted: #bfbfbf;
    display: block;
    width: 100%;
    background:
        radial-gradient(circle at 85% 0%, rgba(183, 75, 75, 0.20), transparent 38%),
        radial-gradient(circle at 0% 40%, rgba(183, 75, 75, 0.10), transparent 30%),
        black;
}

.phow section{
    padding: 5rem 9%;
}

.phow .phow-top{
    padding-top: 11rem;
    padding-bottom: 0;
}

/* SUB NAV */

.phow-subnav{
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--phow-line);
    border-radius: 999px;
    background-color: rgba(17, 17, 17, 0.9);
    overflow-x: auto;
    scrollbar-width: none;
}

.phow-subnav::-webkit-scrollbar{
    display: none;
}

.phow-subnav-brand{
    padding: 0.6rem 1.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    color: var(--phow-red);
    white-space: nowrap;
}

.phow-subnav a{
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #e5e5e5;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.phow-subnav a:hover{
    background-color: var(--phow-red-soft);
    color: white;
}

.phow-subnav a.active{
    background-color: var(--phow-red);
    color: #111;
    font-weight: 600;
}

/* HERO */

.phow-hero{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 5rem;
    padding-top: 4rem !important;
}

.phow-eyebrow{
    display: inline-block;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
    color: var(--phow-red);
}

.phow-hero h1{
    font-size: 9rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.2rem;
    margin-bottom: 1.6rem;
    text-shadow: 0 0 40px rgba(183, 75, 75, 0.35);
}

.phow-tagline{
    font-size: 2.2rem;
    font-weight: 500;
    color: #f2e7e7;
    margin-bottom: 1.4rem;
}

.phow-intro{
    font-size: 1.6rem;
    line-height: 1.8;
    color: #d6d6d6;
    max-width: 56rem;
}

.phow-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.8rem;
}

.phow-actions .btn{
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.btn.is-solid{
    background-color: var(--phow-red);
    color: #111;
}

.btn.is-solid:hover{
    background-color: #c95c5c;
}

.btn.is-disabled{
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}

.phow-hero-art{
    position: relative;
    border-radius: 2.4rem;
    padding: 1rem;
    background: var(--phow-card);
    border: 1px solid var(--phow-line);
    box-shadow: 0 0 60px rgba(183, 75, 75, 0.18);
}

.phow-hero-art img{
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1.6rem;
    image-rendering: pixelated;
}

/* SECTION HEADINGS (reuses .section-heading from style.css) */

.phow .section-heading{
    margin-bottom: 2.6rem;
}

.phow .section-heading p:empty{
    display: none;
}

/* GALLERY */

.phow-gallery{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.phow-shot{
    min-width: 0;
}

/* Odd number of screenshots: the first one spans the full row so no gap is left */
.phow-shot:first-child:nth-last-child(odd){
    grid-column: 1 / -1;
}

.phow-shot-frame{
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.8rem;
    border: 1px solid var(--phow-line);
    background: var(--phow-card);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.phow-shot-frame img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.phow-shot.is-empty .phow-shot-frame{
    border-style: dashed;
    color: #555;
    font-size: 4rem;
}

.phow-shot figcaption{
    margin-top: 1rem;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--phow-muted);
}

@media (hover: hover) and (pointer: fine){
    a.phow-shot-frame:hover{
        transform: translateY(-4px);
        border-color: rgba(183, 75, 75, 0.6);
        box-shadow: 0 0 30px rgba(183, 75, 75, 0.22);
    }
}

/* FEATURES */

.phow-features{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.phow-feature{
    padding: 2.6rem;
    border-radius: 2.2rem;
    border: 1px solid var(--phow-line);
    background: var(--phow-card);
    min-width: 0;
}

.phow-feature i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.6rem;
    border-radius: 1.4rem;
    background-color: var(--phow-red-soft);
    color: var(--phow-red);
    font-size: 2.2rem;
}

.phow-feature h3{
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: white;
}

.phow-feature p{
    font-size: 1.5rem;
    line-height: 1.7;
    color: #d6d6d6;
}

/* PLATFORMS */

.phow-platforms{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.phow-platforms:has(> :only-child){
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.phow-platform{
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.4rem;
    border-radius: 2.2rem;
    border: 1px solid var(--phow-line);
    background: var(--phow-card);
    min-width: 0;
}

.phow-platform > i{
    flex-shrink: 0;
    width: 6rem;
    height: 6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.6rem;
    background-color: var(--phow-red-soft);
    color: var(--phow-red);
    font-size: 2.8rem;
}

.phow-platform-body{
    flex: 1;
    min-width: 0;
}

.phow-platform h3{
    font-size: 2.2rem;
    color: white;
}

.phow-platform p{
    font-size: 1.45rem;
    line-height: 1.6;
    color: var(--phow-muted);
}

.phow-soon{
    flex-shrink: 0;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--phow-red);
    background-color: var(--phow-red-soft);
    color: #f0b1b1;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

/* INFO / SUPPORT */

.phow-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    padding: 3.2rem;
    border-radius: 2.4rem;
    border: 1px solid var(--phow-line);
    background:
        radial-gradient(circle at 100% 0%, rgba(183, 75, 75, 0.16), transparent 50%),
        #0d0d0d;
}

.phow-info h2{
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.phow-info p{
    font-size: 1.55rem;
    line-height: 1.7;
    color: #d6d6d6;
    max-width: 58rem;
}

.phow-info-links{
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    flex-shrink: 0;
}

/* LEGAL PAGES */

.phow-legal-outer{
    padding: 0 9% 6rem;
}

.phow .legal{
    max-width: 860px;
    margin: 2.4rem auto 0;
    padding: 4rem 4.4rem 4.4rem !important;
    border-radius: 2.4rem;
    border: 1px solid var(--phow-line);
    background: #0d0d0d;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #ddd;
}

.phow .legal h1{
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: white;
}

.phow .legal h2{
    font-size: 2.1rem;
    margin: 3.2rem 0 1rem;
    padding-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--phow-red);
    scroll-margin-top: 12rem;
}

.phow .legal p{
    margin-bottom: 1.2rem;
}

.phow .legal ul,
.phow .legal ol{
    margin: 0 0 1.2rem 2.4rem;
}

.phow .legal li{
    margin-bottom: 0.7rem;
    padding-left: 0.4rem;
}

.phow .legal li::marker{
    color: var(--phow-red);
}

.phow .legal a{
    color: #e07a7a;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.phow .legal .updated{
    color: #888;
    font-size: 1.4rem;
    margin-bottom: 0;
}

.phow-legal-wrap{
    max-width: 860px;
    margin: 0 auto;
}

/* FOOTER */

.phow-footer{
    padding: 4rem 9% 6rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.phow-footer p{
    color: var(--phow-muted);
    font-size: 1.45rem;
    line-height: 1.8;
}

.phow-footer-links{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 2.4rem;
    margin-top: 1rem;
    width: auto;
    overflow: visible;
    padding: 0;
}

.phow-footer-links a{
    margin: 0;
    font-size: 1.4rem;
    color: #d6d6d6;
    border-bottom: none;
}

.phow-footer-links a:hover{
    color: var(--phow-red);
    border-bottom: none;
}

/* RESPONSIVE */

@media(max-width:995px){
    .phow section{
        padding: 4rem 5%;
    }

    .phow .phow-top{
        padding-top: 17rem;
        padding-bottom: 0;
    }

    .phow-hero{
        grid-template-columns: 1fr;
        gap: 3.2rem;
        padding-top: 3rem !important;
    }

    .phow-hero h1{
        font-size: 7rem;
    }

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

    .phow-platforms{
        grid-template-columns: 1fr;
    }

    .phow-info{
        flex-direction: column;
        align-items: flex-start;
    }

    .phow .section-heading.centered{
        text-align: left;
    }

    .phow-footer{
        padding: 3rem 5% 5rem;
    }

    .phow-legal-outer{
        padding: 0 5% 5rem;
    }
}

@media(max-width:640px){
    .phow-subnav{
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0.4rem;
        border-radius: 1.8rem;
    }

    .phow-subnav-brand{
        display: none;
    }

    .phow-subnav a{
        padding: 0.9rem 0.4rem;
        border-radius: 1.4rem;
        font-size: 1.3rem;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }

    .phow-gallery,
    .phow-features{
        grid-template-columns: 1fr;
    }

    .phow .legal{
        padding: 2.8rem 2.2rem 3rem !important;
    }
}

@media(max-width:480px){
    .phow .phow-top{
        padding-top: 16rem;
    }

    .phow-hero h1{
        font-size: 5.6rem;
    }

    .phow-tagline{
        font-size: 1.9rem;
    }

    .phow-actions .btn{
        width: 100%;
        justify-content: center;
    }

    .phow-platform{
        flex-wrap: wrap;
        padding: 2rem;
        gap: 1.4rem;
    }

    .phow-feature{
        padding: 2.2rem;
    }

    .phow-info{
        padding: 2.4rem 2rem;
    }

    .phow-info h2{
        font-size: 2.6rem;
    }

    .phow-info-links,
    .phow-info-links .btn{
        width: 100%;
        text-align: center;
    }

    .phow .legal h1{
        font-size: 3rem;
    }

    .phow .legal ul,
    .phow .legal ol{
        margin-left: 2rem;
    }
}

/* POLISH + JUICE */

.phow-feature,
.phow-platform{
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.phow-feature::after,
.phow-platform::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 0%), rgba(183, 75, 75, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.phow-feature i{
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.phow-shot-frame img{
    transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine){
    .phow-feature:hover,
    .phow-platform:hover{
        transform: translateY(-5px);
        border-color: rgba(183, 75, 75, 0.5);
        box-shadow: 0 1.8rem 3.6rem rgba(0, 0, 0, 0.35), 0 0 2.4rem rgba(183, 75, 75, 0.14);
    }

    .phow-feature:hover::after,
    .phow-platform:hover::after{
        opacity: 1;
    }

    .phow-feature:hover i{
        transform: scale(1.1) rotate(-6deg);
        box-shadow: 0 0 2rem rgba(183, 75, 75, 0.45);
    }

    a.phow-shot-frame:hover img{
        transform: scale(1.05);
    }
}
