/* Opportunity Atlas v2 — Polk featured + multi-county catalog */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #14201a;
  --muted: #5a6b62;
  --line: #d8ddd8;
  --brand: #1f4d3a;
  --brand-dark: #163828;
  --accent: #c45c26;
  --accent-hover: #a64b1c;
  --soft: #e8f0eb;
  --warn: #7a5b1e;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(20, 32, 26, 0.08);
  --max: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 1rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:hover { color: #fff; opacity: 0.92; }

.logo-sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  opacity: 0.85;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.nav-links a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #eef5f0 0%, var(--bg) 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.hero-sub {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn-buy {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-buy:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-secondary:hover {
  background: var(--soft);
  color: var(--brand-dark);
}

.muted-line {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 2.25rem 0;
}

section + section {
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Proof stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.stat-card .num {
  display: block;
  font-size: 1.75rem;
  font-weight: 750;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-card .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.note-box {
  background: var(--soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.note-box.warn {
  background: #f8f1e4;
  border-left-color: var(--warn);
}

.cols-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cols-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
}

.release-meta {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.industry-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.industry-grid li.highlight {
  border-color: #9bbba8;
  background: #f3faf6;
}

.industry-grid .count {
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

/* Sample table */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table.sample {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 720px;
}

table.sample th,
table.sample td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.sample th {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

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

table.sample tr:nth-child(even) td { background: #fafbfa; }

.blank {
  color: #a0a8a3;
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.step-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.steps strong { display: block; margin-bottom: 0.15rem; }
.steps span { color: var(--muted); font-size: 0.95rem; }

/* What you get / delivery */
.card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.card-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.card-list li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 2rem 0;
  border-top: none;
}

.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0 0 1.15rem; max-width: 36rem; }

.cta-band .btn-buy {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

.cta-band .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer a { color: var(--brand); }

.site-footer .disclaimer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0;
}

/* Inner pages */
.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.prose {
  padding: 0.5rem 0 2.5rem;
  max-width: 40rem;
}

.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Success */
.success-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  margin: 2.5rem auto;
  max-width: 32rem;
  text-align: center;
}

.success-panel .check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.success-panel h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.success-panel p {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.success-panel .actions {
  margin-top: 1.5rem;
}

@media (max-width: 560px) {
  .hero h1 { max-width: none; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
}


/* County catalog */
.county-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

.county-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
}

.county-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.county-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.county-card .btn {
  width: 100%;
}

.coming-soon {
  margin-top: 1.35rem;
}

@media (max-width: 560px) {
  .county-card .btn { width: 100%; }
}

/* Payhip embed: theme none — keep site button look */
a.payhip-buy-button.btn.btn-buy {
  display: inline-flex;
  text-decoration: none;
}


/* Buyer fit */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
@media (max-width: 700px) {
  .fit-grid { grid-template-columns: 1fr; }
}
.fit-card {
  border: 1px solid rgba(31, 77, 58, 0.18);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #fff;
}
.fit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.fit-card ul {
  margin: 0;
  padding-left: 1.1rem;
}
.fit-card li { margin: 0.25rem 0; }
.fit-yes { border-color: rgba(31, 77, 58, 0.35); }
.fit-no { background: #f7f7f5; }
