/* ============================================
   MiraTuZona Landing Page Styles
   Namespace: lp-* prefix for all classes
   Design: Clean hero (Crystal Roof style) + search page palette
   ============================================ */

/* --- CSS Variables (same as styles.css) --- */
.landing-page {
    --lp-primary: #2D5A3D;
    --lp-primary-dark: #1B4332;
    --lp-primary-light: #4A7C5E;
    --lp-accent: #8FB07A;
    --lp-accent-light: #C5D5A0;
    --lp-accent-muted: #D4E4C4;
    --lp-bg-warm: #F5F0E8;
    --lp-bg-cream: #FAF7F2;
    --lp-surface: #FFFFFF;
    --lp-surface-warm: #FBF9F5;
    --lp-text: #2C3319;
    --lp-text-secondary: #5C6B4F;
    --lp-text-muted: #8A9474;
    --lp-border: #DED8CA;
    --lp-border-light: #EAE5DB;
    --lp-radius-sm: 8px;
    --lp-radius-md: 12px;
    --lp-radius-lg: 16px;
    --lp-radius-full: 999px;
    --lp-shadow-soft: 0 1px 3px rgba(44, 51, 25, 0.06);
    --lp-shadow-md: 0 4px 12px rgba(44, 51, 25, 0.1);
    --lp-shadow-lg: 0 10px 24px rgba(44, 51, 25, 0.12);

    margin: 0;
    padding: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--lp-text);
    background: var(--lp-bg-warm);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.landing-page *, .landing-page *::before, .landing-page *::after {
    box-sizing: border-box;
}

/* --- Container --- */
.lp-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 640px) { .lp-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .lp-container { padding: 0 2rem; } }

/* --- Section spacing --- */
.lp-section {
    padding: 4rem 0;
}
@media (min-width: 1024px) {
    .lp-section { padding: 5rem 0; }
}

/* --- Typography --- */
.lp-headline-xl {
    font-family: 'Sora', 'DM Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--lp-text);
}
@media (min-width: 640px) { .lp-headline-xl { font-size: 2.75rem; } }
@media (min-width: 1024px) { .lp-headline-xl { font-size: 3.25rem; } }

.lp-headline-lg {
    font-family: 'Sora', 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
@media (min-width: 640px) { .lp-headline-lg { font-size: 1.875rem; } }

.lp-headline-md {
    font-family: 'Sora', 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
@media (min-width: 640px) { .lp-headline-md { font-size: 1.5rem; } }

/* Highlighted keyword in headline */
.lp-highlight {
    color: var(--lp-primary);
    position: relative;
}

/* ============================================
   LANDING OVERRIDES
   ============================================ */

/* Override body styles from styles.css for landing (not fixed viewport) */
.landing-page {
    height: auto;
    overflow: auto;
}

/* Header nav links (Como funciona, Datos, FAQ, CTA) */
.header-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}
@media (min-width: 768px) { .header-nav { display: flex; } }

.header-nav a {
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.header-nav a:hover { color: var(--text-primary); }

.header-nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.header-nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* Mobile menu toggle */
.header-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    margin-left: auto;
}
.header-menu-toggle svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .header-menu-toggle { display: none; } }

/* Mobile menu dropdown */
.header-mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 0.5rem;
    box-shadow: 0 4px 16px rgba(44, 51, 25, 0.12);
    border-bottom: 1px solid var(--border-light);
    z-index: 99;
}
.header-mobile-menu.open { display: block; }

.header-mobile-menu a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.header-mobile-menu a:hover { background: var(--bg-warm); }

/* Header shadow on scroll */
.landing-page .header.lp-scrolled {
    box-shadow: 0 1px 8px rgba(44, 51, 25, 0.08);
}

/* ============================================
   HERO SECTION (Crystal Roof style: clean bg)
   ============================================ */
.lp-hero {
    padding-top: var(--header-height, 52px);
    background: var(--lp-bg-cream);
}

.lp-hero-content {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
    padding: 0.75rem 1.25rem 1.5rem;
}
@media (min-width: 640px) { .lp-hero-content { padding: 1rem 1.5rem 1.75rem; } }
@media (min-width: 1024px) { .lp-hero-content { padding: 1.25rem 2rem 2rem; } }

