/* portal/assets/css/landing.css
   Landing page styles — Light & Trustworthy theme.
   Completely separate from the portal's dark theme.
   Uses CSS custom properties for maintainability. */

:root {
    --lp-primary: #1e3a5f;
    --lp-primary-light: #2d5a8e;
    --lp-primary-soft: #4a7ab5;
    --lp-primary-pale: #a0bdd8;
    --lp-bg: #ffffff;
    --lp-surface: #f8f9fb;
    --lp-hero-grad-start: #f0f4f8;
    --lp-border: #e5e7eb;
    --lp-text: #111111;
    --lp-text-body: #333333;
    --lp-text-muted: #666666;
    --lp-success: #2d6a2d;
    --lp-success-bg: #f0f7f0;
    --lp-success-border: #c6e6c6;
    --lp-danger: #ef4444;
    --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --lp-max-width: 1120px;
    --lp-radius: 8px;
    --lp-radius-pill: 999px;
    --lp-shadow: 0 4px 24px rgba(0,0,0,.08);
    --lp-shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font: 400 16px/1.6 var(--lp-font);
    color: var(--lp-text-body);
    background: var(--lp-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--lp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Layout */
.lp-wrap {
    width: min(var(--lp-max-width), calc(100% - 32px));
    margin: 0 auto;
}

/* ── Nav ── */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-border);
}
.lp-nav .lp-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-text);
}
.lp-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-light));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
}
.lp-logo-text { font-weight: 700; font-size: 16px; }
.lp-logo-sub {
    display: block;
    font-size: 11px;
    color: var(--lp-text-muted);
    font-weight: 400;
    letter-spacing: .04em;
}
.lp-nav-links { display: flex; gap: 8px; align-items: center; }
.lp-nav-links a {
    padding: 8px 14px;
    border-radius: var(--lp-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text-muted);
    text-decoration: none;
    transition: background .15s;
}
.lp-nav-links a:hover {
    background: var(--lp-surface);
    text-decoration: none;
}
.lp-nav-links .lp-nav-cta {
    background: var(--lp-primary);
    color: #fff;
}
.lp-nav-links .lp-nav-cta:hover { background: var(--lp-primary-light); }

/* Mobile nav toggle */
.lp-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    color: var(--lp-text);
}

/* ── Hero ── */
.lp-hero {
    padding: 80px 0 56px;
    text-align: center;
    background: linear-gradient(180deg, var(--lp-hero-grad-start) 0%, var(--lp-bg) 100%);
    position: relative;
    overflow: hidden;
}
.lp-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30,58,95,.06) 0%, transparent 70%);
    pointer-events: none;
}
.lp-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lp-primary-light);
    margin-bottom: 12px;
}
.lp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--lp-text);
    margin: 0 auto 16px;
    max-width: 700px;
}
.lp-hero-sub {
    color: var(--lp-text-muted);
    font-size: 18px;
    margin: 0 auto 32px;
    max-width: 520px;
}

/* ── Search Box ── */
.lp-search {
    max-width: 480px;
    margin: 0 auto;
}
.lp-search-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--lp-primary);
    border-radius: var(--lp-radius);
    font-size: 16px;
    font-family: var(--lp-font);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.lp-search-input:focus {
    border-color: var(--lp-primary-light);
    box-shadow: 0 0 0 3px rgba(30,58,95,.12);
}
.lp-search-input::placeholder { color: #aaa; }
.lp-search-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: var(--lp-radius);
    background: var(--lp-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--lp-font);
    cursor: pointer;
    transition: background .15s;
}
.lp-search-btn:hover { background: var(--lp-primary-light); }
.lp-search-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Trust Bar ── */
.lp-trust {
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    background: var(--lp-surface);
    padding: 28px 0;
}
.lp-trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.lp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.lp-trust-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.lp-trust-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.lp-trust-icon {
    width: 24px;
    height: 24px;
    color: var(--lp-primary);
}

/* ── Section (generic) ── */
.lp-section {
    padding: 64px 0;
}
.lp-section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lp-primary-light);
    text-align: center;
    margin-bottom: 8px;
}
.lp-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--lp-text);
    text-align: center;
    margin: 0 0 40px;
}

