/**
 * Printer setup lander — HP-inspired professional layout.
 * Extends global PrintNexa tokens from style.css.
 */

.setup-lander {
    background: var(--bg);
}

/* Slim lander header */
.lander-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, #fff 92%, transparent);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.lander-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
.lander-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lander-link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
}
.lander-link:hover {
    color: var(--brand);
    text-decoration: none;
}
.lander-link .icon {
    width: 1.05em;
    height: 1.05em;
    color: var(--brand);
}

/* Hero — full-bleed, centered composition */
.setup-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: 56px 0 64px;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(165deg, #FFFFFF 0%, #F1EEE8 48%, #EEF3F6 100%);
}
.setup-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 50% at 50% -10%, rgba(27, 77, 107, .2), transparent 60%),
        radial-gradient(ellipse 40% 35% at 15% 85%, rgba(27, 77, 107, .08), transparent 55%),
        radial-gradient(ellipse 35% 30% at 90% 70%, rgba(46, 107, 86, .1), transparent 50%),
        url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 48L48 0H36L0 36M48 48V36L36 48' fill='%231B4D6B' fill-opacity='.035'/%3E%3C/svg%3E");
}
.setup-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
}
.setup-hero-brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6.5vw, 3.75rem);
    letter-spacing: -.04em;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 16px;
    animation: lander-rise .7s ease both;
}
.setup-hero h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 auto 14px;
    max-width: 22ch;
    animation: lander-rise .7s .08s ease both;
}
.setup-hero-lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 42ch;
    margin: 0 auto 36px;
    animation: lander-rise .7s .14s ease both;
}

/* Brand chooser */
.brand-chooser {
    animation: lander-rise .7s .22s ease both;
}
.brand-chooser-label {
    font-family: var(--display);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -.01em;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}
.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 108px;
    padding: 20px 12px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .18s ease;
}
.brand-tile:hover {
    border-color: var(--brand-accent, var(--brand));
    box-shadow: 0 12px 32px rgba(0, 102, 145, .12);
    transform: translateY(-4px);
    text-decoration: none;
}
.brand-tile:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}
.brand-tile-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -.03em;
    color: var(--brand-accent, var(--ink));
}
.brand-tile-cta {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.brand-tile:hover .brand-tile-cta {
    color: var(--brand);
}
.brand-chooser-note {
    margin-top: 18px;
    font-size: .82rem;
    color: var(--muted);
}

@keyframes lander-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* Resolve section */
.resolve-section {
    border-top: 1px solid var(--line);
}
.resolve-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: start;
}
.resolve-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.resolve-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
}
.resolve-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    color: var(--brand);
    flex: none;
    padding-top: 3px;
}
.resolve-item h3 {
    font-size: 1.08rem;
    margin-bottom: 4px;
}
.resolve-item p {
    color: var(--muted);
    font-size: .94rem;
}

.resolve-contact {
    background:
        linear-gradient(160deg, var(--brand-700) 0%, var(--brand) 100%);
    color: #E5F6FC;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
}
.resolve-contact-kicker {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 8px;
}
.resolve-contact h3 {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 8px;
}
.resolve-contact-copy {
    color: #C8ECF8;
    font-size: .95rem;
    margin-bottom: 22px;
}
.resolve-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}
.resolve-btn {
    width: 100%;
}
.resolve-contact .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.resolve-contact .btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.resolve-trust {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 18px;
}
.resolve-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #E5F6FC;
}
.resolve-trust .icon {
    width: 1.05em;
    height: 1.05em;
    color: #fff;
}

/* Setup steps */
.setup-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: none;
}
.setup-steps li {
    text-align: left;
    padding-top: 4px;
}
.setup-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(0, 150, 214, .28);
}
.setup-steps h3 {
    font-size: 1.08rem;
    margin-bottom: 6px;
}
.setup-steps p {
    color: var(--muted);
    font-size: .92rem;
}

/* Trust row */
.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: center;
    margin-top: 8px;
}
.trust-row .feature-ic {
    margin: 0 auto 12px;
}
.trust-row strong {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.trust-row p {
    color: var(--muted);
    font-size: .9rem;
}

/* Bottom CTA */
.setup-cta {
    background: linear-gradient(120deg, var(--brand-700), var(--brand));
    color: #fff;
}
.setup-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 20px;
    flex-wrap: wrap;
}
.setup-cta h2 {
    color: #fff;
    font-size: 1.65rem;
    margin-bottom: 6px;
}
.setup-cta p {
    color: #C8ECF8;
}
.setup-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Lander footer */
.lander-footer {
    background: #054A6B;
    color: #A8D4E8;
    padding: 28px 0;
    font-size: .85rem;
}
.lander-footer-inner {
    text-align: center;
    display: grid;
    gap: 10px;
}
.lander-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.lander-footer a {
    color: #C8ECF8;
}
.lander-footer a:hover {
    color: #fff;
}
.lander-disclaimer {
    max-width: 62ch;
    margin: 4px auto 0;
    font-size: .8rem;
    line-height: 1.5;
    opacity: .9;
}

/* Chat overlay + panel */
.chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 58, 84, .45);
    z-index: 200;
    opacity: 0;
    transition: opacity .22s ease;
}
.chat-overlay.is-open {
    opacity: 1;
}
.chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: min(100%, 400px);
    height: 100%;
    background: #fff;
    box-shadow: -16px 0 48px rgba(0, 102, 145, .2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
}
.chat-panel.is-open {
    transform: none;
}
.chat-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 16px;
    background: linear-gradient(120deg, var(--brand-700), var(--brand));
    color: #fff;
}
.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: 4px;
}
.chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7CFFB2;
    box-shadow: 0 0 0 3px rgba(124, 255, 178, .35);
    animation: chat-pulse 1.8s ease-in-out infinite;
}
@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(124, 255, 178, .35); }
    50% { box-shadow: 0 0 0 6px rgba(124, 255, 178, .15); }
}
.chat-panel-head h2 {
    color: #fff;
    font-size: 1.25rem;
}
.chat-close {
    background: rgba(255, 255, 255, .15);
    border: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex: none;
}
.chat-close:hover {
    background: rgba(255, 255, 255, .28);
}
.chat-panel-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}
.chat-intro {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 18px;
}
.chat-form {
    display: grid;
    gap: 6px;
}
.chat-form label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--ink);
    margin-top: 8px;
}
.chat-form .optional {
    font-weight: 400;
    color: var(--muted);
}
.chat-form input,
.chat-form select {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.chat-form input:focus,
.chat-form select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-050);
}
.chat-submit {
    margin-top: 16px;
    width: 100%;
}
.chat-alt {
    margin-top: 18px;
    font-size: .9rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 900px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .resolve-layout {
        grid-template-columns: 1fr;
    }
    .setup-steps {
        grid-template-columns: 1fr 1fr;
    }
    .trust-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .setup-hero {
        min-height: auto;
        padding: 44px 0 52px;
    }
}

@media (max-width: 560px) {
    .lander-link {
        width: 40px;
        height: 40px;
        justify-content: center;
        border-radius: 10px;
        background: var(--brand-050);
        font-size: 0;
        gap: 0;
    }
    .lander-link .icon {
        font-size: 1rem;
        width: 1.2em;
        height: 1.2em;
    }
    .setup-steps {
        grid-template-columns: 1fr;
    }
    .setup-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-tile {
        min-height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .setup-hero-brand,
    .setup-hero h1,
    .setup-hero-lead,
    .brand-chooser,
    .chat-dot {
        animation: none !important;
    }
}