.lp-hero-content h1 {
    margin: 0 0 0.75rem;
}

.lp-hero-content h1 {
    margin-bottom: 1rem;
}

.lp-hero-subtitle {
    font-size: 1rem;
    color: var(--lp-text-secondary);
    margin-bottom: 2rem;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
@media (min-width: 640px) { .lp-hero-subtitle { font-size: 1.1rem; } }

/* ============================================
   SEARCH BAR (shared by hero + CTA)
   ============================================ */
.lp-search-wrapper {
    position: relative;
    max-width: 38rem;
    margin: 0 auto;
}

.lp-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-radius: var(--lp-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 2px 8px rgba(44, 51, 25, 0.06),
        0 8px 32px rgba(44, 51, 25, 0.08),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
}

.lp-search-bar:focus-within {
    border-color: rgba(143, 176, 122, 0.45);
    box-shadow:
        0 2px 8px rgba(44, 51, 25, 0.06),
        0 12px 40px rgba(44, 51, 25, 0.12),
        0 0 0 3px rgba(143, 176, 122, 0.12),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
    transform: scale(1.012);
}

.lp-search-icon {
    padding: 0 0 0 1.25rem;
    display: flex;
    align-items: center;
    color: var(--lp-text-muted);
    transition: color 0.25s;
}
.lp-search-bar:focus-within .lp-search-icon { color: var(--lp-primary); }
.lp-search-icon svg { width: 19px; height: 19px; }

.lp-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.05rem 0.75rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--lp-text);
    background: transparent;
}
.lp-search-input::placeholder {
    color: var(--lp-text-muted);
    background: linear-gradient(90deg, var(--lp-text-muted) 0%, #b8c4a8 50%, var(--lp-text-muted) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lp-shimmer 3s ease-in-out infinite;
}
@keyframes lp-shimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -200% center; }
}
@media (min-width: 640px) {
    .lp-search-input { font-size: 0.97rem; padding: 1.1rem 0.85rem; }
}

.lp-search-btn {
    background: var(--lp-primary);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    margin: 0.35rem 0.4rem 0.35rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.01em;
    border-radius: var(--lp-radius-full);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.lp-search-btn:hover {
    background: var(--lp-primary-dark);
    transform: scale(1.03);
    box-shadow: 0 2px 12px rgba(45, 90, 61, 0.25);
}
.lp-search-btn:active { transform: scale(0.97); }
@media (min-width: 640px) {
    .lp-search-btn { padding: 0.75rem 1.75rem; font-size: 0.88rem; }
}

/* Autocomplete */
.lp-autocomplete {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--lp-radius-md);
    box-shadow: var(--lp-shadow-lg);
    border: 1px solid var(--lp-border-light);
    max-height: 280px;
    overflow-y: auto;
    z-index: 60;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    display: none;
}
.lp-autocomplete.lp-open { display: block; }

.lp-autocomplete-item {
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    transition: background 0.15s;
}
.lp-autocomplete-item:hover,
.lp-autocomplete-item.lp-active {
    background: var(--lp-bg-warm);
}

.lp-autocomplete-item svg {
    width: 16px;
    height: 16px;
    color: var(--lp-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.lp-autocomplete-primary {
    font-weight: 500;
    color: var(--lp-text);
    font-size: 0.875rem;
}
.lp-autocomplete-secondary {
    font-size: 0.775rem;
    color: var(--lp-text-muted);
    margin-top: 0.1rem;
}

/* ============================================
   TRUST INDICATOR (centered in header)
   ============================================ */
.landing-page .header {
    position: relative;
}

.header-trust {
    display: none;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}
@media (min-width: 900px) { .header-trust { display: flex; } }

.header-trust strong {
    color: var(--primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lp-trust-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    animation: lp-pulse 2s ease-in-out infinite;
}

@keyframes lp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* ============================================
   MAP BOX (contained, Crystal Roof style)
   ============================================ */
.lp-map-box {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    padding-bottom: 2rem;
}
@media (min-width: 640px) { .lp-map-box { padding: 0 1.5rem 2.5rem; } }
@media (min-width: 1024px) { .lp-map-box { padding: 0 2rem 3rem; } }

/* Category tabs */
.lp-category-tabs {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--lp-border-light);
    border-radius: var(--lp-radius-md) var(--lp-radius-md) 0 0;
    box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
}

.lp-category-tabs-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 8px;
}
.lp-category-tabs-scroll::-webkit-scrollbar { display: none; }

.lp-cat-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--lp-text-muted);
    white-space: nowrap;
    border-radius: var(--lp-radius-full);
    transition: color 0.2s, background 0.25s, transform 0.15s;
}

