@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #1a1a1a;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Brand themes — solid banner, per-brand accent buttons */
body.hp-page,
body.canon-page,
body.brother-page,
body.epson-page {
    --header-bg: #1a4d6e;
    --banner-bg: #215d85;
    --brand-color: #2ec4f1;
    --brand-dark: #1eb3e0;
}

body.canon-page {
    --header-bg: #A30000;
    --banner-bg: #CC0000;
    --brand-color: #CC0000;
    --brand-dark: #8B0000;
}

body.brother-page {
    --brand-color: #4da3ff;
    --brand-dark: #2d8af0;
}

body.epson-page {
    --brand-color: #33aaff;
    --brand-dark: #1a99ee;
}

/* ── Header ── */
.site-header {
    background: var(--header-bg);
    padding: 0;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    line-height: 0;
    text-decoration: none;
}

.brand-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    opacity: 0.8;
}

.site-nav a.is-active {
    font-weight: 600;
}

/* ── Banner ── */
.hero-banner {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 480px;
    background: var(--banner-bg);
}

.hero-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-banner-content {
    flex: 1.1;
    color: #fff;
    min-width: 0;
}

.hero-banner-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.95;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.hero-input-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.65rem;
}

.hero-banner-image {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner-image img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
}

/* ── Inline search bar (input + button) ── */
.printer-setup-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 560px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.printer-setup-form label {
    display: none;
}

.printer-setup-form input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    background: #fff;
    color: #111;
}

.printer-setup-form input::placeholder {
    color: #94a3b8;
}

.printer-setup-form input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--brand-color);
}

.quick-setup-btn {
    flex-shrink: 0;
    background: var(--brand-color);
    color: #fff;
    border: none;
    padding: 15px 28px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}

.quick-setup-btn:hover:not(:disabled) {
    background: var(--brand-dark);
}

.quick-setup-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Brand showcase ── */
.brand-showcase {
    background: #fff;
    padding: 3rem 1.5rem 3.5rem;
}

.brand-showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.brand-showcase h2 {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    color: var(--banner-bg);
    margin-bottom: 0.5rem;
}

.brand-showcase .subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: start;
}

.brand-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.brand-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

a.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(33, 93, 133, 0.12);
    border-color: var(--banner-bg);
}

.brand-column.is-current .brand-card {
    border-color: var(--brand-color);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-color) 20%, transparent);
}

.brand-card img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--banner-bg);
}

.model-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.model-link {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #334155;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
    line-height: 1.3;
}

.model-link:hover {
    background: #fff;
    border-color: var(--brand-color);
    color: var(--banner-bg);
}

@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .brand-showcase {
        padding: 2rem 1rem 2.5rem;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .brand-card {
        min-height: 130px;
        padding: 0.75rem 0.5rem;
    }

    .brand-card img {
        max-height: 70px;
    }

    .model-link {
        font-size: 0.72rem;
        padding: 0.4rem 0.35rem;
    }
}

@media (max-width: 400px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Footer ── */
.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 1.5rem;
    text-align: center;
}

.site-footer p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.site-footer .disclaimer {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Lead capture gate ── */
.lead-gate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lead-gate-overlay.active {
    display: flex;
}

body.lead-pending {
    overflow: hidden;
}

body.lead-pending > *:not(.lead-gate-overlay):not(script) {
    pointer-events: none;
    user-select: none;
}

body.lead-pending #tawk-bubble-container,
body.lead-pending iframe[title*="chat"] {
    display: none !important;
    visibility: hidden !important;
}

.lead-gate-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: leadSlideIn 0.4s ease-out;
}

@keyframes leadSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-gate-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lead-gate-icon {
    margin: 0 auto 1rem;
    object-fit: contain;
    max-height: 48px;
    width: auto;
}

.lead-gate-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--brand-color);
    margin-bottom: 0.5rem;
}

.lead-gate-header p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lead-gate-form .lead-field {
    margin-bottom: 1rem;
}

.lead-gate-form label {
    display: block;
    font-weight: 700;
    color: #111;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.lead-gate-form input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lead-gate-form input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-color) 15%, transparent);
}

.lead-gate-submit {
    width: 100%;
    background: var(--brand-color);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.lead-gate-submit:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.lead-gate-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lead-gate-trust {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.required {
    color: #dc2626;
}

@media (max-width: 900px) {
    .hero-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.25rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .printer-setup-form {
        margin: 0 auto;
    }

    .hero-banner-image img {
        max-height: 240px;
    }
}

@media (max-width: 520px) {
    .site-header-inner {
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .brand-logo img {
        height: 30px;
    }

    .site-nav {
        gap: 1.25rem;
        font-size: 0.85rem;
    }

    .printer-setup-form {
        flex-direction: column;
        border-radius: 8px;
        overflow: visible;
        box-shadow: none;
        gap: 0.5rem;
    }

    .printer-setup-form input {
        border-radius: 6px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    }

    .quick-setup-btn {
        border-radius: 6px;
        width: 100%;
        padding: 14px;
    }
}
