/* ExtraCash Radar — global styles (placeholder theme, Mission 3 scaffold) */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --brand: #0b5fff;
  --brand-dark: #0047c2;
  --accent: #0ea86b;
  --border: #e3e6ea;
  --surface: #f6f8fa;
  --radius: 10px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand { text-decoration: none; color: var(--text); }
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}

/* Hero */
.hero {
  background: var(--surface);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand); color: #fff; }

/* Sections */
.section { padding: 3rem 0; }
.section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-top: 0;
}
.strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: step;
}
.steps li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.steps h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}
.cards li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg);
}
.cards h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.cards p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.placeholder-note {
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* Trust strip */
.trust-strip ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.trust-strip li {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.trust-strip h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.trust-strip p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Newsletter */
.newsletter {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.newsletter h2 { margin-top: 0; color: #fff; }
.newsletter p { color: rgba(255,255,255,0.85); }
.newsletter form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter input[type="email"] {
  flex: 1 1 240px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 1rem;
}
.newsletter .btn {
  background: #fff;
  color: var(--brand);
}
.newsletter .btn:hover { background: #eef3ff; }

/* Forms */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.form-field textarea { min-height: 160px; resize: vertical; }
form.contact { max-width: 640px; }

/* Draft banner (legal pages under owner review) */
.draft-banner {
  background: #fff3cd;
  border: 1px solid #e6c229;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.site-footer h3 { font-size: 1rem; margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 720px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
}

/* ---- Mission 4: listing templates ---- */

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--muted); }

.fixture-banner {
  background: #fff7e6;
  border: 1px solid #e8c96a;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.opp-detail .opp-header h1 { margin-bottom: 0.25rem; }
.opp-company { color: var(--muted); margin-top: 0; }
.opp-description { font-size: 1.05rem; }

.fact-table { margin: 0; }
.fact-table > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.fact-table dt { font-weight: 600; color: var(--muted); }
.fact-table dd { margin: 0; }

.verification-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.verification-box h2 { margin-top: 0; }
.verification-box dl { margin: 0 0 1rem; }
.verification-box dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 0.4rem 0;
}
.verification-box dt { font-weight: 600; color: var(--muted); }
.verification-box dd { margin: 0; }

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #eef1f4;
  color: #333;
}
.status-active { background: #e2f4e8; color: #14532d; }
.status-needs-verification { background: #fff3d6; color: #7a5b00; }
.status-expired, .status-rejected { background: #fde8e8; color: #7f1d1d; }
.status-owner-review { background: #e8eefb; color: #1e3a8a; }

.affiliate-disclosure {
  border-left: 4px solid var(--brand);
  background: #f2f7ff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.affiliate-disclosure p { margin: 0.4rem 0; font-size: 0.95rem; }
.affiliate-inline {
  font-size: 0.9rem;
  color: var(--muted);
}

.apply-section { margin: 2rem 0; }

.opp-card .opp-meta { font-size: 0.9rem; color: var(--muted); }
.opp-card .opp-verified {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.red-flags li { margin-bottom: 0.5rem; }

.category-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.category-links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.category-links a:hover { border-color: var(--brand); }

@media (max-width: 640px) {
  .fact-table > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .verification-box dl > div { grid-template-columns: 1fr; gap: 0.25rem; }
}
