/* Pancho — Public Landing Page */
* { box-sizing: border-box; }
body.landing { margin: 0; background: var(--bg-primary); color: var(--text-primary); font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif; min-height: 100vh; }

/* ── Desktop Hero ────────────────────────────────────── */
.lp-desktop {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image:
        linear-gradient(100deg, var(--bg-primary) 0%, color-mix(in srgb, var(--bg-primary) 92%, transparent) 38%, color-mix(in srgb, var(--bg-primary) 40%, transparent) 62%, transparent 100%),
        url('/core/assets/images/landing-hero.jpg');
    background-size: cover, cover;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
}
[data-theme="dark"] .lp-desktop {
    background-image:
        linear-gradient(100deg, var(--bg-primary) 0%, color-mix(in srgb, var(--bg-primary) 92%, transparent) 38%, color-mix(in srgb, var(--bg-primary) 55%, transparent) 62%, color-mix(in srgb, #000 40%, transparent) 100%),
        url('/core/assets/images/landing-hero.jpg');
}
.lp-desktop .lp-nav { display:flex; align-items:center; justify-content:space-between; padding: 20px 48px; position: relative; z-index: 2; }
.lp-desktop .lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text-primary); text-decoration: none; }
.lp-desktop .lp-brand-logo { height: 36px; width: auto; display: block; }
[data-theme="dark"] .lp-desktop .lp-brand-logo { content: url('/core/assets/icons/pancho-logo-white.png'); }
.lp-desktop .lp-nav-actions { display: flex; gap: 10px; align-items: center; }
.lp-desktop .lp-nav-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--text-primary); text-decoration: none;
    padding: 9px 16px; font-size: 14px; font-weight: 600;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.lp-desktop .lp-nav-link::before {
    content: '';
    width: 14px; height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/><polyline points='10 17 15 12 10 7'/><line x1='15' y1='12' x2='3' y2='12'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/><polyline points='10 17 15 12 10 7'/><line x1='15' y1='12' x2='3' y2='12'/></svg>") center/contain no-repeat;
    flex-shrink: 0;
}
.lp-desktop .lp-nav-link:hover {
    background: var(--bg-primary);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    transform: translateY(-1px);
}

.lp-desktop .lp-hero {
    flex: 1; display: flex; align-items: center;
    padding: 40px 80px 80px; position: relative; z-index: 2;
}
.lp-hero-copy { max-width: 620px; }
.lp-hero-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.lp-hero-headline { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 20px; }
.lp-hero-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 28px; max-width: 520px; }
.lp-hero-ctas { display: flex; gap: 12px; margin-bottom: 18px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; border: 0; cursor: pointer; }
.lp-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -8px rgba(0,0,0,0.25); }
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.3); }
.lp-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
    color: var(--text-primary);
    border: 1px solid color-mix(in srgb, var(--text-primary) 14%, transparent);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.lp-btn-secondary::before {
    content: '';
    width: 16px; height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/><polyline points='10 17 15 12 10 7'/><line x1='15' y1='12' x2='3' y2='12'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/><polyline points='10 17 15 12 10 7'/><line x1='15' y1='12' x2='3' y2='12'/></svg>") center/contain no-repeat;
    flex-shrink: 0;
}
.lp-btn-secondary:hover {
    background: var(--bg-primary);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    transform: translateY(-1px);
}
.lp-hero-trust { font-size: 13px; color: var(--text-tertiary); display: flex; align-items: center; gap: 8px; }
.lp-hero-trust::before { content: '•'; color: var(--success); font-size: 20px; line-height: 1; }

/* (old right-column hero art removed — image is now page background) */

.lp-learnmore { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-primary); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 20px -8px rgba(0,0,0,0.15); transition: transform 0.15s; z-index: 10; }
.lp-learnmore:hover { transform: translateX(-50%) translateY(-2px); }

