/* =============================================================================
   SAPawn Landing Page Styles
   Clean, professional design matching Xero/Sage aesthetic
   ============================================================================= */

:root {
    --landing-primary: #2d6595;
    --landing-primary-dark: #16365a;
    --landing-accent: #3498db;
    --landing-dark: #2c3e50;
    --landing-success: #198754;
    --landing-bg-light: #f8f9fa;
    --landing-text: #212529;
    --landing-text-muted: #6c757d;
}

/* Typography */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    color: var(--landing-text);
}

/* =============================================================================
   Navbar
   ============================================================================= */
.landing-navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.landing-navbar.scrolled {
    background: linear-gradient(180deg, #2d6595 0%, #16365a 45%, #1e4d7a 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.landing-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
}

.landing-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.2s;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link:focus {
    color: #fff;
}

.landing-navbar .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

.landing-navbar .btn-light {
    font-weight: 600;
}

/* =============================================================================
   Hero Section — Split Routing
   ============================================================================= */
.split-hero {
    background: linear-gradient(135deg, #2d6595 0%, #16365a 60%, #1e4d7a 100%);
    color: #fff;
    padding: 2rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.split-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom right, transparent 49.5%, #fff 50%);
}

.split-hero-brand h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.split-hero-brand .lead {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Path cards */
.split-card {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    height: 100%;
}

.split-card:not(.split-card-image):hover {
    transform: translateY(-6px);
    color: #fff;
    text-decoration: none;
}

.split-card-customer:not(.split-card-image):hover {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.15);
}

.split-card-shop:not(.split-card-image):hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.15);
}

.split-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.split-card-customer .split-card-icon {
    background: rgba(39, 174, 96, 0.2);
}

.split-card-shop .split-card-icon {
    background: rgba(52, 152, 219, 0.2);
}

.split-card-icon i {
    font-size: 2.2rem;
}

.split-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.split-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.split-card-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.split-card-customer .split-card-btn {
    background: #27ae60;
}

.split-card-customer:hover .split-card-btn {
    background: #219a52;
}

.split-card-shop .split-card-btn {
    background: #3498db;
}

.split-card-shop:hover .split-card-btn {
    background: #2980b9;
}

.split-card-links {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Image-backed card (marketplace banner) */
.split-card-image {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 0;
    min-height: 320px;
    border: none;
    border-radius: 16px;
}

.split-card-image {
    transform: none !important;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.split-card-image:hover {
    transform: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    filter: brightness(1.05);
}

.split-card-image:focus,
.split-card-image:active {
    transform: none !important;
}

.split-sub-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.split-sub-link:hover {
    color: #fff;
}

/* Hidden navbar — shown via JS when scrolled past hero */
.landing-nav-hidden {
    display: none;
}

#landing-nav.landing-navbar {
    background: linear-gradient(180deg, #2d6595 0%, #16365a 45%, #1e4d7a 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Legacy hero styles kept for sections below */
.landing-hero .btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* =============================================================================
   Section Styles
   ============================================================================= */
.landing-section {
    padding: 5rem 0;
}

.landing-section-gray {
    background-color: var(--landing-bg-light);
}

.landing-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--landing-dark);
}

.landing-section-subtitle {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* =============================================================================
   Feature Cards
   ============================================================================= */
.landing-feature-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background: #fff;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.landing-feature-icon i {
    font-size: 1.5rem;
    color: var(--landing-accent);
}

.landing-feature-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.landing-feature-card p {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* =============================================================================
   How It Works — Steps
   ============================================================================= */
.landing-step {
    text-align: center;
    padding: 1.5rem;
}

.landing-step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--landing-accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.landing-step h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.landing-step p {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Connector line between steps */
@media (min-width: 768px) {
    .landing-steps-row {
        position: relative;
    }
    .landing-steps-row::before {
        content: '';
        position: absolute;
        top: 32px;
        left: 25%;
        right: 25%;
        height: 2px;
        background: #dee2e6;
        z-index: 0;
    }
    .landing-step-number {
        position: relative;
        z-index: 1;
    }
}

/* =============================================================================
   Pricing Card
   ============================================================================= */
.landing-pricing-card {
    max-width: 480px;
    margin: 0 auto;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.landing-pricing-card .plan-name {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--landing-accent);
    margin-bottom: 1rem;
}

.landing-pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--landing-dark);
    line-height: 1;
}

.landing-pricing-card .price-period {
    font-size: 1rem;
    color: var(--landing-text-muted);
    font-weight: 400;
}

.landing-pricing-card .price-note {
    font-size: 0.9rem;
    color: var(--landing-text-muted);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

.landing-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.landing-pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-pricing-features li i {
    color: var(--landing-success);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.landing-pricing-card .btn-lg {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
}

.landing-pricing-card .terms {
    font-size: 0.85rem;
    color: var(--landing-text-muted);
    margin-top: 1rem;
}

/* =============================================================================
   FAQ Accordion
   ============================================================================= */
.landing-faq .accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.landing-faq .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--landing-dark);
    padding: 1.25rem 1.5rem;
}

.landing-faq .accordion-button:not(.collapsed) {
    background-color: rgba(52, 152, 219, 0.05);
    color: var(--landing-primary);
    box-shadow: none;
}

.landing-faq .accordion-body {
    color: var(--landing-text-muted);
    line-height: 1.7;
    padding: 0 1.5rem 1.25rem;
}

/* =============================================================================
   CTA Section
   ============================================================================= */
.landing-cta {
    background: linear-gradient(135deg, #2d6595 0%, #16365a 60%, #1e4d7a 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.landing-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landing-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.landing-cta .btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* =============================================================================
   Footer
   ============================================================================= */
.landing-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3.5rem 0 1.5rem;
}

.landing-footer h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.landing-footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer a:hover {
    color: #fff;
}

.landing-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.landing-footer .footer-brand p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.6;
}

.landing-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #95a5a6;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 991.98px) {
    .split-hero {
        padding: 4rem 0 3rem;
    }

    .split-hero-brand h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .split-hero {
        padding: 3rem 0 2.5rem;
        min-height: 0;
    }

    .split-hero-brand h1 {
        font-size: 1.8rem;
    }

    .split-hero-brand .lead {
        font-size: 1rem;
    }

    .split-hero-brand {
        margin-bottom: 2rem !important;
    }

    .split-card {
        padding: 1.75rem 1.25rem;
    }

    .split-card-image {
        min-height: 260px;
    }

    .split-card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .split-card-icon i {
        font-size: 1.7rem;
    }

    .split-card h2 {
        font-size: 1.25rem;
    }

    .landing-section {
        padding: 3.5rem 0;
    }

    .landing-section-title {
        font-size: 1.75rem;
    }

    .landing-pricing-card {
        padding: 2rem 1.5rem;
    }

    .landing-cta h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .split-hero-brand h1 {
        font-size: 1.5rem;
    }

    .split-card h2 {
        font-size: 1.1rem;
    }

    .split-card p {
        font-size: 0.85rem;
    }
}
