/* ============================================================================
   seo_page.css — pSEO landing-page styles.

   Uses the same oklch warm-neutral palette as the dashboard (static/style.css)
   for brand cohesion, with the green/amber/red score colors borrowed for
   stat-box emphasis.
   ============================================================================ */

:root {
    --seo-bg:           oklch(96% 0.006 60);      /* warm off-white */
    --seo-bg-soft:      oklch(98.5% 0.004 60);
    --seo-fg:           oklch(20% 0.01 55);
    --seo-fg-muted:     oklch(40% 0.012 55);
    --seo-fg-soft:      oklch(55% 0.01 55);
    --seo-border:       oklch(88% 0.006 55);
    --seo-border-soft:  oklch(92% 0.006 55);
    --seo-accent:       oklch(43% 0.12 65);       /* warm amber */
    --seo-accent-bright:oklch(58% 0.14 65);
    --seo-accent-glow:  oklch(72% 0.10 65 / 0.18);
    --seo-link:         oklch(42% 0.13 155);      /* deep green */
    --seo-link-hover:   oklch(50% 0.15 155);
    --seo-stat-bg:      #ffffff;
    --seo-cta-bg:       oklch(96% 0.04 65);       /* faint warm wash */
    --seo-cta-border:   oklch(74% 0.10 65);
    --seo-color-green:  oklch(42% 0.14 155);      /* same as score-high */
    --seo-color-amber:  oklch(55% 0.14 70);
    --seo-color-red:    oklch(48% 0.16 25);
    --seo-locked-bg:    oklch(92% 0.02 60);
    --seo-locked-fg:    oklch(45% 0.02 60);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--seo-bg);
    color: var(--seo-fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--seo-link);
    text-decoration: none;
    font-weight: 500;
}
a:hover { color: var(--seo-link-hover); text-decoration: underline; }

/* ---------- Top nav ---------- */
.seo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid var(--seo-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.seo-nav-brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--seo-fg);
    letter-spacing: 0.2px;
}

.seo-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.seo-nav-links a {
    color: var(--seo-fg-muted);
    font-size: 14px;
    font-weight: 500;
}

.seo-nav-cta {
    background: var(--seo-accent);
    color: #fff !important;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 4px var(--seo-accent-glow);
}
.seo-nav-cta:hover {
    background: var(--seo-accent-bright);
    text-decoration: none;
}

/* ---------- Main content ---------- */
.seo-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.seo-h1 {
    font-size: 38px;
    line-height: 1.15;
    margin: 14px 0 12px;
    font-weight: 700;
    color: var(--seo-fg);
    letter-spacing: -0.4px;
    max-width: 880px;
}

.seo-subheader {
    font-size: 17px;
    line-height: 1.55;
    color: var(--seo-fg-muted);
    margin: 0 0 26px;
    max-width: 780px;
    font-weight: 400;
}

/* ---------- Insights strip ---------- */
/* 0–3 data-derived callouts surfaced between the blurb and the map. Pills,
   not a table — feels like a "did you know" rather than a stats dashboard. */
.seo-insights {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-insight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--seo-bg-soft);
    border: 1px solid var(--seo-border);
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--seo-fg);
    line-height: 1.3;
}

.seo-insight-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--seo-color-green);
    box-shadow: 0 0 0 3px oklch(42% 0.14 155 / 0.12);
}

.seo-insight:nth-child(2) .seo-insight-dot { background: var(--seo-accent-bright); box-shadow: 0 0 0 3px var(--seo-accent-glow); }
.seo-insight:nth-child(3) .seo-insight-dot { background: var(--seo-color-red); box-shadow: 0 0 0 3px oklch(48% 0.16 25 / 0.12); }

/* ---------- Stats strip ---------- */
/* All boxes identical in dimensions and typography for visual rhythm.
   Three accent colors used sparingly — too much variation made the row
   read as a chart, not a quick scan. */
