/* =============================================
   SHOPIFY PLUS LANDING PAGE STYLES
   High-conversion landing page for /services/shopify-plus-development
   ============================================= */

/* Hero Section */
.sp-hero {
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-20);
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 40%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 52, 120, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sp-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 95, 180, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Badges */
.sp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: var(--font-semibold);
    font-family: var(--font-primary);
}

.sp-badge-partner {
    background: linear-gradient(135deg, #003478, #1a5fb4);
    color: white;
}

.sp-badge-partner svg {
    opacity: 0.9;
}

.sp-badge-live {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.sp-pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Hero Title */
.sp-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.sp-hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 560px;
}

.sp-hero-subtitle strong {
    color: var(--color-primary);
}

/* Hero CTA */
.sp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

/* Hero Trust */
.sp-hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
}

.sp-trust-avatars {
    display: flex;
}

.sp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: var(--font-bold);
    font-family: var(--font-primary);
    border: 2px solid white;
    margin-left: -8px;
}

.sp-avatar:first-child {
    margin-left: 0;
}

.sp-avatar:nth-child(2) { background: #1a5fb4; }
.sp-avatar:nth-child(3) { background: #0047a3; }
.sp-avatar:nth-child(4) { background: #002a5c; }
.sp-avatar-count { background: var(--color-accent) !important; color: #1a1a2e; }

.sp-trust-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 1px;
}

.sp-trust-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Visual - Card Stack */
.sp-hero-visual {
    position: relative;
    min-height: 420px;
}

.sp-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 52, 120, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.sp-hero-card-stack {
    position: relative;
    width: 100%;
    height: 420px;
}

/* Center card */
.sp-hero-center-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 52, 120, 0.15);
    overflow: hidden;
    z-index: 5;
    border: 1px solid rgba(0, 52, 120, 0.08);
}

.sp-center-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.sp-center-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.sp-dot-green { background: #22c55e; }
.sp-dot-yellow { background: #f5a623; }
.sp-dot-red { background: #ef4444; }

.sp-center-content {
    padding: 20px;
    text-align: center;
}

.sp-center-logo {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    margin-bottom: 16px;
}
.sp-center-logo span {
    color: var(--color-primary);
}

.sp-center-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.sp-center-stat {
    display: flex;
    flex-direction: column;
}

.sp-stat-num {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.sp-stat-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.sp-center-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 6px;
}

.sp-center-bar-fill {
    height: 100%;
    width: 78%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-light));
    border-radius: 100px;
    animation: barFill 2s ease-out forwards;
}

@keyframes barFill {
    from { width: 0; }
    to { width: 78%; }
}

.sp-center-bar-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Floating metric cards */
.sp-metric-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0, 52, 120, 0.12);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 52, 120, 0.06);
    animation: float 4s ease-in-out infinite;
}

.sp-metric-1 { top: 10px; left: 0; animation-delay: 0s; }
.sp-metric-2 { top: 20px; right: -10px; animation-delay: 1s; }
.sp-metric-3 { bottom: 30px; left: -10px; animation-delay: 2s; }
.sp-metric-4 { bottom: 10px; right: 0; animation-delay: 0.5s; }

.sp-metric-icon {
    font-size: 22px;
}

.sp-metric-value {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.sp-metric-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Trust Bar */
.sp-trust-bar {
    padding: var(--space-8) 0;
    background: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sp-trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.sp-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sp-trust-icon-box {
    width: 44px;
    height: 44px;
    background: var(--color-primary-glow);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sp-trust-number {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: 1.2;
}

.sp-trust-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.sp-trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Pain Points Section */
.sp-pain-section {
    background: white;
}

.sp-pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.sp-pain-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sp-pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary-light));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sp-pain-card:hover {
    border-color: rgba(0, 52, 120, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.sp-pain-card:hover::before {
    opacity: 1;
}

.sp-pain-emoji {
    font-size: 28px;
    margin-bottom: var(--space-4);
}

.sp-pain-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.sp-pain-problem {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.sp-pain-arrow {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    margin-bottom: var(--space-3);
}

.sp-pain-solution {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.sp-pain-solution strong {
    color: var(--color-primary);
}

/* Features Grid */
.sp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.sp-feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
}

.sp-feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sp-feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 52, 120, 0.08), rgba(26, 95, 180, 0.12));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.sp-feature-card:hover .sp-feature-icon-wrap {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.sp-feature-card h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
}

.sp-feature-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Comparison Table */
.sp-comparison-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.sp-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.sp-comparison-table thead th {
    padding: var(--space-5) var(--space-6);
    text-align: left;
    font-family: var(--font-primary);
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.sp-comparison-table tbody td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.sp-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.sp-comparison-table tbody tr:hover {
    background: rgba(0, 52, 120, 0.02);
}

.sp-plus-col {
    background: rgba(0, 52, 120, 0.03) !important;
    color: var(--text-primary) !important;
    font-weight: var(--font-medium);
}

thead .sp-plus-col {
    background: var(--color-primary) !important;
    color: white !important;
}

.sp-yes {
    color: #22c55e;
    font-weight: var(--font-bold);
    margin-right: 4px;
}

.sp-no {
    color: #ef4444;
    font-weight: var(--font-bold);
    margin-right: 4px;
}

.sp-comparison-cta {
    text-align: center;
    margin-top: var(--space-10);
}

/* Process Timeline */
.sp-process-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

.sp-process-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary-light), transparent);
}

