/* Pixometry Cloud — marketing site styles
 *
 * Design system aligned with the webapp (webapp/css/app.css):
 * - Paper white background (#F6F5F3) — matches app
 * - Dark slate text (#2c3e50) — matches app headings
 * - Success green (#5b9a6f accent from app's active-state) as CTA base,
 *   Bootstrap primary blue as secondary CTA
 * - System font stack (matches Bootstrap default, no custom fonts)
 * - Generous vertical spacing between sections
 */

:root {
    --pix-paper: #F6F5F3;
    --pix-text: #2c3e50;
    --pix-text-soft: #4a5568;
    --pix-muted: #8899a6;
    --pix-accent: #2c3e50;
    --pix-cta: #198754;              /* Bootstrap success — cheerful, "growth" */
    --pix-cta-hover: #157347;
    --pix-border-soft: #e5e2dd;      /* Slightly warm border for paper aesthetic */
    --pix-panel: #FBFAF7;            /* Gentle off-white for alternating sections — warmer than pure #fff */
    --section-y: 6rem;               /* Vertical spacing between sections */
}

/* ─── Base ─────────────────────────────────────────────────────────── */

body {
    background-color: var(--pix-paper);
    color: var(--pix-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--pix-text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; line-height: 1.15; }
h2 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; line-height: 1.3; }

.lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--pix-text-soft);
    font-weight: 400;
}

/* ─── Navigation ───────────────────────────────────────────────────── */

.pix-nav {
    background-color: var(--pix-paper);
    border-bottom: 1px solid var(--pix-border-soft);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(8px);
}

.pix-nav .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pix-nav .navbar-brand img {
    height: 32px;
    width: auto;
    display: block;
}

.pix-nav .nav-link {
    color: var(--pix-text-soft);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.pix-nav .nav-link:hover { color: var(--pix-text); }

/* ─── Buttons ──────────────────────────────────────────────────────── */

.btn-pix-primary {
    background-color: var(--pix-cta);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-pix-primary:hover {
    background-color: var(--pix-cta-hover);
    color: white;
}

.btn-pix-primary.btn-lg {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
}

.btn-pix-outline {
    background-color: transparent;
    color: var(--pix-text);
    border: 1.5px solid var(--pix-text);
    padding: 0.65rem 1.4rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-pix-outline:hover {
    background-color: var(--pix-text);
    color: white;
}

/* Marketing arrow links "> Pixometry" style */
.pix-arrow-link {
    display: inline-block;
    color: var(--pix-cta);
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.pix-arrow-link::before {
    content: "→ ";
    margin-right: 0.15rem;
}

.pix-arrow-link:hover {
    color: var(--pix-cta-hover);
    text-decoration: underline;
}

/* ─── Sections ─────────────────────────────────────────────────────── */

.pix-section {
    padding: var(--section-y) 0;
}

.pix-section-tight {
    padding: 3rem 0;
}

/* Hero */
.hero {
    padding: 4rem 0 6rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.35rem;
    margin-bottom: 1.75rem;
}

.hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: var(--pix-text-soft);
    font-size: 0.95rem;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-bullets li::before {
    content: "✓";
    color: var(--pix-cta);
    font-weight: 700;
}

.hero-tagline {
    display: inline-block;
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--pix-cta);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Hero trust marker — small logo row above the fold, right after the
 * hero CTAs. Same 6 marquee logos as the full strip further down; the
 * hero variant is a fast credibility hit for visitors who never scroll
 * past the first screen. Uses very small logo heights (24px) and heavy
 * grayscale so it stays a texture, not a demand for attention.
 */
.hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pix-border-soft);
}

.hero-trust-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pix-muted);
    font-weight: 600;
}

/* Use max-height + max-width without object-fit so each logo lands at
 * its native aspect and only shrinks to the frame — near-square marks
 * (News UK, JCPenney) get room to be legible, while wide wordmarks
 * (NYT, FAZ) don't overflow. Height bumped from 22 → 32 for readability. */
.hero-trust img {
    max-height: 32px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Logo strip — client credibility band between the hero and the
 * problem/solution section. 14 logos live at ./images/logos/ pulled from
 * the existing pixometry.com references page. Grayscale + reduced opacity
 * by default so the row reads as texture rather than shouting for
 * attention; on hover a single logo turns full-colour so a curious
 * visitor can confirm names one-by-one. Height-normalised via
 * object-fit: contain so newspapers wordmarks (very wide) and near-square
 * badges (JCPenney, Globe and Mail) share the same visual weight.
 */
.logo-strip {
    background: var(--pix-panel);
    border-top: 1px solid var(--pix-border-soft);
    border-bottom: 1px solid var(--pix-border-soft);
}

.logo-strip-caption {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--pix-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

.logo-strip-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem 2.5rem;
    align-items: center;
    justify-items: center;
}

.logo-strip-grid img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.2s, opacity 0.2s;
}

.logo-strip-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 991px) {
    .logo-strip-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .logo-strip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .logo-strip-grid img { max-height: 32px; }
}

/* Problem/solution section */
.problem-solution {
    background-color: var(--pix-panel);
    border-top: 1px solid var(--pix-border-soft);
    border-bottom: 1px solid var(--pix-border-soft);
}

.problem-solution h2 {
    text-align: center;
    max-width: 32ch;
    margin: 0 auto 2.5rem;
}

.problem-solution p {
    max-width: 65ch;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--pix-text-soft);
}

