/**
 * BarrioRadar - Buyer Acquisition Landing Page Styles (/check-property/)
 * Lightweight, zero-layout-shift, mobile-first design adhering strictly to BarrioRadar Design Tokens.
 */

:root {
  --cp-max-width: 1160px;
  --cp-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cp-font-mono: 'JetBrains Mono', monospace;
}

body.cp-body {
  margin: 0;
  padding: 0;
  font-family: var(--cp-font-sans);
  background-color: #F8FAFC;
  color: var(--br-color-text-main, #0F172A);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Container */
.cp-main {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cp-container {
  max-width: var(--cp-max-width);
  margin: 0 auto;
  padding: 36px 24px 0;
  width: 100%;
  box-sizing: border-box;
}

.cp-container-bottom {
  padding: 36px 24px 56px;
}

/* Product Search Hero (Ultra-Focused Initial State) */
.cp-hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 16px auto 44px;
}

.cp-hero-split .cp-hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.cp-hero-split .cp-subhead {
  margin-left: auto;
  margin-right: auto;
}

.cp-hero-split .cp-search-wrap {
  margin-left: auto;
  margin-right: auto;
}

.cp-hero-split .cp-trust-points {
  justify-content: center;
}

.cp-hero-split .cp-example-prompt {
  justify-content: center;
}

.cp-hero-split .cp-hero-right {
  display: none;
}

.section-tag,
.cp-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent, #2563EB);
  margin-bottom: 8px;
  display: block;
}

.cp-h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--br-color-text-main, #0F172A);
  margin: 0 0 14px;
}

.cp-h1-lead {
  display: block;
}

.cp-highlight {
  color: var(--br-color-brand-accent, #2563EB);
  display: block;
}

.cp-subhead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--br-color-text-secondary, #475569);
  margin: 0 0 24px;
  max-width: 540px;
}

/* Search Box Container */
.cp-search-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 0 12px;
}

