/* ── Landing Page ────────────────────────────────────────────────────── */

#landing-page {
    width: 100%;
    min-height: 100vh;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: #333;
}

/* Header */
.lp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 3px solid #0072ee;
    position: sticky;
    top: 0;
    z-index: 50;
}

.lp-logo {
    font-size: 22px;
    font-weight: 800;
    color: #0072ee;
    letter-spacing: 2px;
}

.lp-tagline {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Hero */
.lp-hero {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0072ee 0%, #0058bb 50%, #003d80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-hero-overlay {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.lp-hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lp-hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
}

/* Scan Button */
.lp-scan-section {
    padding: 24px 20px;
    display: flex;
    justify-content: center;
}

.lp-scan-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0072ee, #0058bb);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 114, 238, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lp-scan-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(0, 114, 238, 0.3);
}

.lp-scan-icon {
    font-size: 22px;
}

/* Sections */
.lp-section {
    padding: 24px 20px;
}

.lp-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.lp-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0072ee;
    border-radius: 2px;
}

/* Product Cards - Horizontal Scroll */
.lp-products-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.lp-products-scroll::-webkit-scrollbar {
    display: none;
}

.lp-product-card {
    flex: 0 0 200px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    scroll-snap-align: start;
}

.lp-product-card img.lp-product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 12px;
}

.lp-placeholder-img {
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ccc;
}

.lp-product-info {
    padding: 12px 14px 16px;
}

.lp-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.lp-product-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

/* How it Works */
.lp-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.lp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0072ee, #0058bb);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-step-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.lp-step-text p {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

/* Footer */
.lp-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 32px 20px;
    text-align: center;
    margin-top: 12px;
}

.lp-footer-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0072ee;
    margin-bottom: 6px;
}

.lp-footer-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.lp-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.lp-footer-links a {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
}

.lp-footer-links a:hover {
    color: #fff;
}

.lp-footer-copy {
    font-size: 11px;
    color: #555;
}

/* Scanner Back Button */
.scanner-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.scanner-back-btn:active {
    background: rgba(0, 0, 0, 0.8);
}

/* Override body scroll for landing page */
body:has(#landing-page[style*="display: none"]) {
    overflow: hidden;
}

body:has(#landing-page:not([style*="display: none"])) {
    overflow: auto;
    background: #fff;
}
