/* Gymcel interactive tour (presentation.html)
   PowerPoint-style full-screen deck: fixed stacked slides, staggered reveals,
   parallax orbs, progress bar, dots, keyboard/swipe/wheel navigation. */

body.ps-body {
    background: #0a0a0a;   /* matches the site's bg-neutral-950 */
    color: #a3a3a3;
    font-family: Manrope, sans-serif;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    /* Smooth arrival from the landing's fade-out */
    animation: psPageIn 0.55s ease both;
}
@keyframes psPageIn { from { opacity: 0; } }

/* Floating nav pill (same glass style as the forum's top nav) */
.ps-nav-wrap {
    position: fixed;
    /* Clear the iPhone notch / Dynamic Island (viewport-fit=cover) */
    top: max(1.25rem, env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    justify-content: center;
    padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
    pointer-events: none;
}
.ps-nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 999px;
    padding: 0.45rem 0.5rem 0.45rem 1.4rem;
    width: 100%;
    max-width: 24rem;
    justify-content: space-between;
}
.ps-brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #fff;
    text-decoration: none;
}
#ps-counter {
    font-family: monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #666;
}
#ps-close {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #a3a3a3;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
#ps-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Background */
.ps-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    -webkit-filter: blur(90px);
    opacity: 0.16;
    pointer-events: none;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    z-index: 0;
}
#orb1 { width: 46vw; height: 46vw; background: #ffffff; top: -14vw; right: -10vw; animation: orbPulse 9s ease-in-out infinite; }
#orb2 { width: 34vw; height: 34vw; background: #8a8a8a; bottom: -12vw; left: -8vw; animation: orbPulse 11s ease-in-out infinite reverse; }
@keyframes orbPulse { 0%, 100% { opacity: 0.11; } 50% { opacity: 0.2; } }