/* ── Sample Report Card ── */
.lp-report-card {
    max-width: 520px;
    margin: 0 auto 24px;
    background: var(--lp-bg);
    border-radius: 12px;
    box-shadow: var(--lp-shadow-lg);
    padding: 24px;
    border: 1px solid var(--lp-border);
}
.lp-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.lp-report-title { font-weight: 800; font-size: 18px; color: var(--lp-primary); }
.lp-report-address { font-size: 14px; color: var(--lp-text-muted); }
.lp-report-meta { font-size: 12px; color: #999; }
.lp-badge {
    background: #e8f0fe;
    color: var(--lp-primary);
    padding: 4px 12px;
    border-radius: var(--lp-radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lp-report-map {
    height: 160px;
    border-radius: var(--lp-radius);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #e8f0fe, #d0dff0);
    position: relative;
    overflow: hidden;
}
.lp-report-map-grid {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,.4) 23px, rgba(255,255,255,.4) 24px),
        repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,.4) 23px, rgba(255,255,255,.4) 24px);
}
.lp-report-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--lp-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(30,58,95,.2);
}
.lp-report-map-radius {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed rgba(30,58,95,.25);
}
.lp-report-map-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.lp-report-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.lp-report-stat {
    flex: 1;
    background: var(--lp-surface);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}
.lp-report-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--lp-primary);
    display: block;
}
.lp-report-stat-label {
    font-size: 11px;
    color: var(--lp-text-muted);
}
.lp-report-breakdown { margin-bottom: 16px; }
.lp-report-breakdown-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--lp-text);
}
.lp-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}
.lp-bar-track {
    flex: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}
.lp-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: var(--lp-primary);
}
.lp-bar-label { width: 120px; text-align: right; white-space: nowrap; }
.lp-report-table {
    width: 100%;
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.lp-report-table th {
    background: var(--lp-surface);
    text-align: left;
    padding: 8px 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--lp-border);
}
.lp-report-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.lp-report-table tr:last-child td {
    border-bottom: none;
    color: #999;
    font-style: italic;
}
.lp-report-actions {
    display: grid;
    gap: 10px;
}
.lp-report-cta {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--lp-radius);
    background: var(--lp-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.lp-report-cta:hover { background: var(--lp-primary-light); color: #fff; text-decoration: none; }
.lp-report-cta-secondary {
    background: #fff;
    color: var(--lp-primary);
    border: 1px solid var(--lp-primary);
}
.lp-report-cta-secondary:hover {
    background: var(--lp-surface);
    color: var(--lp-primary);
}

/* Feature badges */
.lp-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lp-badge-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--lp-success-bg);
    border: 1px solid var(--lp-success-border);
    border-radius: var(--lp-radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-success);
}

/* ── Use Cases ── */
.lp-usecases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.lp-usecase {
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    background: var(--lp-bg);
    transition: box-shadow .2s, transform .2s;
}
.lp-usecase:hover {
    box-shadow: var(--lp-shadow);
    transform: translateY(-2px);
}
.lp-usecase-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(30,58,95,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--lp-primary);
    margin-bottom: 16px;
}
.lp-usecase h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--lp-text);
}
.lp-usecase p {
    font-size: 13px;
    color: var(--lp-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Pricing ── */
.lp-pricing {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 740px;
    margin: 0 auto;
}
.lp-price-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}
.lp-price-card.lp-price-primary {
    border-color: var(--lp-primary);
    box-shadow: var(--lp-shadow);
    position: relative;
}
.lp-price-card.lp-price-primary::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--lp-radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lp-price-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 4px;
}
.lp-price-amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--lp-primary);
    margin: 12px 0;
}
.lp-price-desc {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin-bottom: 20px;
}
.lp-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}
.lp-price-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-price-features li::before {
    content: '\2713';
    color: var(--lp-success);
    font-weight: 700;
}
.lp-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--lp-primary);
    color: #fff;
    border: none;
    border-radius: var(--lp-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.lp-btn-primary:hover { background: var(--lp-primary-light); color: #fff; text-decoration: none; }
.lp-btn-ghost {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--lp-primary);
    border: 2px solid var(--lp-primary);
    border-radius: var(--lp-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.lp-btn-ghost:hover {
    background: var(--lp-surface);
    text-decoration: none;
}

/* ── FAQ ── */
.lp-faq { max-width: 700px; margin: 0 auto; }
.lp-faq-item {
    border-bottom: 1px solid var(--lp-border);
}
.lp-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--lp-text);
    cursor: pointer;
    text-align: left;
    font-family: var(--lp-font);
}
.lp-faq-q::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--lp-text-muted);
    transition: transform .2s;
}
.lp-faq-item.open .lp-faq-q::after {
    transform: rotate(45deg);
}
.lp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    font-size: 15px;
    color: var(--lp-text-muted);
    line-height: 1.6;
}
.lp-faq-item.open .lp-faq-a {
    max-height: 300px;
    padding-bottom: 20px;
}