.lp-cat-tab:hover,
.lp-cat-tab--intro {
    color: var(--lp-primary);
    background: rgba(143, 176, 122, 0.12);
    transform: translateY(-1px);
}
.lp-cat-tab:active { transform: scale(0.96); }

.lp-cat-tab svg {
    flex-shrink: 0;
    opacity: 0.45;
    width: 15px;
    height: 15px;
    overflow: visible;
    transition: opacity 0.2s, transform 0.3s ease;
}
.lp-cat-tab:hover svg,
.lp-cat-tab--intro svg { opacity: 0.85; }

/* Per-tab icon animations on hover */
/* 1. Renta — coin flip */
.lp-cat-tab:nth-child(1):hover svg,
.lp-cat-tab:nth-child(1).lp-cat-tab--intro svg {
    animation: lp-ico-flip 0.5s ease;
}
@keyframes lp-ico-flip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* 2. Turismo — suitcase wobble */
.lp-cat-tab:nth-child(2):hover svg,
.lp-cat-tab:nth-child(2).lp-cat-tab--intro svg {
    animation: lp-ico-wobble 0.4s ease;
}
@keyframes lp-ico-wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* 3. Crimen — shield shake */
.lp-cat-tab:nth-child(3):hover svg,
.lp-cat-tab:nth-child(3).lp-cat-tab--intro svg {
    animation: lp-ico-shake 0.35s ease;
}
@keyframes lp-ico-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1.5px); }
    80% { transform: translateX(1px); }
}

/* 4. Verde — leaf sway */
.lp-cat-tab:nth-child(4):hover svg,
.lp-cat-tab:nth-child(4).lp-cat-tab--intro svg {
    animation: lp-ico-sway 0.6s ease-in-out;
    transform-origin: bottom center;
}
@keyframes lp-ico-sway {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(12deg); }
    70% { transform: rotate(-8deg); }
}

/* 5. Ruido — speaker vibrate */
.lp-cat-tab:nth-child(5):hover svg,
.lp-cat-tab:nth-child(5).lp-cat-tab--intro svg {
    animation: lp-ico-vibrate 0.3s linear 2;
}
@keyframes lp-ico-vibrate {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

/* 6. Clima — sun slow spin */
.lp-cat-tab:nth-child(6):hover svg,
.lp-cat-tab:nth-child(6).lp-cat-tab--intro svg {
    animation: lp-ico-spin 0.8s ease;
}
@keyframes lp-ico-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

/* 7. Salud — heartbeat */
.lp-cat-tab:nth-child(7):hover svg,
.lp-cat-tab:nth-child(7).lp-cat-tab--intro svg {
    animation: lp-ico-beat 0.5s ease;
}
@keyframes lp-ico-beat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
    60% { transform: scale(1); }
}

/* 8. Ocio nocturno — moon rock */
.lp-cat-tab:nth-child(8):hover svg,
.lp-cat-tab:nth-child(8).lp-cat-tab--intro svg {
    animation: lp-ico-rock 0.6s ease;
}
@keyframes lp-ico-rock {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-15deg); }
    50% { transform: rotate(10deg); }
    80% { transform: rotate(-5deg); }
}

