@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    /* Brand Colors - High Contrast Retail Protocol */
    --primary-blue: #003366;
    --action-red: #d52b1e;
    --value-green: #00af48;
    --pop-cyan: #00aeef;
    --pop-orange: #FF6B35;

    --bg-white: #ffffff;
    --bg-light: #f4f4f4;
    --text-dark: #222222;
    --text-grey: #555555;

    --border-coupon: 2px dashed #cccccc;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.4;
    background-color: #eee;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.page {
    width: 8.5in;
    min-height: 11in;
    /* Changed from fixed height to allow expansion */
    background: white;
    margin: 2rem auto;
    padding: 0.5in;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
th {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* Header with Impact */
.header {
    margin-bottom: 1.5rem;
    /* Slightly reduced */
    border-bottom: 5px solid var(--primary-blue);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text {
    max-width: 75%;
}

h1 {
    font-size: 24pt;
    line-height: 1;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

h1 span {
    color: var(--action-red);
    background: #fff0f0;
    padding: 0 5px;
}

h2 {
    font-size: 11pt;
    font-weight: 700;
    color: var(--text-grey);
}

.logo-placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--action-red);
    font-size: 1.5rem;
    line-height: 1;
    text-align: right;
    border: 3px solid var(--primary-blue);
    padding: 0.5rem;
    transform: rotate(-3deg);
}

/* Process Steps (New) */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #f8fbff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.step {
    flex: 1;
    padding: 0 10px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-weight: 900;
}

.step-num {
    display: block;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    line-height: 24px;
}

.step p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 600;
}


/* Three Column Pricing - Retail Style */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    margin-bottom: 1.5rem;
    /* Reduced margin */
}

.pricing-table th {
    padding: 10px;
    background: var(--primary-blue);
    color: white;
    font-size: 10pt;
    border-radius: 4px;
    vertical-align: bottom;
}

.pricing-table td {
    padding: 8px 10px;
    /* Tighter padding */
    background: #f9f9f9;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 10pt;
}

/* Highlight Column */
.best-value th {
    background: var(--action-red);
    position: relative;
}

.best-value th::after {
    content: '★';
    position: absolute;
    top: -10px;
    right: -5px;
    color: yellow;
    font-size: 1.5rem;
}

.best-value td {
    background: #fff5f5;
    border-color: #ffdcdc;
    color: var(--text-dark);
}

/* Scarcity Badge (New) */
.scarcity-badge {
    background: #ffeb3b;
    color: #d52b1e;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 4px;
}

/* Guarantee Box - Coupon Style */
.guarantee-box {
    border: 4px dashed var(--action-red);
    background: #fff;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.guarantee-box h3 {
    color: var(--action-red);
    font-size: 16pt;
    margin-bottom: 0.5rem;
    background: white;
    display: inline-block;
    padding: 0 1rem;
    margin-top: -1.8rem;
    /* move text up into border */
}

.guarantee-box p {
    font-size: 11pt;
    font-weight: 600;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    /* Tighter gap */
    margin-bottom: 1rem;
}

.benefit-item {
    padding: 0.8rem;
    background: #f0f9ff;
    border-left: 5px solid var(--primary-blue);
    font-size: 0.95rem;
    /* Slightly smaller text for fit */
}

.benefit-item strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    /* Tighter padding */
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.qr-code-box {
    background: white;
    padding: 5px;
    border-radius: 4px;
    width: 80px;
    height: 80px;
}

.qr-code-box img {
    width: 100%;
    height: 100%;
    display: block;
}

@media print {
    body {
        background: white;
        -webkit-print-color-adjust: exact;
    }

    .page {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
}