/* Public Pages CSS - RetailReady EDI Platform */

/* ==========================================
   CSS Variables
   ========================================== */
:root {
    --primary-color: #2D5A27;
    --primary-hover: #234620;
    --secondary-color: #1a365d;
    --accent-color: #ed8936;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-cream: #f5f3ef;
    --bg-light: #fafaf8;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ==========================================
   Base Styles
   ========================================== */
.public-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================
   Header / Navigation
   ========================================== */
.public-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.public-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.public-nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.public-nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.public-nav-link:hover {
    color: var(--primary-color);
}

.public-nav-actions {
    display: flex;
    gap: 0.75rem;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-arrow::after {
    content: '\2192';
    margin-left: 0.25rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: var(--bg-cream);
    padding: 4rem 2rem 6rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.hero-image {
    position: relative;
}

.hero-illustration {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.hero-illustration img {
    width: 100%;
    height: auto;
}

/* Floating icons around hero illustration */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
}

.floating-icon.icon-1 { top: 10%; left: -5%; }
.floating-icon.icon-2 { top: 5%; right: 10%; }
.floating-icon.icon-3 { bottom: 30%; right: -5%; }
.floating-icon.icon-4 { bottom: 10%; left: 10%; }

/* ==========================================
   Features Section
   ========================================== */
.features {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
}

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

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--bg-cream);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* ==========================================
   Pricing Section
   ========================================== */
.pricing {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    background: var(--text-dark);
    color: white;
}

.pricing-card.popular .pricing-price,
.pricing-card.popular h3 {
    color: white;
}

.pricing-card.popular .pricing-features li {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-card.popular .pricing-price span {
    color: rgba(255, 255, 255, 0.6);
}

.pricing-description {
    color: var(--text-medium);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card.popular .pricing-description {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.pricing-card.popular .pricing-features li::before {
    color: var(--accent-color);
}

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

.pricing-card.popular .btn-primary {
    background: white;
    color: var(--text-dark);
}

.pricing-card.popular .btn-primary:hover {
    background: var(--bg-light);
}

/* ==========================================
   Retailers Section
   ========================================== */
.retailers {
    padding: 4rem 2rem;
    background: var(--bg-cream);
}

.retailers-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.retailers h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.retailers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.retailer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.retailer-logo:hover {
    opacity: 1;
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.testimonial-quote {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.testimonial-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-info p {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 5rem 2rem;
    background: var(--primary-color);
    text-align: center;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

/* ==========================================
   Footer
   ========================================== */
.public-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-brand .public-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .public-logo-icon {
    background: white;
    color: var(--primary-color);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-illustration {
        max-width: 350px;
        margin: 0 auto;
    }

    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }

    .steps-container::before {
        display: none;
    }

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

@media (max-width: 768px) {
    .public-header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .public-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .public-nav-links {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .retailers-grid {
        gap: 2rem;
    }
}

/* ==========================================
   Pricing Page Specific Styles
   ========================================== */
.pricing-hero {
    background: var(--bg-cream);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pricing-hero p {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-top: 2rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================
   Comparison Table Section
   ========================================== */
.comparison-section {
    padding: 5rem 2rem;
    background: var(--bg-cream);
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-width: 700px;
}

.comparison-table thead {
    background: var(--bg-light);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table th:first-child {
    text-align: left;
    padding-left: 1.5rem;
}

.comparison-table th.highlight {
    background: var(--text-dark);
    color: white;
}

.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.comparison-table td:first-child {
    text-align: left;
    padding-left: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.comparison-table td.highlight {
    background: rgba(26, 32, 44, 0.03);
}

.comparison-table tr.section-row td {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tfoot td {
    padding: 1.5rem 1rem;
    border-bottom: none;
}

.comparison-table .check {
    color: var(--success-color);
    font-weight: 700;
}

.comparison-table .dash {
    color: var(--text-light);
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-section {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ==========================================
   Responsive Design - Pricing Page
   ========================================== */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2.25rem;
    }

    .pricing-hero p {
        font-size: 1rem;
    }

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

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        padding-left: 1rem;
    }
}
