/* ===== Muzip About Page Custom Stylesheet ===== */

/* Typography Unification to var(--font-body) */
.about-page,
.about-page h1, .about-page h2, .about-page h3, .about-page h4,
.about-page p, .about-page span, .about-page div:not(.fa):not([class*="fa-"]),
.about-page button, .about-page label, .about-page textarea, .about-page input, .about-page li {
    font-family: var(--font-body) !important;
}

.about-page {
    padding-top: 22px;
}

.about-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 10px;
    min-height: 85vh; /* Hero section covers the first viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: rise-in 600ms ease-out both;
}

.about-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--ink) 30%, var(--brand-strong) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.6;
}

/* Scroll Down Button */
.scroll-down-btn {
    margin-top: 40px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(15, 157, 133, 0.22);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(12, 26, 38, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
    animation: bounce 2s infinite;
}

.scroll-down-btn:hover {
    background: #ffffff;
    transform: translateY(3px) scale(1.05);
}

.arrow-down-icon {
    width: 10px;
    height: 10px;
    border-bottom: 3px solid var(--brand-strong);
    border-right: 3px solid var(--brand-strong);
    transform: rotate(45deg) translate(-2px, -2px);
    display: block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ===== Interactive Grid Layout ===== */
.interactive-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    margin-top: 20px;
    align-items: start;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.interactive-layout.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Guide Scroll Container (Left side) */
.guide-scroll-container {
    padding-right: 10px;
}

.guide-step {
    padding: 60px 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(12, 26, 38, 0.03);
    backdrop-filter: blur(12px);
    margin-bottom: 18vh; /* Slightly wider spacing to increase scroll area */
    opacity: 0.35;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.guide-step.active {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(15, 157, 133, 0.25);
    box-shadow: 0 20px 40px rgba(15, 157, 133, 0.05);
    background: rgba(255, 255, 255, 0.85);
}

.step-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 157, 133, 0.1), rgba(15, 157, 133, 0.05));
    color: var(--brand-strong);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    border: 1px solid rgba(15, 157, 133, 0.15);
}

.guide-step h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
}

.guide-step p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.step-tip {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 143, 60, 0.06), rgba(255, 143, 60, 0.03));
    border-left: 4px solid var(--accent);
    font-size: 13.5px;
    color: #4b3d30;
    line-height: 1.5;
}

.step-tip strong {
    color: #cc661b;
}

.step-data-info {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

.song-list-preview {
    margin-top: 6px;
    list-style-type: none;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 8px 12px;
    border-radius: 8px;
}

/* Mockup Sticky Wrapper (Right side) */
.mockup-sticky-wrapper {
    position: sticky;
    top: 8vh;
    height: 80vh;
    display: flex;
    align-items: flex-start; /* Align mockup at the top of sticky wrapper */
    justify-content: center;
    z-index: 10;
}

/* Phone Frame Mockup */
.phone-mockup {
    width: 320px;
    height: 640px;
    border: 12px solid #1e293b;
    border-radius: 44px;
    background: #0f172a;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22),
                inset 0 4px 10px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-speaker {
    width: 60px;
    height: 5px;
    background: #334155;
    border-radius: 99px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.phone-home-btn {
    width: 100px;
    height: 4px;
    background: #334155;
    border-radius: 99px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.phone-screen {
    flex: 1;
    background: #f8fafc;
    margin: 4px;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

/* Simulated Screens */
.mock-screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
}

.mock-screen.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

/* Mock Browser Header */
.mock-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 10px; /* speaker notch spacing */
}

.mock-logo {
    width: 14px;
    height: 14px;
}

.mock-header span {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    font-family: monospace;
}

/* Mock App Content Area */
.mock-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: radial-gradient(300px at 10% -10%, rgba(15, 157, 133, 0.06) 0%, transparent 60%),
                linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
}

.mock-hero {
    margin-bottom: 10px;
}

.mock-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 157, 133, 0.1);
    color: var(--brand-strong);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mock-hero h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-top: 2px;
}

/* Simulated Cards */
.mock-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.mock-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.mock-seg-btn {
    text-align: center;
    font-size: 10px;
    padding: 6px;
    border-radius: 8px;
    font-weight: 700;
    color: #64748b;
}

.mock-seg-btn.active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mock-field label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 4px;
}

.mock-textarea-container {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    height: 100px;
    padding: 6px;
    overflow-y: auto;
}

.mock-textarea {
    font-size: 9.5px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
    color: #1e293b;
    outline: none;
}

.mock-btn-primary {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: var(--brand);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 157, 133, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
}

.mock-btn-primary.clicked {
    transform: scale(0.96);
    background: var(--brand-strong);
}

/* Stage 1: Split Results Animation styling */
.mock-split-result {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mock-split-result.active {
    opacity: 1;
    transform: translateY(0);
}

.split-card-item {
    background: #ffffff;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    animation: slideInResult 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: calc(var(--delay) * 150ms);
}

@keyframes slideInResult {
    0% { opacity: 0; transform: translateX(-15px); }
    100% { opacity: 1; transform: translateX(0); }
}

.split-card-title {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--brand-strong);
}

.split-card-desc {
    font-size: 8px;
    color: var(--muted);
    margin-top: 2px;
    word-break: break-all;
}

/* Stage 2: Share Page styling */
.mock-input {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
    color: #1e293b;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.mock-mapped-lists {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mapped-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mapped-item span {
    font-size: 9.5px;
    font-weight: 700;
}