.seo-stats-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.seo-stat {
    background: var(--seo-stat-bg);
    border: 1px solid var(--seo-border);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    min-width: 0;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

.seo-stat-value {
    font-size: 19px;
    font-weight: 700;
    color: var(--seo-fg);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Text-mode values (dates, type names) match numeric ones in weight and
   approximate size; just allow tighter line-height so two-line wraps stay
   inside the min-height envelope. */
.seo-stat-value.is-text {
    font-size: 15px;
    line-height: 1.25;
}

.seo-stat-label {
    font-size: 11px;
    color: var(--seo-fg-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Three accent colors, used to flag the boxes whose VALUES carry the
   strongest distress story. Everything else stays default text color. */
.seo-stat--violations .seo-stat-value { color: var(--seo-color-amber); }
.seo-stat--vacant     .seo-stat-value { color: var(--seo-color-red); }
.seo-stat--recent     .seo-stat-value { color: var(--seo-color-green); }

/* ---------- Data blurb ---------- */
/* Match map width — fills the container instead of narrowing to 820px. */
.seo-blurb {
    font-size: 16px;
    line-height: 1.65;
    color: var(--seo-fg);
    margin: 0 0 24px;
    padding: 16px 18px;
    background: var(--seo-bg-soft);
    border-left: 3px solid var(--seo-accent-bright);
    border-radius: 0 6px 6px 0;
}

/* ---------- Map ---------- */
.seo-map {
    height: 520px;
    border: 1px solid var(--seo-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--seo-bg-soft);
}

.seo-popup { font-family: inherit; color: var(--seo-fg); }
.seo-popup-addr { font-weight: 600; margin-bottom: 4px; }
.seo-popup-meta { font-size: 13px; color: var(--seo-fg-muted); margin-bottom: 6px; }
.seo-popup-locked {
    font-size: 12px;
    color: var(--seo-locked-fg);
    background: var(--seo-locked-bg);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ---------- Section titles ---------- */
.seo-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--seo-fg);
}

/* ---------- Sample addresses table ---------- */
.seo-sample-addresses { margin-bottom: 28px; }

.seo-addr-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--seo-stat-bg);
    border: 1px solid var(--seo-border);
    border-radius: 8px;
    overflow: hidden;
}

.seo-addr-table th,
.seo-addr-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--seo-border-soft);
    font-size: 14px;
}

.seo-addr-table th {
    background: var(--seo-bg-soft);
    font-weight: 600;
    color: var(--seo-fg-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.seo-addr-table tr:last-child td { border-bottom: none; }

.seo-locked {
    background: var(--seo-locked-bg);
    color: var(--seo-locked-fg);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- Signup CTA ---------- */
.seo-cta {
    background: var(--seo-cta-bg);
    border: 1px solid var(--seo-cta-border);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 28px 0;
    box-shadow: 0 2px 8px var(--seo-accent-glow);
}

.seo-cta-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--seo-fg);
}

.seo-cta-body {
    margin: 0 0 16px;
    color: var(--seo-fg-muted);
    max-width: 620px;
}

.seo-signup-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.seo-signup-email {
    flex: 0 1 320px;          /* don't grow past 320px even on wide screens */
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid var(--seo-border);
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: var(--seo-fg);
}
.seo-signup-email:focus {
    outline: none;
    border-color: var(--seo-accent-bright);
    box-shadow: 0 0 0 3px var(--seo-accent-glow);
}

.seo-signup-button {
    padding: 10px 22px;
    background: var(--seo-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--seo-accent-glow);
    transition: background 0.15s;
}
.seo-signup-button:hover { background: var(--seo-accent-bright); }

.seo-cta-fine { font-size: 12px; color: var(--seo-fg-soft); margin: 0; }

/* ---------- Adjacent + siblings strips ---------- */
.seo-adjacent, .seo-siblings { margin: 26px 0; }

.seo-adjacent-list, .seo-sibling-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 10px 14px;
}

.seo-adjacent-list li, .seo-sibling-list li { font-size: 14px; }

.seo-adjacent-list li a, .seo-sibling-list li a {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--seo-border);
    border-radius: 16px;
    color: var(--seo-link);
    font-weight: 500;
}
.seo-adjacent-list li a:hover, .seo-sibling-list li a:hover {
    background: var(--seo-accent-glow);
    border-color: var(--seo-accent-bright);
    text-decoration: none;
}

.seo-adjacent-count {
    color: var(--seo-fg-soft);
    font-size: 13px;
    margin-left: 4px;
}

/* ---------- Footer ---------- */
.seo-footer {
    border-top: 1px solid var(--seo-border);
    padding: 24px;
    background: var(--seo-bg-soft);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.seo-footer a { color: var(--seo-fg-muted); }
.seo-footer-data { color: var(--seo-fg-soft); margin-left: auto; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    .seo-h1 { font-size: 24px; }
    .seo-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .seo-map { height: 380px; }
    .seo-addr-table th:nth-child(4), .seo-addr-table td:nth-child(4) { display: none; }
    .seo-nav { padding: 12px 16px; }
    .seo-main { padding: 20px 16px 48px; }
    .seo-footer { padding: 18px 16px; }
    .seo-footer-data { margin-left: 0; width: 100%; text-align: center; }
    .seo-blurb { padding: 14px 14px; font-size: 15px; }
    .seo-signup-email { flex: 1 1 100%; max-width: none; }
}