/* 9. Inundacion — water drip/bounce */
.lp-cat-tab:nth-child(9):hover svg,
.lp-cat-tab:nth-child(9).lp-cat-tab--intro svg {
    animation: lp-ico-drip 0.45s ease;
}
@keyframes lp-ico-drip {
    0% { transform: translateY(-3px); opacity: 0.5; }
    60% { transform: translateY(1px); }
    80% { transform: translateY(-1px); }
    100% { transform: translateY(0); opacity: 0.85; }
}

/* 10. Aire — cloud float */
.lp-cat-tab:nth-child(10):hover svg,
.lp-cat-tab:nth-child(10).lp-cat-tab--intro svg {
    animation: lp-ico-float 0.7s ease-in-out;
}
@keyframes lp-ico-float {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(3px) translateY(-1px); }
}

/* 11. Demografia — people wave */
.lp-cat-tab:nth-child(11):hover svg,
.lp-cat-tab:nth-child(11).lp-cat-tab--intro svg {
    animation: lp-ico-wave 0.5s ease;
}
@keyframes lp-ico-wave {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-2px); }
    60% { transform: translateY(1px); }
}

@media (max-width: 768px) {
    .lp-category-tabs-scroll {
        justify-content: flex-start;
    }
}

/* Map (inside contained box) */
.lp-hero-map-wrapper {
    position: relative;
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
    border: 1px solid var(--lp-border-light);
    border-top: none;
    border-radius: 0 0 var(--lp-radius-md) var(--lp-radius-md);
    overflow: hidden;
}

.lp-hero-map {
    width: 100%;
    height: 100%;
    animation: lp-map-fadein 1s ease-out both;
}

@keyframes lp-map-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hide MapLibre controls on hero */
.lp-hero-map .maplibregl-ctrl-top-right,
.lp-hero-map .maplibregl-ctrl-bottom-right,
.lp-hero-map .maplibregl-ctrl-bottom-left,
.lp-hero-map .maplibregl-ctrl-top-left {
    display: none;
}

/* Hero map tooltip */
.lp-map-tooltip {
    position: absolute;
    z-index: 10;
    background: var(--lp-surface);
    padding: 0.35rem 0.6rem;
    border-radius: var(--lp-radius-sm);
    box-shadow: var(--lp-shadow-lg);
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--lp-text);
    pointer-events: none;
    transform: translate(-50%, -120%);
    white-space: nowrap;
    border: 1px solid var(--lp-border-light);
}

/* ============================================
   DATA SOURCES (trust logos)
   ============================================ */
.lp-sources {
    padding: 0.5rem 0 2.5rem;
    background: var(--lp-bg-cream);
}

.lp-sources-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.lp-sources-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.25rem 2rem;
    overflow-x: auto;
    padding: 0 1rem;
}
@media (min-width: 768px) {
    .lp-sources-grid { gap: 1.25rem 2.5rem; }
}

.lp-source-logo {
    flex-shrink: 0;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.lp-source-logo:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.lp-source-logo img {
    height: 26px;
    width: auto;
    max-width: 130px;
    display: block;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.lp-source-logo:hover img {
    filter: grayscale(0%);
    opacity: 0.8;
}
@media (min-width: 768px) {
    .lp-source-logo img { height: 30px; max-width: 150px; }
}

/* Text fallback logos (for institutions without downloadable logos) */
.lp-source-logo--text {
    opacity: 0.4;
}
.lp-source-logo--text:hover {
    opacity: 0.65;
}

.lp-source-name {
    font-family: 'Sora', 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lp-text-muted);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.02em;
    display: block;
}

/* ============================================
   SECTION HEADER (shared)
   ============================================ */
.lp-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.lp-section-header h2 {
    color: var(--lp-text);
    margin-bottom: 0.5rem;
}

.lp-section-header p {
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
    max-width: 46rem;
    margin: 0 auto;
    line-height: 1.6;
}

.lp-section-label {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--lp-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--lp-accent-muted);
    color: var(--lp-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */
.lp-problems {
    background: var(--lp-surface);
}

.lp-problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .lp-problems-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 1.25rem; }
}

.lp-pain-card {
    background: var(--lp-bg-cream);
    border-radius: var(--lp-radius-md);
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--lp-border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 5.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lp-pain-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--lp-shadow-md);
}