/* ── Footer CTA ── */
.lp-footer-cta {
    padding: 72px 0;
    background: linear-gradient(180deg, var(--lp-surface), #eef2f7);
    text-align: center;
}
.lp-footer-cta h2 {
    text-align: center;
    margin-bottom: 12px;
}
.lp-footer-cta-sub {
    color: var(--lp-text-muted);
    font-size: 16px;
    margin: 0 auto 28px;
    max-width: 480px;
}

/* ── Footer ── */
.lp-footer {
    border-top: 1px solid var(--lp-border);
    padding: 24px 0;
}
.lp-footer .lp-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.lp-footer-copy {
    font-size: 14px;
    color: var(--lp-text-muted);
}
.lp-footer-links {
    display: flex;
    gap: 16px;
}
.lp-footer-links a {
    font-size: 14px;
    color: var(--lp-text-muted);
}

/* ── Teaser Results ── */
.lp-teaser {
    display: none;
    padding: 40px 0;
    text-align: center;
}
.lp-teaser.active { display: block; }
.lp-teaser-address {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin-bottom: 12px;
}
.lp-teaser-count {
    font-size: 48px;
    font-weight: 800;
    color: var(--lp-primary);
    line-height: 1;
}
.lp-teaser-label {
    font-size: 16px;
    color: var(--lp-text-muted);
    margin-bottom: 24px;
}
.lp-teaser-map {
    max-width: 480px;
    margin: 0 auto 24px;
    border-radius: var(--lp-radius);
    overflow: hidden;
    position: relative;
}
.lp-teaser-map img {
    display: block;
    width: 100%;
    filter: blur(6px);
}
.lp-teaser-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--lp-primary);
    font-size: 15px;
}
.lp-teaser-breakdown {
    max-width: 400px;
    margin: 0 auto 24px;
    text-align: left;
}

/* ── Email Modal ── */
.lp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
}
.lp-modal-overlay.active { display: flex; }
.lp-modal {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: var(--lp-shadow-lg);
    text-align: center;
}
.lp-modal h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--lp-text);
}
.lp-modal p {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin: 0 0 20px;
}
.lp-modal input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--lp-border);
    border-radius: var(--lp-radius);
    font-size: 15px;
    font-family: var(--lp-font);
    margin-bottom: 12px;
    outline: none;
}
.lp-modal input[type="email"]:focus {
    border-color: var(--lp-primary);
}
.lp-modal-hint {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}
.lp-modal-error {
    color: var(--lp-danger);
    font-size: 13px;
    margin-bottom: 8px;
    display: none;
}

/* Honeypot */
.lp-hp { position: absolute; left: -9999px; }

/* ── Loading spinner ── */
.lp-spinner {
    display: none;
    width: 32px;
    height: 32px;
    border: 3px solid var(--lp-border);
    border-top-color: var(--lp-primary);
    border-radius: 50%;
    animation: lp-spin .6s linear infinite;
    margin: 20px auto;
}
.lp-spinner.active { display: block; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ── Animations ── */
@keyframes lp-fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.lp-hero h1,
.lp-hero-sub,
.lp-search {
    animation: lp-fadeUp .6s ease both;
}
.lp-hero-sub { animation-delay: .1s; }
.lp-search { animation-delay: .2s; }
html { scroll-behavior: smooth; }
.lp-search-btn:active,
.lp-btn-primary:active,
.lp-report-cta:active {
    transform: scale(.98);
}
.lp-price-card {
    transition: box-shadow .2s, transform .2s;
}
.lp-price-card:hover {
    box-shadow: var(--lp-shadow-lg);
    transform: translateY(-2px);
}
.lp-faq-q {
    transition: color .15s;
}
.lp-faq-q:hover {
    color: var(--lp-primary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .lp-usecases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .lp-nav-links { display: none; }
    .lp-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--lp-border); padding: 12px 16px; }
    .lp-nav-toggle { display: block; }
    .lp-hero { padding: 40px 0 32px; }
    .lp-hero h1 { font-size: 1.8rem; }
    .lp-usecases { grid-template-columns: 1fr; }
    .lp-trust-items { gap: 16px; }
    .lp-report-stats { flex-direction: column; }
    .lp-pricing { flex-direction: column; align-items: center; }
    .lp-price-card { max-width: 100%; }
    .lp-badges { flex-direction: column; align-items: center; }
    .lp-search-btn, .lp-btn-primary, .lp-btn-ghost, .lp-report-cta { width: 100%; }
    .lp-footer .lp-wrap { flex-direction: column; text-align: center; }
}