.sp-process-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    margin-bottom: var(--space-10);
    position: relative;
}

.sp-process-step:last-child {
    margin-bottom: 0;
}

.sp-step-number {
    position: absolute;
    left: -60px;
    top: 0;
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    z-index: 2;
    transition: all var(--transition-normal);
}

.sp-process-step:hover .sp-step-number {
    background: var(--color-primary);
    color: white;
    transform: scale(1.15);
}

.sp-step-content {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    flex: 1;
    transition: all var(--transition-normal);
}

.sp-process-step:hover .sp-step-content {
    border-color: rgba(0, 52, 120, 0.2);
    box-shadow: var(--shadow-md);
}

.sp-step-content h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.sp-step-content p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.sp-step-time {
    display: inline-block;
    font-size: 12px;
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    background: rgba(0, 52, 120, 0.06);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* Results Grid */
.sp-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.sp-result-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sp-result-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.sp-result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sp-result-card:hover::after {
    transform: scaleX(1);
}

.sp-result-metric {
    font-family: var(--font-primary);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.sp-result-label {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.sp-result-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.sp-result-client {
    font-size: 12px;
    font-weight: var(--font-medium);
    color: var(--text-muted);
    font-style: italic;
}

/* Pricing Grid */
.sp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.sp-pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.sp-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sp-pricing-featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.sp-pricing-featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.sp-pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-bold);
    font-family: var(--font-primary);
    white-space: nowrap;
}

.sp-pricing-label {
    font-size: 12px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.sp-pricing-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.sp-pricing-price {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.sp-pricing-price span {
    font-family: var(--font-primary);
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
}

.sp-pricing-price small {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--text-muted);
}

.sp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-8);
    text-align: left;
}

.sp-pricing-features li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
    padding-left: 24px;
    position: relative;
}

.sp-pricing-features li:last-child {
    border-bottom: none;
}

.sp-pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: var(--font-bold);
}

.sp-pricing-card .btn {
    width: 100%;
}

/* Final CTA */
.sp-final-cta {
    position: relative;
}

.sp-cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
    animation: pulse 3s infinite;
}

.sp-cta-guarantee {
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: none !important;
}

/* Sticky Bottom Bar */
.sp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: var(--space-3) 0;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.sp-sticky-bar.sp-sticky-visible {
    transform: translateY(0);
}

.sp-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.sp-sticky-text strong {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--text-primary);
    display: block;
}

.sp-sticky-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.sp-sticky-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .sp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sp-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sp-hero-content {
        order: 1;
    }

    .sp-hero-visual {
        order: 0;
        min-height: 350px;
    }

    .sp-hero-subtitle {
        max-width: 100%;
        margin: 0 auto var(--space-8);
    }

    .sp-hero-cta {
        justify-content: center;
    }

    .sp-hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sp-hero-badges {
        justify-content: center;
    }

    .sp-pain-grid {
        grid-template-columns: 1fr;
    }

    .sp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-results-grid {
        grid-template-columns: 1fr;
    }

    .sp-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .sp-pricing-featured {
        transform: none;
    }

    .sp-pricing-featured:hover {
        transform: translateY(-5px);
    }

    .sp-comparison-table-wrap {
        max-width: 100%;
    }

    .sp-trust-divider {
        display: none;
    }

    .sp-trust-items {
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .sp-hero {
        padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-12);
    }

    .sp-hero-visual {
        min-height: 300px;
    }

    .sp-metric-card {
        padding: 10px 14px;
        font-size: 13px;
    }

    .sp-metric-value {
        font-size: 14px;
    }

    .sp-hero-center-card {
        width: 240px;
    }

    .sp-features-grid {
        grid-template-columns: 1fr;
    }

    .sp-process-timeline {
        padding-left: 50px;
    }

    .sp-step-number {
        left: -50px;
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .sp-process-line {
        left: 20px;
    }

    .sp-sticky-text span {
        display: none;
    }
}

@media (max-width: 480px) {
    .sp-trust-items {
        flex-direction: column;
        gap: var(--space-4);
    }

    .sp-metric-1, .sp-metric-2 {
        top: 5px;
    }

    .sp-metric-3, .sp-metric-4 {
        bottom: 5px;
    }

    .sp-hero-card-stack {
        height: 350px;
    }

    .sp-metric-card {
        padding: 8px 12px;
    }

    .sp-metric-label {
        display: none;
    }

    .sp-comparison-table {
        font-size: 12px;
    }

    .sp-comparison-table thead th,
    .sp-comparison-table tbody td {
        padding: var(--space-3) var(--space-4);
    }
}
