/* The IQ landing page, served at lookbookai.app/iq. Colours follow the store screenshots: indigo,
   violet, a yellow accent. Same CSP as the legal pages, and deploy_pages.sh stamps this file's hash
   into index.html's link. */
body.landing {
    --indigo: #4a3bc9; --violet: #6d5ce8; --deep: #2a2178; --yellow: #fbbf24;
    --ink: #1f1d3a; --muted: #5d5b78; --soft: #f5f4ff; --card: #ffffff; --line: #e6e3fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0; color: var(--ink); background: var(--soft);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.landing a { color: inherit; text-decoration: none; }
.landing a:hover { text-decoration: none; }
.landing img { max-width: 100%; height: auto; }
.landing h1, .landing h2, .landing h3 { color: inherit; line-height: 1.2; margin: 0; }
.landing .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.landing .defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hero */
.landing .hero {
    color: #fff; padding-bottom: 72px;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(251, 191, 36, 0.18), transparent 60%),
                linear-gradient(160deg, var(--violet) 0%, var(--indigo) 55%, var(--deep) 100%);
}
.landing .nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.landing .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; }
.landing .brand img { border-radius: 9px; }
.landing .nav-cta { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 600; font-size: 14px; }
.landing .nav-cta:hover { background: rgba(255, 255, 255, 0.24); }
.landing .hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; padding-top: 32px; }
.landing .eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.landing .hero h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
.landing .hero h1 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.landing .lead { margin: 20px 0 32px; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, 0.88); }
.landing .hero-note { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.landing .hero-shot { display: flex; justify-content: center; }
.landing .phone {
    width: 300px; border: 10px solid #141233; border-radius: 40px;
    box-shadow: 0 40px 80px rgba(20, 18, 51, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(3deg);
}

/* Store buttons */
.landing .stores { display: flex; flex-wrap: wrap; gap: 12px; }
.landing .store {
    display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 12px 20px;
    border-radius: 14px; background: #0f0d26; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.15;
    box-shadow: 0 8px 20px rgba(15, 13, 38, 0.3); transition: transform 0.15s ease, background 0.15s ease;
}
.landing .store:hover { transform: translateY(-2px); background: #1d1a45; }
.landing .store small { display: block; font-weight: 500; font-size: 12px; opacity: 0.8; }
.landing .store.light { background: #fff; color: var(--ink); }
.landing .store.light:hover { background: #f0eeff; }

/* Facts strip */
.landing .facts {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    margin-top: -40px; position: relative;
}
.landing .fact {
    padding: 20px; border-radius: 20px; background: var(--card); text-align: center;
    box-shadow: 0 12px 32px rgba(42, 33, 120, 0.1);
}
.landing .fact strong { display: block; font-size: 36px; font-weight: 800; color: var(--indigo); line-height: 1.1; }
.landing .fact span { font-size: 14px; color: var(--muted); }

/* Sections */
.landing section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; text-align: center; }
.landing .section-lead { margin: 12px auto 40px; max-width: 36em; text-align: center; color: var(--muted); font-size: 17px; }
.landing .features, .landing .steps { padding-top: 96px; }

.landing .feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.landing .feature {
    padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.landing .feature:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(42, 33, 120, 0.12); }
.landing .badge {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--indigo));
}
.landing .feature h3 { margin: 16px 0 8px; font-size: 20px; }
.landing .feature p { margin: 0; color: var(--muted); }

/* Screenshot gallery: a row that scrolls sideways and snaps */
.landing .gallery-section { padding-top: 96px; }
.landing .gallery {
    display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 24px;
    max-width: 1120px; margin: 0 auto; scrollbar-width: thin;
}
.landing .gallery img { scroll-snap-align: center; border-radius: 24px; box-shadow: 0 16px 36px rgba(42, 33, 120, 0.18); }

/* Steps */
.landing .step-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
.landing .step-list li { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.landing .num {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--yellow); color: var(--ink); font-weight: 800;
}
.landing .step-list h3 { margin: 14px 0 6px; font-size: 20px; }
.landing .step-list p { margin: 0; color: var(--muted); }

/* Closing call to action */
.landing .cta {
    margin-top: 96px; padding: 72px 0; color: #fff; text-align: center;
    background: linear-gradient(160deg, var(--violet), var(--indigo) 60%, var(--deep));
}
.landing .cta-inner img { border-radius: 22px; box-shadow: 0 12px 28px rgba(15, 13, 38, 0.35); }
.landing .cta h2 { margin-top: 20px; }
.landing .cta p { margin: 12px 0 28px; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.landing .cta .stores { justify-content: center; }

/* Footer */
.landing .footer { padding: 32px 0 40px; background: #141233; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.landing .footer-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.landing .footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.landing .footer-brand img { border-radius: 7px; }
.landing .footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.landing .footer-links a { color: #fff; }
.landing .footer-links a:hover { color: var(--yellow); }
.landing .footer-meta { margin: 0; font-size: 13px; }

@media (min-width: 640px) {
    .landing .facts { grid-template-columns: repeat(4, 1fr); }
    .landing .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .landing .gallery { grid-auto-columns: 260px; }
}
@media (min-width: 900px) {
    /* Wide screens show all six screenshots at once: a sideways scroller hides two of them from
       a mouse with a vertical wheel, and there is no script for arrow buttons. */
    .landing .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; max-width: 900px; gap: 28px; }
    .landing .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
    .landing .phone { width: 340px; }
    .landing .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .landing .step-list { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .landing .store, .landing .feature { transition: none; }
    .landing .phone { transform: none; }
}
