/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --kliq-surface: #FFFFFF;
    --kliq-main: #F7C107;
    --kliq-accent: #1B7170;
    --kliq-scoreboard-bg: #111111;
    --kliq-text: #000000;
    --kliq-white: #FFFFFF;
    --kliq-alert: #F5F106;
    --kliq-stop: #F70707;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
    color: var(--kliq-text);
    line-height: 1.2;
    overflow-x: hidden;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY & READABILITY
   ========================================================================== */
p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--kliq-text);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

p strong {
    color: var(--kliq-accent);
}

.enjoy-text {
    font-weight: 700;
    font-style: italic;
    color: var(--kliq-accent);
    text-align: center;
    padding-bottom: 10px;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: none;
}

/* ==========================================================================
   SHARED HEADINGS & ACCENTS
   ========================================================================== */
h2 {
    color: var(--kliq-accent);
    font-size: 2rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

main section {
    padding: 10px 10px;
}

section h2,
.content-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

section h3,
.content-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.h2-uppercase {
    color: var(--kliq-main);
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Court Top Line Accent */
.tin-line {
    height: 8px;
    background: linear-gradient(90deg, var(--kliq-main) 0%, var(--kliq-stop) 50%, var(--kliq-main) 100%);
    width: 100%;
    z-index: 501;
}

/* FLOATING BRANDED RACKET CURSOR */
.custom-racket-cursor {
    position: absolute;
    width: 70px;
    height: auto;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -30%);
    display: none;
    filter: drop-shadow(2px 6px 8px rgba(0, 0, 0, 0.2));
}

/* DYNAMIC BOUNCING SQUASH BALL */
.roaming-squash-ball {
    width: 28px;
    height: 28px;
    background-color: #111111;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    will-change: transform;
    transform-origin: center center;
}

.roaming-squash-ball::before,
.roaming-squash-ball::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 4px;
    height: 4px;
    background-color: var(--kliq-main);
    border-radius: 50%;
}

.roaming-squash-ball::before { left: 7px; }
.roaming-squash-ball::after { right: 7px; }

/* ==========================================================================
   CONTENT SECTIONS & LAYOUTS
   ========================================================================== */
.story-section {
    background-color: #FFFFFF;
    border-bottom: 1px dashed #DDD;
    position: relative;
    z-index: 2;
}

/* PAIN POINT FEATURE BLOCK */
.pain-point {
    background-color: #F8F9FA;
    color: var(--kliq-text);
    padding: 24px;
    border-radius: 12px;
    border-left: 8px solid var(--kliq-main);
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pain-point img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.pain-point p {
    font-size: 1.2rem;
    font-weight: 500;
    flex: 1 1 320px;
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
}

.feature-item {
    background-color: #FFFFFF;
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #EEEEEE;
    border-top: 4px solid var(--kliq-accent);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature-item h4 {
    color: var(--kliq-accent);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.creators-voice {
    margin-top: 15px;
    margin-bottom: 10px;
}

.score-clicker-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0 28px 0;
}

.score-clicker-image img {
    width: 100%;
    max-width: 600px;
    max-height: 150px;
    height: auto;
    object-fit: contain;
    display: block;
}

#imgHand1 {
    display: block;
}

#imgHand2 {
    display: none;
}

/* VIDEO PLAYER & TRANSCRIPT DETAILS */
.video-container {
    margin: 24px 0;
    text-align: center;
}

.video-container video {
    max-width: 720px;
    border-radius: 8px;
}

.script-details {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
}

.script-details summary {
    cursor: pointer;
    font-weight: bold;
    color: #1A2B4C;
}

.script-content {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
}

/* ==========================================================================
   SCREENSHOT GRID SECTION
   ========================================================================== */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: center;
    align-items: center;
}

.screenshot-card {
    background-color: #000000;
    border: 2px solid var(--kliq-main, #f7c107);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(247, 193, 7, 0.25);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   PROMO CARD
   ========================================================================== */
.promo-card {
    display: block;
    text-decoration: none;
    background: #FFFFFF;
    border: 3px solid var(--kliq-main);
    border-radius: 16px;
    padding: 32px 24px;
    margin: 32px 0;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

.promo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.promo-card h3 {
    color: var(--kliq-accent);
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.promo-card p.subtitle {
    color: #444444;
    font-size: 1.2rem;
    margin-bottom: 28px;
    font-weight: 700;
}

.btn-amazon {
    display: inline-block;
    background-color: var(--kliq-main);
    color: var(--kliq-accent);
    font-weight: 900;
    font-size: 1.3rem;
    padding: 16px 36px;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 0px #C79A00;
    transition: all 0.15s ease;
}

.promo-card:hover .btn-amazon {
    background-color: var(--kliq-alert);
    box-shadow: 0 8px 0px #C79A00;
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    margin-top: auto;
    background-color: #FFFFFF;
    color: #666666;
    text-align:center;
    padding: 40px;
    font-size: 0.95rem;
    border-top: 4px solid var(--kliq-accent);
    position: relative;
    z-index: 2;
}

footer strong {
    color: var(--kliq-accent);
}

@media (min-width: 800px) {
    .features-grid {
        /* Force strictly 3 columns on desktop */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 650px) {
    main > section {
        padding: 10px 10px 0 10px;
    }
    .amazon-affiliate-wrapper {
        align-items: center;
    }
    .pain-point {
        flex-direction: column;
        text-align: center;
    }
    .pain-point img {
        max-width: 160px;
    }

    section h2 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1.0rem;
        line-height: 1.4;
    }

    #imgHand1 {
        display: none !important;
    }
    
    #imgHand2 {
        display: block !important;
    }
}

@media (max-width: 576px) {
    section h2 {
        font-size: 1.1rem;
    }
    
    .screenshot-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    p {
        font-size: 1.0rem;
        line-height: 1.4;
    }
}

@media (pointer: coarse) {
    #squashBall,
    #racketCursor {
        display: none !important;
    }
}