/* =============================================================================
   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; }

/* Stat strip */
.lp-stat-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,.07);
    flex-wrap: wrap;
    gap: .5rem;
}
.lp-stat { display: flex; flex-direction: column; padding: 0 1.2rem; }
.lp-stat:first-child { padding-left: 0; }
.lp-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #b45309;
}
.lp-stat-lbl { font-size: .72rem; color: #5b6472; text-transform: uppercase; letter-spacing: .05em; }
.lp-stat-divider { width: 1px; height: 2rem; background: rgba(0,0,0,.1); }

/* 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; }

/* ── TRUST BAR ────────────────────────────────────────────────────────────── */
.lp-trust {
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 1.5rem 2rem;
    background: rgba(0,0,0,.02);
}
.lp-trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.lp-trust-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #7d8694;
    white-space: nowrap;
}
.lp-trust-logos { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.lp-trust-logo {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #5b6472;
    font-size: .82rem;
    transition: color .2s;
}
.lp-trust-logo i { font-size: 1.1rem; color: #b45309; }
.lp-trust-logo:hover { color: #111827; }

/* ── 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;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.lp-how { background: rgba(0,0,0,.015); }
.lp-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}
.lp-step {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .9rem;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    transition: border-color .25s, box-shadow .25s;
}
.lp-step:hover {
    border-color: rgba(245,158,11,.25);
    box-shadow: 0 0 30px rgba(245,158,11,.08);
}
.lp-step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #b45309;
    line-height: 1;
}
.lp-step-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(180,83,9,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-step-icon i { font-size: 1.4rem; color: #b45309; }
.lp-step h3 { font-size: 1rem; font-weight: 600; color: #111827; margin: 0; }
.lp-step p  { font-size: .85rem; color: #5b6472; line-height: 1.65; margin: 0; }
.lp-step-arrow {
    display: flex;
    align-items: center;
    padding: 0 .8rem;
    color: #d97706;
    font-size: 1.2rem;
    flex-shrink: 0;
    padding-top: 3.5rem;
}

/* ── FEATURES ─────────────────────────────────────────────────────────────── */
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.lp-feature-card {
    position: relative;
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    transition: border-color .25s, transform .25s;
}
.lp-feature-card:hover {
    border-color: rgba(245,158,11,.2);
    transform: translateY(-3px);
}
.lp-feature-card--tier { border-color: rgba(245,158,11,.12); }
.lp-feature-card--enterprise { border-color: rgba(16,185,129,.12); }
.lp-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(245,158,11,.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-feature-icon i { font-size: 1.15rem; color: #b45309; }
.lp-feature-card h3 { font-size: .95rem; font-weight: 600; color: #111827; margin: 0; }
.lp-feature-card p  { font-size: .82rem; color: #5b6472; line-height: 1.65; margin: 0; }
.lp-feature-tier-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    color: #b45309;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .15rem .55rem;
    border-radius: 100px;
}
.lp-badge-enterprise {
    background: rgba(16,185,129,.1);
    border-color: rgba(16,185,129,.3);
    color: #047857;
}

/* ── DAMAGE STATE CARDS ───────────────────────────────────────────────────── */
.lp-ds-section {
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(245,158,11,.04) 0%, transparent 70%);
}
.lp-ds-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.lp-ds-card {
    border-radius: 16px;
    border: 1px solid;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .7rem;
    transition: transform .25s, box-shadow .25s;
}
.lp-ds-card:hover { transform: translateY(-4px); }

.lp-ds-card--green  { background: rgba(34,197,94,.05);   border-color: rgba(34,197,94,.25); }
.lp-ds-card--yellow { background: rgba(234,179,8,.05);   border-color: rgba(234,179,8,.25); }
.lp-ds-card--orange { background: rgba(249,115,22,.05);  border-color: rgba(249,115,22,.25); }
.lp-ds-card--red    { background: rgba(239,68,68,.05);   border-color: rgba(239,68,68,.25); }

.lp-ds-card--green:hover  { box-shadow: 0 8px 30px rgba(34,197,94,.15); }
.lp-ds-card--yellow:hover { box-shadow: 0 8px 30px rgba(234,179,8,.15); }
.lp-ds-card--orange:hover { box-shadow: 0 8px 30px rgba(249,115,22,.15); }
.lp-ds-card--red:hover    { box-shadow: 0 8px 30px rgba(239,68,68,.15); }

.lp-ds-card-icon { font-size: 2rem; }
.lp-ds-card--green  .lp-ds-card-icon { color: #15803d; }
.lp-ds-card--yellow .lp-ds-card-icon { color: #a16207; }
.lp-ds-card--orange .lp-ds-card-icon { color: #c2410c; }
.lp-ds-card--red    .lp-ds-card-icon { color: #b91c1c; }

.lp-ds-card-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}
.lp-ds-card--green  .lp-ds-card-label { color: #15803d; }
.lp-ds-card--yellow .lp-ds-card-label { color: #a16207; }
.lp-ds-card--orange .lp-ds-card-label { color: #c2410c; }
.lp-ds-card--red    .lp-ds-card-label { color: #b91c1c; }

.lp-ds-card-state { font-size: .8rem; font-weight: 600; color: #5b6472; text-transform: uppercase; letter-spacing: .06em; }
.lp-ds-card p { font-size: .82rem; color: #5b6472; line-height: 1.65; margin: 0; }

/* ── 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-popular {
    position: absolute;
    top: -12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #0a0a0f;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .2rem .7rem;
    border-radius: 100px;
}
.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; }

/* ── FINAL CTA ────────────────────────────────────────────────────────────── */
.lp-final-cta {
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(245,158,11,.08) 0%, transparent 70%);
    text-align: center;
    padding: 8rem 2rem;
}
.lp-final-cta-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}
.lp-cta-pulse-ring {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(245,158,11,.2);
    animation: lp-cta-pulse 3s ease-in-out infinite;
    pointer-events: none;
}
.lp-cta-pulse-ring::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(245,158,11,.15);
}
@keyframes lp-cta-pulse {
    0%, 100% { transform: translateX(-50%) scale(1);   opacity: .6; }
    50%       { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.lp-final-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}
.lp-final-cta p { color: #5b6472; font-size: .95rem; line-height: 1.7; margin: 0; }
.lp-final-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── 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-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-ds-cards { grid-template-columns: repeat(2, 1fr); }
    .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-steps        { flex-direction: column; align-items: center; }
    .lp-step-arrow   { transform: rotate(90deg); padding: 0; }
    .lp-feature-grid { grid-template-columns: 1fr; }
    .lp-ds-cards     { grid-template-columns: 1fr 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-ds-cards { grid-template-columns: 1fr; }
    .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); }
