/* =============================================================================
   landing.css  —  ShakeResponse M6 landing page styles
   All colours use existing CSS variables from main.css where possible.
   ============================================================================= */

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.lp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

/* Animated grid backdrop */
.lp-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245,158,11,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,158,11,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: lp-grid-drift 20s linear infinite;
    z-index: 0;
}
.lp-hero-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(245,158,11,.07) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 10% 80%, rgba(239,68,68,.05) 0%, transparent 60%);
}
@keyframes lp-grid-drift {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}

.lp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.lp-hero-text { display: flex; flex-direction: column; gap: 1.5rem; }

.lp-hero-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    color: #111827;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.lp-h1-accent {
    background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: #5b6472;
    max-width: 540px;
}

.lp-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.lp-cta-primary  { display: flex; align-items: center; gap: .5rem; }

.lp-hero-beta { font-size: .8rem; color: #5b6472; margin: 0; }

/* LIVE badge: hidden by CSS alone when quake-map.js drops the indicator's `live` class (USGS unavailable). */
.lp-quake-map-box .quake-map-header { justify-content: flex-start; gap: .5rem; }
.lp-quake-map-box .quake-map-header .title { margin-right: auto; }
.qm-live-badge { font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: #ff8a00; }
.status-indicator:not(.live) + .qm-live-badge { display: none; }

/* Example check-first list, below the live map so it never covers a quake. */
.lp-example-list {
    margin: 1rem 0 0;
    padding: .75rem .9rem;
    background: rgba(13,18,32,.92);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: .8rem;
}
.lp-example-list figcaption { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.lp-example-title { font-weight: 700; color: #fff; }
.lp-example-badge { font-size: .7rem; color: #cbd5e1; border: 1px solid rgba(255,255,255,.3); border-radius: 100px; padding: 0 .5rem; }
.lp-example-list ol { list-style: none; margin: 0; padding: 0; }
.lp-example-list li { display: flex; justify-content: space-between; padding: .3rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.lp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .45rem; }
/* HAZUS damage-state colors (project.md §5), used only for damage states. */
.lp-dot--red,    .lp-chip--red    { background: #ef4444; }
.lp-dot--orange, .lp-chip--orange { background: #f97316; }
.lp-dot--yellow, .lp-chip--yellow { background: #f59e0b; }
.lp-chip--green { background: #10b981; }

/* Recent-quakes map (quake-map.js). Dots use brand orange, never the HAZUS damage colors. */
.lp-quake-map-box { width: 100%; }
#quake-map svg { display: block; width: 100%; height: 340px; }
.qm-outline { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.45); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.qm-city-dot { fill: rgba(255,255,255,.55); }
.qm-city { fill: rgba(255,255,255,.55); font-size: .32px; font-family: inherit; }
.qm-quake { fill: rgba(255,107,0,.55); stroke: #ff8a00; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
a:hover > .qm-quake, a:focus > .qm-quake { fill: #ff8a00; stroke: #fff; }
.qm-pulse { fill: none; stroke: #ff8a00; stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: qm-pulse 2s ease-out infinite; pointer-events: none; }
@keyframes qm-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .qm-pulse { animation: none; } }
.qm-note { margin: .6rem 0 0; font-size: .8rem; color: rgba(255,255,255,.7); text-align: center; }

.lp-mag-legend {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    padding-top: .8rem;
    font-size: .72rem;
    color: rgba(255,255,255,.6);
}
.lp-mag-legend span { display: flex; align-items: center; gap: .35rem; }
.lp-mag-legend-src { margin-left: auto; }
.qm-key { display: inline-block; border-radius: 50%; background: rgba(255,107,0,.55); border: 1px solid #ff8a00; }
.qm-key-3 { width: 6px;  height: 6px; }
.qm-key-4 { width: 11px; height: 11px; }
.qm-key-5 { width: 18px; height: 18px; }
.quake-map-footer .qm-largest { min-width: 0; flex: 1; margin: 0 1rem; }
.qm-largest .val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── SHARED SECTION STRUCTURE ─────────────────────────────────────────────── */
.lp-section { padding: 6rem 2rem; }
.lp-section-inner { max-width: 1200px; margin: 0 auto; }

.lp-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}
.lp-section-tag {
    display: inline-block;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.3);
    color: #b45309;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 100px;
}
.lp-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    max-width: 720px;
    text-align: center;
}
.lp-section-lead {
    color: #5b6472;
    font-size: .95rem;
    line-height: 1.7;
    max-width: 640px;
    text-align: center;
}

/* ── BEFORE / AFTER ───────────────────────────────────────────────────────── */
.lp-ba-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.lp-ba-col { padding: 1.8rem; }
.lp-ba-col h3 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; color: #111827; margin: 0 0 1rem; }
.lp-ba-col h3 i { color: #b45309; margin-right: .35rem; }
.lp-ba-col ul { margin: 0; padding-left: 1.1rem; color: #374151; line-height: 1.8; }
.lp-ba-col .lp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin-top: 1.2rem; }
.lp-chip { color: #111; font-size: .75rem; font-weight: 600; padding: .15rem .7rem; border-radius: 100px; }

/* Folds: native <details>, no JS */
.lp-fold { margin-top: 1rem; }
.lp-fold summary { cursor: pointer; font-weight: 600; color: #b45309; }
.lp-ds-list { margin: .8rem 0 0; font-size: .85rem; line-height: 1.6; color: #5b6472; }
.lp-ds-list dt { font-weight: 700; color: #111827; margin-top: .7rem; }
.lp-ds-list dd { margin: .2rem 0 0; }
.lp-limits { max-width: 860px; margin: 0 auto; }
.lp-limits p { font-size: .85rem; line-height: 1.7; color: #5b6472; margin-top: .9rem; }
.lp-limits-link { text-align: center; margin-top: 1.5rem; }
.lp-limits-link a { color: #b45309; font-weight: 600; }

/* ── PRICING TEASER ───────────────────────────────────────────────────────── */
.lp-pricing-teaser {
    background: rgba(0,0,0,.015);
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    text-align: center;
}
.lp-tier-strip {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.lp-tier-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 1.8rem 2.2rem;
    min-width: 200px;
    transition: border-color .25s;
}
.lp-tier-pill:hover { border-color: rgba(245,158,11,.2); }
.lp-tier-pill--pro {
    border-color: rgba(245,158,11,.3);
    background: rgba(245,158,11,.05);
    box-shadow: 0 0 30px rgba(245,158,11,.08);
}
.lp-tier-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 107, 0, 0.14);
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: var(--seismic-orange);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lp-tier-name  { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 600; color: #374151; }
.lp-tier-price { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: #111827; }
.lp-tier-price span { font-size: .85rem; font-weight: 400; color: #5b6472; }
.lp-tier-detail { font-size: .78rem; color: #5b6472; }
.lp-pricing-cta { margin: 0 auto; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.lp-footer {
    border-top: 1px solid rgba(0,0,0,.07);
    padding: 4rem 2rem 1.5rem;
    background: #f7f8fa;
}
.lp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(5, auto);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.lp-footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.lp-footer-tagline { font-size: .82rem; color: #7d8694; line-height: 1.6; margin: 0; max-width: 240px; }
.lp-footer-links { display: contents; }
.lp-footer-col { display: flex; flex-direction: column; gap: .7rem; }
.lp-footer-col-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #5b6472;
    font-weight: 600;
    margin-bottom: .3rem;
}
.lp-footer-col a { font-size: .82rem; color: #5b6472; text-decoration: none; transition: color .2s; }
.lp-footer-col a:hover { color: #b45309; }
.lp-footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: .75rem;
    color: #9aa2af;
}
.lp-footer-data-note { display: flex; align-items: center; gap: .4rem; }
.lp-footer-data-note a { color: #5b6472; text-decoration: none; }
.lp-footer-data-note a:hover { color: #b45309; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lp-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .lp-hero-inner   { grid-template-columns: 1fr; gap: 2.5rem; }
    .lp-hero         { padding-top: 7rem; }
    .lp-ba-grid      { grid-template-columns: 1fr; }
    .lp-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .lp-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .lp-tier-strip { flex-direction: column; align-items: center; }
}

/* ── SCROLL REVEAL (applied by landing.js) ────────────────────────────────── */
.lp-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease var(--lp-delay, 0ms), transform .5s ease var(--lp-delay, 0ms);
}
.lp-fade-up.lp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ponytail: native <details> FAQ, no JS */
.lp-faq details { border-bottom: 1px solid rgba(0,0,0,.08); padding: 1rem 0; }
.lp-faq summary { cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 600; }
.lp-faq details p { margin-top: .75rem; color: var(--text-muted, #9ca3af); }