.mapped-status.check {
    color: var(--brand);
    font-weight: 800;
    font-size: 8.5px;
}

.mock-link-output {
    margin-top: 12px;
    background: linear-gradient(135deg, #f0faf8 0%, #eaf5f3 100%);
    border: 1px dashed var(--brand);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mock-link-output.active {
    opacity: 1;
    transform: scale(1);
}

.mock-link-output label {
    display: block;
    font-size: 8.5px;
    font-weight: 800;
    color: var(--brand-strong);
    margin-bottom: 4px;
}

.output-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.output-url {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: underline;
    font-family: monospace;
}

.output-copy-btn {
    border: none;
    background: var(--brand);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Stage 3: Bridge Page / App Queueing styling */
.mock-bridge-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.bridge-btn-melon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    border: 1px solid rgba(2, 199, 60, 0.18);
    border-radius: 10px;
    background: rgba(2, 199, 60, 0.04);
    color: #04a532;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.bridge-btn-melon.clicked {
    background: rgba(2, 199, 60, 0.15);
    border-color: rgba(2, 199, 60, 0.35);
    color: #038a29;
    transform: scale(0.97);
}

.mock-app-icon {
    width: 14px;
    height: 14px;
}

/* Mock Melon Music Player Queue overlay */
.mock-player-queue {
    position: absolute;
    bottom: -150px; /* Start hidden below screen */
    left: 8px;
    right: 8px;
    height: 200px;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s ease,
                visibility 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.mock-player-queue.visible {
    transform: translateY(-150px); /* Slide up to show */
    opacity: 1;
    visibility: visible;
}

.player-header {
    background: #0f172a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-title {
    font-size: 10px;
    font-weight: 700;
}

.player-count {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: monospace;
}

.player-tracks-container {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    animation: trackAdd 0.3s ease both;
}

@keyframes trackAdd {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.track-cover {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    flex-shrink: 0;
}

.track-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.track-title {
    font-size: 8.5px;
    font-weight: 700;
    color: var(--ink);
}

.track-artist {
    font-size: 7px;
    color: var(--muted);
}

.track-drag-handle {
    width: 10px;
    height: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.55;
}

.track-drag-handle span {
    width: 100%;
    height: 1.2px;
    background-color: #64748b;
    border-radius: 99px;
    display: block;
}

/* ===== Call to Action & Back Button Styling overrides ===== */
.about-cta {
    text-align: center;
    padding: 80px 20px;
    margin-top: 80px;
    min-height: 80vh; /* Make CTA section cover the screen like Hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-cta h2 {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
}

.about-cta p {
    font-size: clamp(14px, 2vw, 17px);
    color: var(--muted);
    margin-bottom: 32px;
}

.btn-primary-large {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 16px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 157, 133, 0.18);
    transition: transform 0.2s, background 0.2s;
}

.btn-primary-large:hover {
    background: var(--brand-strong);
    transform: translateY(-2px);
}

/* Default Mobile Step Title hidden on Desktop */
.mobile-step-title {
    display: none;
}

/* ===== Media Queries for Responsive Design ===== */

@media (max-width: 900px) {
    .interactive-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Center smartphone mockup on mobile screen */
    .mockup-sticky-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        pointer-events: none; /* Let scroll pass through to document */
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        margin: 0;
    }
    
    .phone-mockup {
        transform: scale(0.85) translateY(-25px); /* Increased size, slightly shifted up */
        transform-origin: center center;
        margin-top: 0;
        pointer-events: auto; /* Re-enable pointer events on the phone itself */
    }
    
    .guide-scroll-container {
        padding-bottom: 0;
    }
    
    /* Make step cards completely invisible, serving only as structural scroll depth triggers */
    .guide-step {
        opacity: 0 !important;
        pointer-events: none;
        margin-bottom: 75vh; /* Keep sufficient height to scroll between trigger steps */
        padding: 0;
        height: 15vh;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        transform: none !important;
        margin-bottom: 50vh; /* Decreased margin-bottom to balance height */
        height: 50vh; /* Increased height to widen step visibility zones */
    }
    
    .guide-step.active {
        opacity: 0 !important;
        background: none !important;
    }

    /* Floating Step Title Bar on Mobile bottom */
    .mobile-step-title {
        display: block;
        position: fixed;
        bottom: 45px; /* Raised position for better accessibility */
        left: 20px;
        right: 20px;
        padding: 14px 20px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(15, 157, 133, 0.2);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(12, 26, 38, 0.08);
        backdrop-filter: blur(10px);
        text-align: center;
        z-index: 100;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .interactive-layout.visible ~ .mobile-step-title {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-step-title .m-title-row {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-step-title .m-badge {
        display: inline-block;
        padding: 3px 8px;
        background: rgba(15, 157, 133, 0.1);
        color: var(--brand-strong);
        font-size: 10px;
        font-weight: 800;
        border-radius: 6px;
        margin-right: 8px;
        letter-spacing: 0.05em;
    }
    
    .mobile-step-title .m-title {
        font-size: 13.5px;
        font-weight: 800;
        color: var(--ink);
    }

    .mobile-step-title .m-desc {
        font-size: 11px;
        color: var(--muted);
        line-height: 1.4;
        font-weight: 500;
        margin-top: 2px;
    }
}

@media (max-width: 640px) {
    .about-container {
        padding: 0 6px;
    }
    
    .about-cta {
        padding: 40px 16px;
    }
    
    .btn-primary-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .phone-mockup {
        transform: scale(0.78) translateY(-25px); /* Slightly smaller but still large enough for small viewports */
    }
}