.pull-quote {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--pix-text);
    margin: 3rem auto;
    max-width: 30ch;
    line-height: 1.3;
}

.pull-quote strong { color: var(--pix-cta); }

.trust-line {
    text-align: center;
    font-size: 1.05rem;
    color: var(--pix-text-soft);
    max-width: 55ch;
    margin: 0 auto 2rem;
}

.trust-line strong { color: var(--pix-text); }

/* Before / After showcase */
.ba-showcase {
    padding: var(--section-y) 0;
}

.ba-heading {
    text-align: center;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    color: var(--pix-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.ba-heading + h2 {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
}

.ba-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.ba-comparison img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-comparison .ba-side {
    position: relative;
}

.ba-comparison .ba-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 3-Steps how-it-works */
.how-it-works {
    background-color: var(--pix-panel);
    text-align: center;
    border-top: 1px solid var(--pix-border-soft);
    border-bottom: 1px solid var(--pix-border-soft);
}

.how-it-works h2 { margin-bottom: 1rem; }

.how-it-works .lead {
    max-width: 60ch;
    margin: 0 auto 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.step-card {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step-1 { background-color: #dc3545; }
.step-2 { background-color: #198754; }
.step-3 { background-color: #0d6efd; }

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--pix-text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-hint {
    max-width: 60ch;
    margin: 0 auto 2rem;
    color: var(--pix-text-soft);
}

.custom-hint strong { color: var(--pix-text); }

/* Features (Because details matter) */
.features-nav {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--pix-muted);
}

.features-nav a {
    color: var(--pix-text-soft);
    text-decoration: none;
    font-weight: 500;
    padding: 0 0.5rem;
    transition: color 0.15s;
}

.features-nav a:hover { color: var(--pix-cta); }

.features-nav .sep { color: var(--pix-border-soft); }

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-block:nth-child(even) {
    direction: rtl;
}

.feature-block:nth-child(even) > * {
    direction: ltr;
}

.feature-block h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.feature-block p {
    color: var(--pix-text-soft);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* One window, endless possibilities */
.endless {
    background-color: var(--pix-panel);
    border-top: 1px solid var(--pix-border-soft);
    border-bottom: 1px solid var(--pix-border-soft);
}

.endless h2 { text-align: center; margin-bottom: 1rem; }
.endless .subhead {
    text-align: center;
    color: var(--pix-text-soft);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 3rem;
    max-width: 950px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.55;
    color: var(--pix-text-soft);
    font-size: 1rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--pix-cta);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.1rem;
}

.feature-list li strong {
    color: var(--pix-text);
    font-weight: 600;
}

/* Final CTA */
.final-cta {
    padding: var(--section-y) 0;
    text-align: center;
}

.final-cta-image {
    border-radius: 16px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.final-cta-image img {
    width: 100%;
    height: auto;
    display: block;
}

.final-cta h2 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.final-cta .subhead {
    color: var(--pix-text-soft);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* Footer */
.pix-footer {
    background-color: var(--pix-panel);
    border-top: 1px solid var(--pix-border-soft);
    padding: 3rem 0 2rem;
    color: var(--pix-text-soft);
    font-size: 0.9rem;
}

.pix-footer h5 {
    color: var(--pix-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pix-footer a {
    color: var(--pix-text-soft);
    text-decoration: none;
    display: block;
    padding: 0.15rem 0;
}

.pix-footer a:hover { color: var(--pix-cta); }

.pix-footer .copyright {
    border-top: 1px solid var(--pix-border-soft);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--pix-muted);
}

/* ─── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }

    .hero h1 { font-size: 2.5rem; }
    .hero .lead { font-size: 1.15rem; }

    :root { --section-y: 4rem; }

    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block:nth-child(even) { direction: ltr; }

    .feature-list { grid-template-columns: 1fr; }

    .ba-comparison { gap: 0.5rem; }
}

@media (max-width: 575px) {
    .hero h1 { font-size: 2rem; }
    .pull-quote { font-size: 1.4rem; }
}

/* ─── Cookie consent banner ──────────────────────────────────────────
 * Shown once on first visit. Sits fixed to the bottom of the viewport
 * with a paper-white card + cyan accent Accept button matching the rest
 * of the site. Body copy left, button pair right on desktop; stacks
 * vertically below the 640 px breakpoint.
 * Managed by js/tracking.js — CSS only defines look, not behaviour. */

.pix-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: var(--pix-panel, #fff);
    border-top: 1px solid var(--pix-border-soft, #e5e5e5);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    animation: pix-consent-slide-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes pix-consent-slide-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.pix-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pix-consent-text {
    margin: 0;
    flex: 1;
    color: var(--pix-text-soft, #444);
    font-size: 0.92rem;
    line-height: 1.5;
}

.pix-consent-link {
    color: var(--pix-cta, #0aa);
    text-decoration: underline;
}

.pix-consent-buttons {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.pix-consent-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.pix-consent-reject {
    background: transparent;
    color: var(--pix-text-soft, #555);
    border-color: var(--pix-border-soft, #ccc);
}

.pix-consent-reject:hover {
    background: var(--pix-panel-hover, #f3f3f3);
}

.pix-consent-accept {
    background: var(--pix-cta, #0aa);
    color: #fff;
}

.pix-consent-accept:hover {
    background: var(--pix-cta-dark, #088);
}

@media (max-width: 640px) {
    .pix-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .pix-consent-buttons {
        justify-content: flex-end;
    }
}