.cp-search-bar {
  display: flex;
  background: #ffffff;
  border: 2px solid var(--br-color-border-medium, #CBD5E1);
  border-radius: var(--br-radius-lg, 10px);
  padding: 4px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-search-bar:focus-within {
  border-color: var(--br-color-brand-accent, #2563EB);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cp-search-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  gap: 10px;
}

.cp-search-input-group i {
  color: var(--br-color-text-muted, #64748B);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cp-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--cp-font-sans);
  font-size: 0.9375rem;
  color: var(--br-color-text-main, #0F172A);
  outline: none;
  padding: 10px 0;
  min-height: 24px;
}

.cp-input::placeholder {
  color: #94A3B8;
}

.cp-btn-submit {
  background: var(--br-color-brand-accent, #2563EB);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-family: var(--cp-font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}

.cp-btn-submit:hover {
  background: #1D4ED8;
}

/* Autocomplete Dropdown */
.cp-autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--br-color-border-medium, #CBD5E1);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.cp-autocomplete-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  text-align: left;
}

.cp-autocomplete-item:last-child {
  border-bottom: none;
}

.cp-autocomplete-item:hover,
.cp-autocomplete-item.active {
  background: #F8FAFC;
  outline: none;
}

.cp-item-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--br-color-text-main, #0F172A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.cp-badge-door {
  background: #DCFCE7;
  color: #166534;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cp-badge-street {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Trust Points Immediately Below Search */
.cp-trust-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 14px 0 8px;
}

.cp-trust-point {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--br-color-text-secondary, #475569);
}

.cp-trust-point i,
.cp-trust-point svg {
  width: 14px;
  height: 14px;
  color: #16A34A;
  flex-shrink: 0;
}

/* Secondary Example Prompt (Under Trust Points) */
.cp-example-prompt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  font-size: 0.8125rem;
}

.cp-example-prompt-text {
  color: var(--br-color-text-secondary, #475569);
  font-weight: 500;
}

.cp-example-prompt-link {
  color: var(--br-color-brand-accent, #2563EB);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.cp-example-prompt-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.cp-example-prompt-link i,
.cp-example-prompt-link svg {
  width: 13px;
  height: 13px;
}

.cp-value-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--br-color-border-light, #E2E8F0);
  margin-bottom: 44px;
}

.cp-pillars-header {
  text-align: center;
  margin-bottom: 28px;
}

.cp-pillars-title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--br-color-text-main, #0F172A);
  max-width: 640px;
  margin: 0 auto;
}

.cp-value-grid,
.cp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.cp-value-card {
  background: #ffffff;
  border: 1px solid var(--br-color-border-light, #E2E8F0);
  border-radius: var(--br-radius-md, 8px);
  padding: 22px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cp-value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.cp-value-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--br-radius-sm, 6px);
  background: #EFF6FF;
  color: var(--br-color-brand-accent, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.cp-value-icon-box i,
.cp-value-icon-box svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2px;
  display: block;
}

.cp-value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--br-color-text-main, #0F172A);
  margin: 0 0 8px;
  line-height: 1.3;
}

.cp-value-desc {
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--br-color-text-secondary, #475569);
  margin: 0;
}

/* Secondary CTA below features */
.cp-features-cta-wrap {
  text-align: center;
  margin-top: 8px;
}

.cp-btn-secondary-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid var(--br-color-border-medium, #CBD5E1);
  border-radius: var(--br-radius-md, 8px);
  color: var(--br-color-brand-accent, #2563EB);
  font-family: var(--cp-font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.cp-btn-secondary-report:hover {
  background: #EFF6FF;
  border-color: var(--br-color-brand-accent, #2563EB);
  color: #1D4ED8;
  text-decoration: none;
}

/* Search Feedback Notice */
.cp-search-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  text-align: left;
}

/* Full-Width Data Sources & Provenance Convergence Banner */
barrio-data-sources.datasources-banner-section,
#datasources-banner-section {
  display: block;
  width: 100%;
  margin: 0;
  background: #0F172A;
}

barrio-data-sources.datasources-banner-section > .datasources-banner-section,
#datasources-banner-section > .datasources-banner-section {
  width: 100%;
  margin: 0;
  padding: 36px 0 32px 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

@media (max-width: 768px) {
  barrio-data-sources.datasources-banner-section,
  #datasources-banner-section,
  .datasources-banner-section {
    display: none !important;
  }
}

/* Independence Trust Section */
.cp-trust-box {
  background: #ffffff;
  border: 1px solid var(--br-color-border-light, #E2E8F0);
  border-radius: var(--br-radius-md, 8px);
  padding: 20px;
  text-align: center;
  margin-bottom: 0;
}

.cp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--br-radius-pill, 9999px);
  margin-bottom: 8px;
}

.cp-trust-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--br-color-text-main, #0F172A);
  margin: 0 0 6px;
}

.cp-trust-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--br-color-text-secondary, #475569);
  max-width: 580px;
  margin: 0 auto;
}



/* Responsive Optimization (<= 980px Tablet / Mobile) */
@media (max-width: 980px) {
  .cp-hero-split {
    max-width: 100%;
    margin: 12px auto 36px;
  }

  .cp-value-grid,
  .cp-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .cp-container {
    padding: 24px 16px 0;
  }

  .cp-container-bottom {
    padding: 24px 16px 40px;
  }

  .cp-h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .cp-subhead {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .cp-search-bar {
    flex-direction: column;
    padding: 6px;
    gap: 8px;
  }

  .cp-search-input-group {
    padding-left: 6px;
  }

  .cp-btn-submit {
    width: 100%;
    justify-content: center;
  }

  .cp-trust-points {
    gap: 10px;
    justify-content: center;
  }

  .cp-value-grid,
  .cp-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cp-btn-secondary-report {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* Authentication Modal Support */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  animation: cpAuthFadeIn 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes cpAuthFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--br-radius-md, 8px);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--br-color-border-medium, #E2E8F0);
  box-sizing: border-box;
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--br-color-text-muted, #64748B);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s, background-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.auth-modal-close:hover {
  color: var(--br-color-text-main, #0F172A);
  background: #F1F5F9;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand-badge {
  display: inline-flex;
  padding: 8px;
  border-radius: var(--br-radius-sm, 6px);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  margin-bottom: 12px;
}

.auth-modal-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--br-color-text-main, #0F172A);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-modal-subtitle {
  font-size: 0.875rem;
  color: var(--br-color-text-secondary, #475569);
  line-height: 1.5;
  margin: 0;
}

.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-input-group label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--br-color-text-main, #0F172A);
}

.auth-input-group input {
  padding: 10px 14px;
  border: 1px solid var(--br-color-border-medium, #CBD5E1);
  border-radius: var(--br-radius-sm, 6px);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #FFFFFF;
  color: var(--br-color-text-main, #0F172A);
  box-sizing: border-box;
  width: 100%;
}

.auth-input-group input:focus {
  border-color: var(--br-color-brand-accent, #2563EB);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-modal-auto-create-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--br-color-text-muted, #64748B);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .auth-modal-overlay {
    align-items: flex-start;
    padding: max(16px, calc(env(safe-area-inset-top, 0px) + 12px)) 16px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-modal-card {
    margin-top: 8px;
    padding: 24px 18px;
    border-radius: var(--br-radius-md, 8px);
  }

  .auth-modal-close {
    top: 12px;
    right: 12px;
  }
}