.lp-pain-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--lp-radius-sm);
    background: var(--lp-accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--lp-primary);
    transition: transform 0.25s ease;
}
.lp-pain-card:hover .lp-pain-icon {
    transform: scale(1.08);
}

.lp-pain-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.lp-pain-card p {
    font-size: 0.85rem;
    color: var(--lp-text-secondary);
    line-height: 1.5;
}

/* ============================================
   DISCOVERY GRID (data categories)
   ============================================ */
.lp-discovery {
    background: var(--lp-bg-cream);
}

.lp-discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) { .lp-discovery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .lp-discovery-grid { grid-template-columns: repeat(4, 1fr); } }

.lp-discovery-card {
    background: var(--lp-surface);
    border-radius: var(--lp-radius-md);
    padding: 1.25rem 1rem;
    border: 1px solid var(--lp-border-light);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lp-discovery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow-md);
    border-color: var(--lp-accent-muted);
}

.lp-disc-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--lp-radius-sm);
    background: var(--lp-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    color: var(--lp-primary);
    transition: background 0.25s, transform 0.25s;
}
.lp-disc-icon svg {
    transition: transform 0.3s ease;
}
.lp-discovery-card:hover .lp-disc-icon {
    background: var(--lp-accent-muted);
}
.lp-discovery-card:hover .lp-disc-icon svg {
    transform: scale(1.1);
}

/* Coming soon cards */
.lp-discovery-card--soon {
    position: relative;
    opacity: 0.55;
    border-style: dashed;
    border-color: var(--lp-border);
    background: var(--lp-bg-cream);
}
.lp-discovery-card--soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--lp-border);
}
.lp-discovery-card--soon:hover .lp-disc-icon {
    background: var(--lp-bg-warm);
}
.lp-discovery-card--soon:hover .lp-disc-icon svg {
    transform: none;
}

.lp-soon-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--lp-radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
    background: var(--lp-border-light);
}

.lp-discovery-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 0.2rem;
}

.lp-discovery-card p {
    font-size: 0.8rem;
    color: var(--lp-text-secondary);
    line-height: 1.5;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.lp-how {
    background: var(--lp-surface);
}

.lp-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.lp-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .lp-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 2rem;
        left: calc(50% + 2.5rem);
        width: calc(100% - 5rem);
        height: 1px;
        background: var(--lp-border);
    }
}

.lp-step-icon {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: var(--lp-radius-md);
    background: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--lp-shadow-md);
}

.lp-step-number {
    position: absolute;
    bottom: -0.35rem;
    right: -0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--lp-accent);
    color: var(--lp-primary-dark);
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lp-shadow-soft);
}

.lp-step h3 {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-text);
}

.lp-step p {
    margin-top: 0.35rem;
    color: var(--lp-text-secondary);
    max-width: 16rem;
    font-size: 0.85rem;
    line-height: 1.55;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.lp-comparison {
    background: var(--lp-bg-cream);
}

.lp-comparison .lp-container {
    max-width: 56rem;
}

.lp-comparison-table {
    border-radius: var(--lp-radius-md);
    overflow: hidden;
    border: 1px solid var(--lp-border);
}

.lp-comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--lp-primary);
    color: white;
}

.lp-comparison-header > div {
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
}
.lp-comparison-header > div:first-child {
    border-right: 1px solid var(--lp-primary-light);
}

.lp-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--lp-border-light);
}
.lp-comparison-row:last-child { border-bottom: none; }

.lp-comparison-row .lp-col-say {
    padding: 0.75rem 1rem;
    color: var(--lp-text-muted);
    border-right: 1px solid var(--lp-border-light);
    background: var(--lp-surface);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
}

.lp-comparison-row .lp-col-data {
    padding: 0.75rem 1rem;
    color: var(--lp-primary-dark);
    font-weight: 500;
    background: rgba(212, 228, 196, 0.15);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.lp-testimonials {
    background: var(--lp-surface);
}

.lp-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .lp-testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.lp-testimonial {
    background: var(--lp-bg-cream);
    border-radius: var(--lp-radius-md);
    padding: 1.25rem;
    border: 1px solid var(--lp-border-light);
}

.lp-testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.lp-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lp-accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-primary);
    flex-shrink: 0;
    object-fit: cover;
}

