:root {
    --bg: #222222;
    --text: #f3f3f3;
    --muted: #bdbdbd;
    --primary: #E0737C;
    --outline: #353535;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.px-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.px-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(34, 34, 34, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--outline);
    transition: box-shadow 0.2s ease;
}

.px-header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.px-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.px-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: var(--primary);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.px-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(224, 115, 124, .3);
}

/* Hero */
.px-hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 48px 0;
}

.px-title {
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.px-sub {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 20px;
    max-width: 60ch;
}

.px-caption {
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
}

.px-disclaimer {
    color:#888;
    font-size:12px;
    font-style: italic;
    margin-bottom: 15px;
}

.px-appstore-badge {
    display: inline-block;
}

.px-appstore-badge img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.px-appstore-badge:hover img {
    transform: scale(1.05);
}

.px-preview {
    width: 100%;
    max-width: 500px;
    justify-self: center;
}

.px-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Features */
.px-section {
    padding: 20px 0 56px;
}

.px-section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

.px-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.px-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid var(--outline);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
}

/* Poker suit icons */
.px-suit {
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

/* Colors for each suit */
.px-suit--spade,
.px-suit--club {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.px-suit--heart,
.px-suit--diamond {
    color: #E0737C;
    text-shadow: 0 0 6px rgba(224, 115, 124, 0.3);
}

/* Hover animation */
.px-card:hover .px-suit {
    transform: scale(1.15);
    text-shadow: 0 0 12px rgba(224, 115, 124, 0.5);
}

/* Ensure text and spacing look balanced */
.px-card-content {
    padding: 22px 20px 28px;
    text-align: center;
}

.px-card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text);
}

.px-card-content p {
    color: var(--muted);
    font-size: 15px;
    margin: 6px 0 0;
}

/* CTA band */
.px-band {
    background: linear-gradient(90deg, rgba(224, 115, 124, .12), rgba(224, 115, 124, .05) 40%, rgba(224, 115, 124, .12));
    border: 1px solid var(--outline);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.px-band p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* Primary variant for CTA button */
.px-btn--primary {
    background: var(--primary);
    color: #fff;
}

/* Article / long-form content */
.px-article {
    max-width: 860px;
    margin: 20px auto;
    padding: 30px 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--outline);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.px-article h1 {
    font-size: 25px;
    text-align: center;
    margin: 0 0 20px;
}

.px-article .lead {
    color: var(--muted);
    margin: 0 0 24px;
    font-size: 16px;
}

.px-article h2 {
    font-size: 20px;
    margin: 28px 0 10px;
}

.px-article p,
.px-article li {
    color: var(--muted);
    line-height: 1.7;
}

.px-article a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.px-article .email {
    display: block;
}

.px-article ul {
    padding-left: 1.2rem;
    margin: 8px 0 16px;
}

.px-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 20px 0 30px;
}

.px-screenshot-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--outline);
    background: #333;
}

.px-founder-title {
    margin-top: 0!important;
    margin-bottom: 14px!important;;
}

.px-founder-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--outline);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.px-founder-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.px-founder-meta {
    min-width: 0; /* prevents overflow */
}

.px-founder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 5px 0;
}

.px-founder-name {
    margin: 0 0;
    font-size: 17px;
    color: var(--text);
}

.px-founder-link {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
    background: #333333;
    border: 1px solid #555555;
    color: var(--muted);
    text-decoration: none!important;
    transition: all 0.2s ease;
}

.px-founder-link:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(224,115,124,0.15);
}

.px-founder-bio {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

.px-founder-highlights {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.px-founder-highlights li {
    margin-bottom: 0;
}

/* Footer */
.px-footer {
    border-top: 1px solid var(--outline);
    margin-top: 36px;
    padding: 22px 0 35px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.px-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.px-links a {
    color: var(--muted);
    text-decoration: none;
}

.px-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 960px) {
    .px-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .px-preview {
        order: -1;
        margin: 0 auto;
        width: 80%;
    }

    .px-section {
        padding: 20px 0 40px;
    }
}

@media (max-width: 720px) {
    .px-header {
        padding: 20px 0;
    }

    .px-hero {
        padding: 32px 0;
        gap: 16px;
    }

    .px-title {
        font-size: 30px;
    }

    .px-sub {
        font-size: 16px;
    }

    .px-preview {
        width: 100%;
    }

    .px-section {
        padding: 20px 0 30px;
    }

    .px-section h2 {
        font-size: 25px
    }

    .px-band {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 16px;
    }

    .px-band .px-btn {
        justify-self: center;
    }

    .px-band p {
        font-size: 15px;
    }

    .px-article {
        padding: 24px 20px;
    }

    .px-article h1 {
        font-size: 22px;
    }

    .px-article h2 {
        font-size: 18px;
    }

    .px-article p,
    .px-article li {
        font-size: 15px;
    }

    .px-founder-card {
        padding: 15px 15px;
    }

    .px-founder-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    .px-footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .px-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Deeplink */
#deeplink {
    .deeplink-wrapper {
        width: 500px;
        background: #333333;
        display: table;
        margin: 0 auto;
        text-align: center;
        border-radius: 15px;

        @media only screen and (max-width: 600px) {
            width: 90%;
        }
    }

    .deeplink-content {
        padding: 50px 50px;
    }

    .deeplink-header {
        color: #fff;
        font-size: 24px;
        margin: 0 0;

        @media only screen and (max-width: 600px) {
            font-size: 18px;
        }
    }

    .instruction {
        display: inline-block;
        margin-top: 8px;
        font-size: 0.98rem;
        color: #ddd;
    }

    .icon {
        font-size: 2.5rem;
        margin-bottom: 6px;
        display: inline-block;
    }

    .download-btn {
        display: inline-block;
        background: #E0737C;
        color: #fff;
        padding: 12px 30px;
        border-radius: 22px;
        font-weight: 600;
        font-size: 1.11rem;
        margin-top: 18px;
        text-decoration: none;
    }

    .download-btn:hover, .download-btn:focus {
        opacity: 0.9;
    }
}