.ps-grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Slides */
.pslide {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 6.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(34px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pslide.active { opacity: 1; pointer-events: auto; transform: none; }

.ps-inner { width: 100%; max-width: 880px; text-align: center; margin: auto; }

/* Staggered reveal — --d set inline per element */
.rv {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
}
.pslide.active .rv { opacity: 1; transform: none; }

/* Typography */
.ps-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #737373;   /* site's neutral-500 label tone */
    font-weight: 600;
    margin-bottom: 1.1rem;
}
.ps-wordmark {
    font-size: clamp(2.8rem, 10vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
    margin: 0 0 1.1rem;
    text-shadow: 0 0 38px rgba(255,255,255,0.3);
}
.ps-title {
    font-size: clamp(1.9rem, 6vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.05em;   /* tracking-tighter, like the landing headlines */
    line-height: 1.05;
    margin: 0 0 1rem;
}
.ps-title .dim { color: #555; }
.ps-sub {
    font-size: clamp(0.92rem, 2.2vw, 1.12rem);
    color: #9a9a9a;
    max-width: 640px;
    margin: 0 auto 2.1rem;
    line-height: 1.65;
    font-weight: 300;
}

/* Feature cards */
.ps-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 0.8rem;
    text-align: left;
}
.ps-card {
    /* same card tokens the dashboard uses (bg-neutral-900/30 + border-white/5) */
    background: rgba(23,23,23,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.ps-card:hover { border-color: rgba(255,255,255,0.1); background: rgba(23,23,23,0.5); transform: translateY(-1px); }
.ps-card iconify-icon {
    color: #fff;
    margin-bottom: 0.55rem;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.28));
}
.ps-card h3 { color: #fff; font-size: 0.9rem; font-weight: 700; margin: 0 0 0.3rem; }
.ps-card p { font-size: 0.75rem; color: #8a8a8a; line-height: 1.5; margin: 0; }

/* Analyzer rank ladder */
.ps-ranks { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.ps-rank {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    color: #888;
    white-space: nowrap;
}
.ps-rank.hot {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 18px rgba(255,255,255,0.35);
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

/* Premium slide */
.ps-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.5rem 1rem;
    text-align: left;
    max-width: 660px;
    margin: 0 auto 1.7rem;
}
.ps-check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: #d4d4d4; }
.ps-check iconify-icon { color: #fff; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255,255,255,0.3)); }
.ps-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    background: #fff;
    color: #000;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 0 36px rgba(255,255,255,0.35);
}
.ps-price small { font-size: 0.7rem; font-weight: 700; color: #444; }
.ps-trial { display: block; margin-top: 0.8rem; font-size: 0.78rem; color: #9a9a9a; }

/* Roadmap chips + CTA */
.ps-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.1rem; }
.ps-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d4d4d4;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}
.ps-chip iconify-icon { color: #fff; }
.ps-cta {
    /* identical to the landing hero button: h-12 white pill + soft glow */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 2rem;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(255,255,255,0.15);
    transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ps-cta:hover { background: #e5e5e5; transform: translateY(-1px); box-shadow: 0 0 40px rgba(255,255,255,0.25); }
.ps-cta-note { display: block; margin-top: 0.8rem; font-size: 0.72rem; color: #666; }

/* Chrome: progress / counter / close / arrows / dots / hint */
.ps-bar-track { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.08); z-index: 60; }
#ps-bar { height: 100%; width: 0; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.8); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.ps-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.ps-arrow:hover { background: rgba(255,255,255,0.12); }
.ps-arrow[disabled] { opacity: 0.25; cursor: default; }
#ps-prev { left: calc(1.1rem + env(safe-area-inset-left, 0px)); }
#ps-next { right: calc(1.1rem + env(safe-area-inset-right, 0px)); }

#ps-dots {
    position: fixed;
    /* Sit above the iPhone home indicator */
    bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    z-index: 60;
}
.ps-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
}
/* Invisible expanded hit area so the tiny dots are easy to tap on touch */
.ps-dot::after { content: ''; position: absolute; inset: -7px; }
.ps-dot.active { background: #fff; width: 22px; box-shadow: 0 0 10px rgba(255,255,255,0.6); }

#ps-hint {
    position: fixed;
    bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    font-size: 0.68rem;
    color: #666;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    transition: opacity 0.5s;
    pointer-events: none;
    white-space: nowrap;
}
#ps-hint.gone { opacity: 0; }

/* Mobile */
@media (max-width: 640px) {
    .pslide { padding: calc(4.2rem + env(safe-area-inset-top, 0px)) 1.1rem calc(6.4rem + env(safe-area-inset-bottom, 0px)); }
    .ps-exit-label { display: none; }
    #ps-close { padding: 0 0.6rem; }
    .ps-cards { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
    .ps-card { padding: 0.85rem 0.9rem; border-radius: 0.9rem; }
    .ps-card p { font-size: 0.68rem; }
    .ps-checks { grid-template-columns: 1fr; gap: 0.4rem; }
    /* Arrows drop to the bottom corners, clear of the home indicator */
    .ps-arrow { top: auto; transform: none; bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
    #ps-prev { left: calc(1rem + env(safe-area-inset-left, 0px)); }
    #ps-next { right: calc(1rem + env(safe-area-inset-right, 0px)); }
    #ps-dots { bottom: calc(1.55rem + env(safe-area-inset-bottom, 0px)); }
    #ps-hint { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
}

/* Short screens (phone landscape): compress type + keep arrows on the sides
   so they never cover the content. Placed after the width query so it wins. */
@media (max-height: 520px) {
    .pslide { padding: 3.4rem 4.4rem calc(3.4rem + env(safe-area-inset-bottom, 0px)); }
    .ps-wordmark { font-size: clamp(2rem, 7vw, 3rem); }
    .ps-title { font-size: clamp(1.3rem, 4.5vw, 2rem); margin-bottom: 0.6rem; }
    .ps-sub { font-size: 0.85rem; margin-bottom: 1.1rem; }
    .ps-cards { gap: 0.5rem; }
    .ps-card { padding: 0.7rem 0.8rem; }
    .ps-card p { font-size: 0.65rem; }
    .ps-checks { grid-template-columns: 1fr 1fr; gap: 0.3rem 0.8rem; }
    .ps-arrow {
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
        width: 40px;
        height: 40px;
    }
    #ps-prev { left: calc(0.8rem + env(safe-area-inset-left, 0px)); }
    #ps-next { right: calc(0.8rem + env(safe-area-inset-right, 0px)); }
    #ps-hint { display: none; }
}

/* Clickable cards + tap hint */
.ps-card[data-demo] { cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; }
.ps-card[data-demo]::after {
    content: '+';
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    transition: color 0.2s;
}
.ps-card[data-demo]:hover::after { color: #fff; }
.ps-tap-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    padding-top: 0.35rem;
}
.ps-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 42px;
    padding: 0 1.4rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    color: #e5e5e5;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.ps-preview-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

/* Feature showcase modal */
#ps-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
#ps-modal.hidden { display: none; }
.ps-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ps-modal-panel {
    position: relative;
    width: 100%;
    max-width: 30rem;
    max-height: 84dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1.25rem;
    padding: 1.4rem 1.4rem 1.5rem;
    animation: psModalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes psModalIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
#ps-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#ps-modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Mock-UI kit used inside the showcase modal */
.pd-kicker { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: #737373; font-weight: 700; margin-bottom: 0.3rem; }
.pd-title { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin: 0 0 0.9rem; padding-right: 2rem; }
.pd-frame { background: #0f0f0f; border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 1rem; margin-bottom: 1rem; }
.pd-steps { display: flex; flex-direction: column; gap: 0.5rem; }
.pd-step { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: #b9b9b9; line-height: 1.45; text-align: left; }
.pd-step b {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 0.62rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.05rem;
}
.pd-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.6rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    color: #d4d4d4;
    text-align: left;
}
.pd-row iconify-icon { color: #fff; flex-shrink: 0; }
.pd-row .spacer { margin-left: auto; color: #777; font-size: 0.7rem; }
.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    white-space: nowrap;
}
.pd-big { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1; }
.pd-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 0.5rem; }
.pd-bar i { display: block; height: 100%; background: #fff; border-radius: 999px; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.pd-center { text-align: center; }
.pd-muted { font-size: 0.68rem; color: #777; }
.pd-scan {
    position: relative;
    height: 88px;
    border-radius: 0.7rem;
    overflow: hidden;
    background: repeating-linear-gradient(90deg, #e8e8e8 0 3px, #101010 3px 6px, #e8e8e8 6px 8px, #101010 8px 13px, #e8e8e8 13px 15px, #101010 15px 21px);
    margin-bottom: 0.7rem;
}
.pd-scan::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 14px #fff;
    animation: pdScan 1.6s ease-in-out infinite alternate;
}
@keyframes pdScan { to { transform: translateY(84px); } }
.pd-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.pd-day { border: 1px solid rgba(255,255,255,0.07); border-radius: 0.5rem; padding: 0.4rem 0.15rem; font-size: 0.58rem; color: #666; text-align: center; }
.pd-day.on { border-color: rgba(255,255,255,0.35); color: #fff; background: rgba(255,255,255,0.05); }
.pd-day .pd-dot { display: block; width: 5px; height: 5px; margin: 0.25rem auto 0; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }

/* Animated profile showcase (the "Public profiles" demo) */
.pd-pf { text-align: left; }
.pd-pf-banner {
    height: 64px;
    border-radius: 0.7rem 0.7rem 0 0;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
    background: linear-gradient(120deg, #3b1d5e, #151519, #0e0e12, #26123f, #3b1d5e);
    background-size: 300% 100%;
    animation: pdBanner 7s linear infinite;
}
@keyframes pdBanner { to { background-position: 300% 0; } }
.pd-pf-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.25rem 0; }
.pd-pf-ava {
    width: 44px;
    height: 44px;
    border-radius: 0.8rem;
    background: #1c1c1f;
    border: 1px solid rgba(204,102,255,0.45);
    box-shadow: 0 0 14px rgba(180,60,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #cda6ff;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.pd-pf-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #CC66FF;
    animation: pdNameGlow 2.6s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
@keyframes pdNameGlow {
    0%, 100% { text-shadow: 0 0 8px rgba(180,60,255,0.5); }
    50%      { text-shadow: 0 0 17px rgba(180,60,255,0.95); }
}
.pd-pf-vote {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.pd-pf-vote.on { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 16px rgba(255,255,255,0.35); }
.pd-pf-vote.pop { animation: pdPop 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pdPop { 40% { transform: scale(1.18); } }
.pd-pf-badges { display: flex; gap: 0.7rem; justify-content: center; padding: 0.85rem 0 0.2rem; }
.pd-pf-badges img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--g, rgba(255,255,255,0.4)));
    animation: pdFloat 3s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
}
@keyframes pdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
    .pslide, .rv, #ps-bar, .ps-orb, .ps-cta, .pd-scan::after,
    .pd-pf-banner, .pd-pf-name, .pd-pf-badges img { transition: none !important; animation: none !important; }
}
