/* ===================================================
   FirstSignal Landing Page — FILED. aesthetic
   Warm cream bg, burnt orange accents, serif headlines
   =================================================== */

:root {
  --bg: #F5F0E8;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A1A;
  --text: #1A1A1A;
  --text-muted: #666666;
  --text-light: #888888;
  --accent: #D4622B;
  --accent-hover: #B8501F;
  --green: #2D5016;
  --green-light: #4A7C2A;
  --border: #1A1A1A;
  --border-light: #D0CBC0;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Courier New', Courier, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- STICKY NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  border-radius: 0.25rem;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

/* ---- SECTION LABELS ---- */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---- HERO ---- */
.hero-section {
  padding: 5rem 6vw 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.highlight {
  background: #F8D4B8;
  padding: 0.05em 0.2em;
  border-radius: 0.15em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 0.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border-light);
  border-radius: 0.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-ghost:hover { border-color: var(--border); background: rgba(0,0,0,0.03); }

.hero-note {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.green-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- LEAD CARD ---- */
.lead-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
  transform: rotate(0.8deg);
  box-shadow: 6px 6px 0px rgba(26,26,26,0.08);
}

.card-filed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-file-id {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
}

.card-badge {
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  text-transform: uppercase;
}

.intent-stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--green);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 0.2rem;
  transform: rotate(6deg);
  box-shadow: 2px 2px 0px rgba(0,0,0,0.15);
}

.card-company {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.card-county {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-light);
}

.card-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.card-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }

.card-meta-key {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.card-meta-val {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.card-meta-val.verified { color: var(--green); }

.card-divider {
  border: none;
  border-top: 1px dashed var(--border-light);
  margin: 1.25rem 0;
}

.confidence-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.confidence-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.confidence-score {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.confidence-unit {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.progress-bar {
  height: 6px;
  background: #E8E3D9;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  width: 94%;
}

.confidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.conf-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 0.2rem;
  color: var(--text-muted);
  background: var(--bg);
}

/* ---- SECTION WRAPPER ---- */
.section {
  padding: 5rem 6vw;
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section--white {
  background: #fff;
}

/* ---- COMPARISON ---- */
.comparison-section {
  background: var(--bg);
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.comparison-card-header {
  padding: 1.25rem 1.5rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
}

.comparison-card-header--dark {
  background: var(--bg-dark);
  color: #fff;
  border-bottom-color: #333;
}

.comparison-card-header--dark .comparison-subheader {
  color: #999;
  font-family: var(--sans);
  font-weight: 400;
}

.comparison-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid #F0EDE7;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.comparison-row:last-child { border-bottom: none; }

.comparison-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comparison-icon--bad {
  background: #F5D5CB;
  color: #B85C4A;
}

.comparison-icon--good {
  background: #D4E8C4;
  color: var(--green);
}

/* ---- THREE CARDS ---- */
.cards-section {
  background: #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  background: var(--bg);
}

.card-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card-tagline {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.card-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- PRODUCT FLOW ---- */
.product-section {
  background: var(--bg-dark);
  color: #fff;
}

.product-section .section-label { color: var(--accent); }
.product-section .section-headline { color: #fff; }
.product-section .section-sub { color: #888; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
}

.flow-step {
  padding: 2rem 1.75rem;
  border: 1px solid #333;
  border-right: none;
  position: relative;
}

.flow-step:last-child { border-right: 1px solid #333; border-radius: 0 0.5rem 0.5rem 0; }
.flow-step:first-child { border-radius: 0.5rem 0 0 0.5rem; }

.flow-step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.flow-step-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.flow-step-desc {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
}

/* ---- PILOT SECTION ---- */
.pilot-section {
  background: var(--bg);
}

.pilot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.pilot-offer {
  background: var(--bg-dark);
  color: #fff;
  border-radius: 0.75rem;
  padding: 2.5rem;
}

.pilot-offer-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.pilot-big-num {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pilot-offer-headline {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pilot-bullets { list-style: none; }
.pilot-bullets li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #ccc;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.pilot-bullets li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---- PILOT FORM ---- */
.pilot-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2.5rem;
}

.pilot-form-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  display: block;
}

.form-label-hint {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  display: block;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 0.35rem;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-light); }

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--accent-hover); }

.form-success-msg {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success-msg h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.form-success-msg p { font-size: 0.88rem; color: var(--text-muted); }

/* ---- FAQ ---- */
.faq-section {
  background: #fff;
}

.faq-list { max-width: 680px; }

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child { border-top: 1px solid var(--border-light); }

.faq-q {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.faq-question {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.urgency-footer {
  background: var(--bg);
  text-align: center;
  padding: 5rem 6vw;
}

.urgency-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.county-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.county-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
}

.county-chip--open {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.county-chip--taken {
  opacity: 0.4;
  text-decoration: line-through;
}

.county-chip--open-count {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cta-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---- SITE FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-brand span { color: var(--accent); }

.footer-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; }
  .lead-card-wrap { display: none; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-step { border: 1px solid #333; }
  .flow-step:nth-child(2) { border-radius: 0 0.5rem 0.5rem 0; }
  .flow-step:nth-child(3) { border-top: none; border-radius: 0 0 0 0.5rem; }
  .flow-step:nth-child(4) { border-top: none; border-radius: 0 0 0.5rem 0; }
}

@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .pilot-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-step { border: 1px solid #333; border-radius: 0; }
  .site-footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-meta { text-align: center; }
  .nav-links { display: none; }
}