/* ========================================
   MainStreet Exchange - Products Page Styles
   ======================================== */

/* Import base styles */
@import url('homepage.css');

/* ========================================
   PRODUCTS HERO
   ======================================== */

.products-hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    text-align: center;
}

.hero-content-center {
    max-width: 900px;
    margin: 0 auto;
}

.products-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.products-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-badge-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

.hero-badge-item .badge-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ========================================
   PRODUCT STRUCTURE VISUAL
   ======================================== */

.product-structure {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.structure-visual {
    max-width: 600px;
    margin: 0 auto;
}

.structure-layer {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 0 auto;
}

.structure-layer.layer-1 {
    border: 3px solid #3b82f6;
}

.structure-layer.layer-2 {
    border: 3px solid #8b5cf6;
}

.structure-layer.layer-3 {
    border: 3px solid #ec4899;
}

.structure-layer.layer-4 {
    border: 3px solid #f59e0b;
}

.layer-label {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.layer-content {
    text-align: center;
}

.layer-content h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.layer-content p {
    color: #64748b;
    margin: 0;
}

.structure-arrow {
    text-align: center;
    font-size: 2rem;
    color: #cbd5e1;
    padding: 1rem 0;
}

/* ========================================
   PRODUCT SECTIONS
   ======================================== */

.product-section {
    padding: 5rem 2rem;
}

.product-section.alternate {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   PRODUCT GRID (Tier 0, 0B, 0C)
   ======================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-card.featured {
    border-color: #2563eb;
    border-width: 3px;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 10;
}

.card-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
}

.tier-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tier-badge.level-1 {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}

.tier-badge.level-2 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.tier-badge.level-3 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.tier-badge.level-4 {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.tier-badge.level-5 {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
}

.tier-badge.level-6 {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
}

.card-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.price-tag {
    margin: 1rem 0;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
}

.period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.price-alt {
    font-size: 0.875rem;
    color: #64748b;
}

.card-body {
    padding: 2rem;
    flex: 1;
}

.what-you-provide,
.what-you-get {
    margin-bottom: 2rem;
}

.what-you-provide h4,
.what-you-get h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.what-you-provide ul,
.what-you-get ul {
    list-style: none;
    padding: 0;
}

.what-you-provide li,
.what-you-get li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.what-you-provide li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-weight: 700;
}

.what-you-get li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.no-docs-badge,
.docs-badge {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.no-docs-badge {
    background: #d1fae5;
    color: #065f46;
}

.docs-badge {
    background: #fef3c7;
    color: #92400e;
}

.trust-indicator {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.trust-badge {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.trust-badge.earned {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}

.trust-badge.earned-plus {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.trust-badge.verified {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.trust-badge.verified-full {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.trust-badge.verified-premium {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
}

.card-footer {
    padding: 2rem;
    background: #f8fafc;
}

/* ========================================
   SHOWCASE CARD (FRP, QoE)
   ======================================== */

.product-showcase {
    max-width: 1000px;
    margin: 3rem auto 0;
}

.showcase-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.showcase-card.premium {
    border-color: #ec4899;
    border-width: 3px;
    box-shadow: 0 12px 48px rgba(236, 72, 153, 0.15);
}

.showcase-header {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e5e7eb;
}

.showcase-header h3 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.showcase-tagline {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.price-tag-large {
    margin: 1.5rem 0;
}

.price-tag-large .price,
.price-tag-large .price-range {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
}

.showcase-body {
    padding: 3rem;
}

.showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.showcase-side h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.showcase-side ul {
    list-style: none;
    padding: 0;
}

.showcase-side li {
    padding: 0.625rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
    line-height: 1.7;
}

.showcase-side li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.25rem;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.value-prop {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.prop-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.value-prop strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.value-prop p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.qoe-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-radius: 12px;
}

.qoe-benefit {
    text-align: center;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 900;
    color: #9f1239;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.benefit-label {
    font-size: 0.875rem;
    color: #831843;
    font-weight: 600;
}

.qoe-badge-showcase {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.badge-icon-large {
    font-size: 3rem;
}

.showcase-footer {
    padding: 3rem;
    background: #f8fafc;
    text-align: center;
}

.footer-note {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* ========================================
   MODULE CARDS
   ======================================== */

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.module-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.module-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e5e7eb;
}

.module-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.module-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.base-text {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 600;
}

.add-on-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
}

.module-body {
    padding: 2rem;
}

.module-desc {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.module-section {
    margin-bottom: 2rem;
}

.module-section h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.module-section ul {
    list-style: none;
    padding: 0;
}

.module-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.module-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.module-footer {
    padding: 2rem;
    background: #f8fafc;
}

.combo-offer {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 16px;
    text-align: center;
}

.combo-content h3 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.combo-content p {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-section {
    padding: 5rem 2rem;
    background: #ffffff;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.comparison-table th.feature-col {
    text-align: left;
    font-size: 1rem;
}

.price-small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.25rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
    background: #f8fafc;
}

.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    color: #475569;
}

.comparison-table td.feature-name {
    text-align: left;
    font-weight: 600;
    color: #1e293b;
}

.comparison-table .check {
    color: #10b981;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ========================================
   UPGRADE PATH
   ======================================== */

.upgrade-path {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.journey-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.journey-step {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.journey-step.highlight {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.journey-step.success {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}

.journey-step h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.journey-step p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.step-time {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.journey-arrow {
    font-size: 2rem;
    color: #cbd5e1;
    font-weight: 300;
}

.journey-note {
    margin-top: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.journey-note p {
    color: #475569;
    font-size: 1.125rem;
    margin: 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: 5rem 2rem;
    background: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.faq-item h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.faq-item p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-note {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .showcase-split,
    .value-props,
    .qoe-benefits {
        grid-template-columns: 1fr;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-hero .hero-title {
        font-size: 2rem;
    }

    .hero-badge-row {
        flex-direction: column;
        align-items: center;
    }

    .journey-visual {
        flex-direction: column;
    }

    .journey-arrow {
        transform: rotate(90deg);
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