.lp-testimonial-name {
    font-weight: 600;
    color: var(--lp-text);
    font-size: 0.875rem;
}

.lp-testimonial-location {
    font-size: 0.775rem;
    color: var(--lp-text-muted);
}

.lp-stars {
    margin-left: auto;
    display: flex;
    gap: 1px;
    align-self: flex-start;
    margin-top: 2px;
}

.lp-stars span {
    color: var(--lp-border);
    font-size: 0.8rem;
    transition: color 0.35s ease, transform 0.35s ease;
}

/* Staggered fill on scroll — stars light up one by one */
.lp-visible .lp-stars span {
    color: #F59E0B;
    animation: lp-star-pop 0.35s ease both;
}
.lp-visible .lp-stars span:nth-child(1) { animation-delay: 0.1s; }
.lp-visible .lp-stars span:nth-child(2) { animation-delay: 0.2s; }
.lp-visible .lp-stars span:nth-child(3) { animation-delay: 0.3s; }
.lp-visible .lp-stars span:nth-child(4) { animation-delay: 0.4s; }
.lp-visible .lp-stars span:nth-child(5) { animation-delay: 0.5s; }

@keyframes lp-star-pop {
    0% { color: var(--lp-border); transform: scale(0.5); }
    60% { transform: scale(1.3); }
    100% { color: #F59E0B; transform: scale(1); }
}

.lp-testimonial blockquote {
    margin: 0;
    padding: 0;
    color: var(--lp-text-secondary);
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */
.lp-faq {
    background: var(--lp-bg-warm);
}

.lp-faq .lp-container {
    max-width: 44rem;
}

.lp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lp-faq-item {
    background: var(--lp-surface);
    border-radius: var(--lp-radius-md);
    border: 1px solid var(--lp-border-light);
    overflow: hidden;
}

.lp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--lp-text);
    transition: background 0.2s;
    user-select: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::marker { display: none; content: ''; }
.lp-faq-item summary:hover { background: var(--lp-bg-cream); }

.lp-faq-chevron {
    margin-left: 0.75rem;
    flex-shrink: 0;
    color: var(--lp-text-muted);
    transition: transform 0.2s;
    width: 1rem;
    height: 1rem;
}

.lp-faq-item[open] .lp-faq-chevron { transform: rotate(180deg); }

.lp-faq-answer {
    padding: 0 1.15rem 1rem;
    color: var(--lp-text-secondary);
    border-top: 1px solid var(--lp-border-light);
    padding-top: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.65;
}

/* ============================================
   FINAL CTA
   ============================================ */
.lp-cta {
    background: var(--lp-primary);
    padding: 3.5rem 0;
}
@media (min-width: 1024px) { .lp-cta { padding: 4rem 0; } }

.lp-cta .lp-container {
    max-width: 44rem;
    text-align: center;
}

.lp-cta h2 { color: white; margin-bottom: 0.5rem; }

.lp-cta .lp-cta-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.lp-cta .lp-cta-footer {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.lp-footer {
    background: var(--lp-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0;
}

.lp-footer-logo {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 1rem;
}
.lp-footer-logo .logo-icon {
    stroke: var(--lp-accent-light);
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .lp-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
}

.lp-footer-brand p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.lp-footer-brand .lp-footer-sources {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

.lp-footer h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.lp-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lp-footer a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.lp-footer a:hover { color: white; }

.lp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
@media (min-width: 768px) {
    .lp-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.lp-footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.lp-footer-disclaimer { font-size: 0.7rem; color: rgba(255,255,255,0.3); }

/* ============================================
   ANIMATIONS
   ============================================ */
.lp-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.lp-fade-in.lp-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .lp-fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .lp-comparison-header > div { font-size: 0.75rem; padding: 0.6rem 0.5rem; }
    .lp-comparison-row .lp-col-say,
    .lp-comparison-row .lp-col-data { font-size: 0.775rem; padding: 0.6rem 0.5rem; }
}
