/* assets/how.css */
/* ============================================
   HOW IT WORKS PAGE - PAYCRE
   Complete CSS with video player and step numbers
   ============================================ */

/* ----- PAGE SPECIFIC OVERRIDES ----- */
.how-it-works-page {
    background: #f8fafc;
}

/* Override container styles from new-style.css */
.how-it-works-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ----- HERO SECTION - with image background ----- */
.how-it-works-page .hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    margin-top: 0;
    overflow: hidden;
}

.how-it-works-page .hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.how-it-works-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.how-it-works-page .hero-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.how-it-works-page .hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.how-it-works-page .hero .hero-subtext {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Hero buttons */
.how-it-works-page .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.how-it-works-page .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.how-it-works-page .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.how-it-works-page .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 180px;
    text-align: center;
    gap: 8px;
}

.how-it-works-page .link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* ----- SECTION HEADER ----- */
.how-it-works-page .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works-page .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.how-it-works-page .section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* ----- 2. PILLARS SECTION - 4 boxes (3 text + 1 video) ----- */
.how-it-works-page .pillars-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.how-it-works-page .pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.how-it-works-page .pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.how-it-works-page .pillar-card:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.how-it-works-page .pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.how-it-works-page .pillar-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.how-it-works-page .pillar-card p {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Video card specific styles */
.how-it-works-page .video-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.how-it-works-page .video-container {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    cursor: pointer;
}

.how-it-works-page .pillar-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Controls Overlay */
.how-it-works-page .video-controls {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.how-it-works-page .video-container:hover .video-controls {
    opacity: 1;
}

/* Video Buttons */
.how-it-works-page .video-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
    flex-shrink: 0;
}

.how-it-works-page .video-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.how-it-works-page .video-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Progress Bar */
.how-it-works-page .progress-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.how-it-works-page .progress-bar-bg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.how-it-works-page .progress-fill {
    width: 0%;
    height: 100%;
    background: #0ea5e9;
    border-radius: 2px;
    position: relative;
}

.how-it-works-page .progress-handle {
    width: 10px;
    height: 10px;
    background: #0ea5e9;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.how-it-works-page .progress-bar-bg:hover .progress-handle {
    opacity: 1;
}

.how-it-works-page .time-display {
    font-size: 10px;
    color: white;
    font-family: monospace;
    min-width: 70px;
    flex-shrink: 0;
}

/* Hide/show play/pause icons */
.how-it-works-page .play-icon,
.how-it-works-page .pause-icon {
    display: block;
}

/* Fullscreen styles */
.how-it-works-page .video-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.how-it-works-page .video-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.how-it-works-page .video-container:-webkit-full-screen video {
    object-fit: contain;
}

.how-it-works-page .video-container:fullscreen video {
    object-fit: contain;
}

.how-it-works-page .video-container:-webkit-full-screen .video-controls {
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.how-it-works-page .video-container:fullscreen .video-controls {
    bottom: 20px;
    left: 20px;
    right: 20px;
}

/* ----- 3. TIMELINE SECTION - 2 rows of 3 boxes with step numbers ----- */
.how-it-works-page .timeline-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.how-it-works-page .timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.how-it-works-page .timeline-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.how-it-works-page .timeline-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-it-works-page .step-number {
    width: 40px;
    height: 40px;
    background: #0ea5e9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 0.75rem;
    flex-shrink: 0;
}

.how-it-works-page .step-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.how-it-works-page .step-card:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.how-it-works-page .step-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.how-it-works-page .step-card p {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.how-it-works-page .step-mock {
    background: #f1f5f9;
    padding: 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-family: monospace;
    color: #0284c7;
    margin-top: auto;
}

.how-it-works-page .timeline-connector {
    width: 2rem;
    height: 2px;
    background: #cbd5e1;
    align-self: center;
    flex-shrink: 0;
}

/* ----- 4. TRUST SECTION ----- */
.how-it-works-page .trust-section {
    padding: 5rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.how-it-works-page .trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.how-it-works-page .trust-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.how-it-works-page .trust-card:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9;
}

.how-it-works-page .trust-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.how-it-works-page .trust-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.how-it-works-page .trust-card p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

/* ----- 5. USE CASES SECTION ----- */
.how-it-works-page .use-cases-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.how-it-works-page .use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.how-it-works-page .use-case-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.how-it-works-page .use-case-card:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9;
}

.how-it-works-page .use-case-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.how-it-works-page .scenario {
    font-size: 0.7rem;
    color: #0ea5e9;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.how-it-works-page .value {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

/* ----- 6. COMPARISON SECTION ----- */
.how-it-works-page .comparison-section {
    padding: 5rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.how-it-works-page .comparison-table-wrapper {
    overflow-x: auto;
}

.how-it-works-page .comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.how-it-works-page .comparison-table th,
.how-it-works-page .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.how-it-works-page .comparison-table th {
    font-weight: 600;
    background: #f8fafc;
    color: #0f172a;
}

.how-it-works-page .highlight-col {
    background: #e0f2fe;
    color: #0284c7 !important;
    font-weight: 600;
}

.how-it-works-page .no {
    color: #ef4444;
}

.how-it-works-page .yes {
    color: #10b981;
}

.how-it-works-page .partial {
    color: #f59e0b;
}

/* ----- 7. DEMO DEAL SECTION ----- */
.how-it-works-page .demo-deal-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.how-it-works-page .demo-deal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.how-it-works-page .demo-deal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.how-it-works-page .deal-location {
    color: #0ea5e9;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.how-it-works-page .demo-deal-progress {
    margin-bottom: 1.5rem;
}

.how-it-works-page .demo-milestone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.875rem;
}

.how-it-works-page .demo-milestone span:first-child {
    flex: 2;
    text-align: left;
}

.how-it-works-page .demo-milestone span:nth-child(2) {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.how-it-works-page .demo-milestone .badge {
    flex: 1;
    text-align: right;
}

.how-it-works-page .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-block;
    width: auto;
}

.how-it-works-page .badge.completed {
    background: #d1fae5;
    color: #059669;
}

.how-it-works-page .badge.active {
    background: #e0f2fe;
    color: #0284c7;
}

.how-it-works-page .demo-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.how-it-works-page .demo-progress-fill {
    height: 100%;
    background: #0ea5e9;
    width: 0%;
    border-radius: 3px;
}

.how-it-works-page .demo-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.how-it-works-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.how-it-works-page .btn-primary {
    background: #0ea5e9;
    color: white;
}

.how-it-works-page .btn-primary:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.how-it-works-page .demo-deal-visual {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.how-it-works-page .placeholder-visual {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
}

.how-it-works-page .property-badge {
    background: #0ea5e9;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.how-it-works-page .visual-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    height: 120px;
    margin-bottom: 1rem;
}

.how-it-works-page .chart-bar {
    width: 35px;
    background: #0ea5e9;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.how-it-works-page .property-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #64748b;
}

/* ----- 8. FINAL CTA SECTION ----- */
.how-it-works-page .final-cta-section {
    padding: 5rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.how-it-works-page .final-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works-page .final-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f172a;
}

.how-it-works-page .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.how-it-works-page .btn-secondary {
    background: transparent;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.how-it-works-page .btn-secondary:hover {
    background: #f8fafc;
    border-color: #0ea5e9;
}

.how-it-works-page .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 1024px) {
    .how-it-works-page .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .how-it-works-page .trust-grid,
    .how-it-works-page .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works-page .timeline-row {
        flex-wrap: wrap;
    }
    
    .how-it-works-page .timeline-step {
        min-width: calc(33.33% - 1rem);
    }

    .how-it-works-page .timeline-connector {
        display: none;
    }

    .how-it-works-page .demo-deal-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .how-it-works-page .container {
        padding: 0 1.5rem;
    }

    .how-it-works-page .hero .hero-subtext {
        font-size: 1rem;
    }

    .how-it-works-page .pillars-grid,
    .how-it-works-page .trust-grid,
    .how-it-works-page .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-page .timeline-step {
        min-width: 100%;
    }

    .how-it-works-page .section-header h2 {
        font-size: 1.5rem;
    }

    .how-it-works-page .comparison-table th,
    .how-it-works-page .comparison-table td {
        padding: 0.75rem;
        font-size: 0.7rem;
    }

    .how-it-works-page .demo-deal-container {
        padding: 1.5rem;
    }

    .how-it-works-page .final-cta h2 {
        font-size: 1.5rem;
    }
    
    .how-it-works-page .demo-milestone {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .how-it-works-page .demo-milestone span:first-child {
        flex: 1 1 100%;
        text-align: left;
    }
    
    .how-it-works-page .demo-milestone span:nth-child(2),
    .how-it-works-page .demo-milestone .badge {
        flex: 1;
        text-align: left;
    }

    /* Video controls responsive */
    .how-it-works-page .video-controls {
        padding: 4px 10px;
        gap: 8px;
    }
    
    .how-it-works-page .time-display {
        font-size: 9px;
        min-width: 60px;
    }
    
    .how-it-works-page .video-btn {
        padding: 4px;
    }
    
    .how-it-works-page .video-btn svg {
        width: 14px;
        height: 14px;
    }
}