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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    padding: 40px 20px;
    line-height: 1.6;
    color: #333;
}

.invoice-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 60px;
}

/* Header */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 2px solid #333;
    margin-bottom: 40px;
}

.logo-section {
    flex: 1;
}

.company-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.invoice-info {
    flex: 1;
    text-align: right;
}

.invoice-info h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: 14px;
}

.meta-item .label {
    color: #666;
    font-weight: 500;
}

.meta-item .value {
    color: #333;
    min-width: 150px;
}

/* Client Section */
.client-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.client-box {
    padding: 20px;
    background: #f9f9f9;
    border-left: 3px solid #333;
}

.client-box h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

.client-box p {
    margin: 4px 0;
    font-size: 14px;
}

.client-box strong {
    font-size: 16px;
    color: #333;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.overview-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Deliverables Table */
.deliverables-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.deliverables-table thead {
    background: #f5f5f5;
}

.deliverables-table th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 2px solid #333;
}

.deliverables-table td {
    padding: 20px 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.deliverables-table tbody tr:last-child td {
    border-bottom: 2px solid #333;
}

.feature-list {
    margin-top: 12px;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.feature-list li {
    margin: 6px 0;
}

.demo-link {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.demo-link:hover {
    background: #555;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.spec-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.spec-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.spec-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Offerings Grid */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.offering-card {
    padding: 24px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #333;
}

.offering-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.offering-card > p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.offering-features {
    list-style: none;
    padding-left: 0;
    font-size: 13px;
    color: #666;
}

.offering-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.offering-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* Steps List */
.steps-list {
    padding-left: 24px;
    font-size: 14px;
    color: #555;
}

.steps-list li {
    margin: 12px 0;
    line-height: 1.6;
}

/* Footer */
.invoice-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #333;
}

.footer-note {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 40px;
    border-left: 3px solid #333;
}

.footer-note p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.footer-signature {
    text-align: right;
}

.footer-signature p {
    font-size: 14px;
    color: #555;
    margin-bottom: 40px;
}

.signature-line {
    width: 250px;
    height: 1px;
    background: #333;
    margin-left: auto;
    margin-bottom: 8px;
}

.signature-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .invoice-container {
        padding: 30px 20px;
    }

    .invoice-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .logo-section {
        flex: 0 0 80px;
        order: 2;
        min-width: 80px;
        max-width: 80px;
    }

    .company-logo {
        max-width: 80px !important;
        width: 80px !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .invoice-info {
        text-align: left;
        flex: 1;
        order: 1;
    }

    .invoice-info h1 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .meta-info {
        font-size: 12px;
    }

    .meta-item .value {
        min-width: 120px;
    }

    .meta-item {
        justify-content: flex-start;
    }

    .client-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .specs-grid,
    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .deliverables-table {
        font-size: 13px;
    }

    .deliverables-table th,
    .deliverables-table td {
        padding: 10px 8px;
    }

    .demo-link {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .invoice-container {
        box-shadow: none;
        padding: 40px;
    }

    .demo-link {
        background: white;
        color: #333;
        border: 1px solid #333;
    }
}
