/* ============================================================
   ObserverFlow Factory — shared venture site stylesheet
   Brand tokens come from CSS custom properties set per-venture
   in the page <style> block (rendered from the venture config).
   One stylesheet, every venture. No build step, no framework.
   ============================================================ */

:root {
  /* Defaults (overridden per venture by the build) */
  --brand: #1e3a5f;
  --brand-dark: #14263d;
  --brand-soft: #eef3f8;
  --accent: #f59e0b;
  --accent-ink: #1a1a1a;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --ink: #16181d;
  --muted: #5b6470;
  --line: #e4e7ec;
  --good: #177245;
  --radius: 12px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 800;
  transform: translateY(3px);
}
.brand small { font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer;
  border: 1px solid transparent; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ---------- hero ---------- */
.hero { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 72px 24px 64px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em;
  max-width: 760px; margin-bottom: 18px;
}
.hero .lede { font-size: 20px; color: var(--muted); max-width: 680px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero-note strong { color: var(--ink); }

/* ---------- proof strip ---------- */
.proof { border-bottom: 1px solid var(--line); }
.proof-inner {
  max-width: var(--max); margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
}
.proof-item b { display: block; font-size: 30px; letter-spacing: -0.02em; color: var(--brand); line-height: 1.1; }
.proof-item span { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 680px; margin-bottom: 32px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* problem / pain */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pain-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.pain-card h3 { font-size: 18px; margin-bottom: 6px; }
.pain-card p { color: var(--muted); font-size: 15px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 28px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; margin-top: 2px;
}
.feature p { font-size: 16px; }
.feature p b { display: block; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: #fff; display: flex; flex-direction: column;
}
.tier.featured { border: 2px solid var(--brand); box-shadow: 0 8px 28px rgba(0,0,0,.08); position: relative; }
.tier .flag {
  position: absolute; top: -12px; left: 20px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.tier h3 { font-size: 18px; }
.tier .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.tier .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.tier .per { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.tier ul { list-style: none; margin-bottom: 20px; flex: 1; }
.tier li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; color: var(--muted); }
.tier li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.tier li b { color: var(--ink); }
.pricing-note { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 720px; }

/* FAQ */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 16px; }

/* capture */
.capture { background: var(--brand-dark); color: #fff; }
.capture h2 { color: #fff; }
.capture .section-sub { color: rgba(255,255,255,.75); }
.capture-form { display: flex; gap: 10px; max-width: 560px; flex-wrap: wrap; }
.capture-form input[type="email"] {
  flex: 1; min-width: 240px; padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3); font-size: 16px; font-family: var(--font);
  background: rgba(255,255,255,.08); color: #fff;
}
.capture-form input[type="email"]::placeholder { color: rgba(255,255,255,.55); }
.capture-form input[type="email"]:focus { outline: 2px solid var(--accent); border-color: transparent; }
.capture-note { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 12px; }
.capture-msg { margin-top: 14px; font-weight: 600; display: none; }
.capture-msg.ok { display: block; color: #9be3b8; }
.capture-msg.err { display: block; color: #ffb4a8; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
.disclosure {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: 13px; color: var(--muted); margin-bottom: 20px;
}

/* honesty box (the "what this is not" pattern) */
.honest {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 20px 22px; background: #fff; margin-top: 28px;
}
.honest h3 { font-size: 17px; margin-bottom: 6px; }
.honest p { color: var(--muted); font-size: 15px; }

/* live data table (HVAC state / solicitation lists) */
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.data-table tr:hover td { background: var(--bg-alt); }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}
.pill.hot { background: #fdeecd; color: #8a5a00; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 48px 0; }
  .hero-inner { padding: 52px 24px 44px; }
  .data-table { font-size: 14px; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
}