/* Slide-out panel */
.lp-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.lp-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.lp-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 90vw); background: var(--bg-primary); z-index: 101; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; padding: 28px 32px; }
.lp-sheet.open { transform: translateX(0); }
.lp-sheet-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 20px; }
.lp-sheet-title { font-size: 22px; font-weight: 800; margin: 0; }
.lp-sheet-close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--text-secondary); cursor: pointer; padding: 4px 10px; }
.lp-feature { padding: 14px 0; border-bottom: 1px solid var(--border); }
.lp-feature:last-child { border-bottom: 0; }
.lp-feature-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.lp-feature-desc { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.lp-sheet-section { margin-top: 24px; font-size: 12px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

/* ── Mobile Hero ──────────────────────────────────────── */
.lp-mobile { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: linear-gradient(160deg, var(--bg-primary) 0%, color-mix(in srgb, var(--accent) 6%, var(--bg-primary)) 100%); }
.lp-mobile .lp-top { display: flex; justify-content: center; padding: 32px 24px 20px; }
.lp-mobile .lp-brand-logo { height: 44px; width: auto; display: block; }
[data-theme="dark"] .lp-mobile .lp-brand-logo { content: url('/core/assets/icons/pancho-logo-white.png'); }
.lp-mobile .lp-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 28px; }
.lp-mobile .lp-eyebrow { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.lp-mobile .lp-headline { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; max-width: 380px; }
.lp-mobile .lp-sub { font-size: 16px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 32px; max-width: 340px; }
.lp-mobile .lp-cta-wrap { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lp-mobile .lp-btn { padding: 16px 24px; border-radius: 14px; font-size: 16px; width: 100%; }
.lp-mobile .lp-trust { font-size: 12px; color: var(--text-tertiary); margin-bottom: 20px; }
.lp-mobile .lp-bottom { padding: 14px 24px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.lp-mobile .lp-learnmore-mobile { background: none; border: 0; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 10px 16px; }

/* Mobile sheet slides up */
.lp-mobile .lp-sheet { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
.lp-mobile .lp-sheet.open { transform: translateY(0); }

/* ── Responsive breakpoints ───────────────────────────── */
@media (max-width: 900px) {
    .lp-desktop .lp-hero { padding: 20px 28px 60px; }
    .lp-desktop .lp-nav { padding: 18px 28px; }
    .lp-hero-headline { font-size: 40px; }
    .lp-desktop { background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg-primary) 88%, transparent) 0%, color-mix(in srgb, var(--bg-primary) 70%, transparent) 100%), url('/core/assets/images/landing-hero.jpg'); }
}

/* ── PWA install banner ───────────────────────────────── */
.lp-install {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
    max-width: 420px; margin: 0 auto;
    display: none; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    background: var(--bg-primary); color: var(--text-primary);
    border: 1px solid var(--border); box-shadow: 0 12px 40px -14px rgba(0,0,0,0.25);
    font-size: 14px;
    animation: lp-install-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-install.show { display: flex; }
.lp-install img { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.lp-install-body { flex: 1; line-height: 1.3; }
.lp-install-body strong { display: block; font-weight: 700; }
.lp-install-body span { font-size: 12px; color: var(--text-secondary); }
.lp-install-btn {
    background: var(--accent); color: #fff; border: 0; padding: 8px 14px;
    border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
    white-space: nowrap;
}
.lp-install-close {
    background: none; border: 0; color: var(--text-secondary); font-size: 20px;
    cursor: pointer; padding: 4px 6px; line-height: 1;
}
@keyframes lp-install-in {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
/* iOS-specific hint (no beforeinstallprompt on Safari iOS) */
.lp-install.ios .lp-install-btn { display: none; }
.lp-install.ios .lp-install-ios-hint { display: block; }
.lp-install-ios-hint { display: none; font-size: 12px; color: var(--text-secondary); }

/* Dark mode via data-theme="dark" comes from core.css variables */
