/* ============================================================
   Build Radar — marketing site styles (homepage + /for/* pages).
   The dashboard (app.html) uses style.css; this file is separate
   so marketing pages stay light. Maryland flag palette.
   ============================================================ */

:root {
  --gold: #eaaa00;
  --gold-hover: #d19800;
  --gold-soft: #fcf1d2;
  --gold-ink: #6e5000;
  --black: #141210;
  --red: #a6192e;
  --bg: #fbf9f4;
  --surface: #ffffff;
  --ink: #141210;
  --ink-2: #4a4640;
  --ink-3: #7d776e;
  --line: #e7e1d5;
  --dark-2: #221f1b;
  --good: #2f7a4b;
  --radius: 12px;
  --paly: repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--black) 10px 20px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.stripe { height: 6px; background: var(--paly); }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav { padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 50; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: Archivo, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo-sub { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav-links > a { text-decoration: none; }
.nav-links > a:hover { color: var(--ink); }

/* "Who it's for" dropdown */
.dd { position: relative; }
.dd-btn {
  font: inherit; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
}
.dd-btn:hover, .dd.open .dd-btn { color: var(--ink); }
.dd-btn svg { width: 12px; height: 12px; transition: transform .15s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: -16px; width: 340px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(40,30,10,.35); padding: 8px;
}
.dd-menu::before { content: ""; display: block; height: 4px; margin: -8px -8px 8px; background: var(--paly); border-radius: 11px 11px 0 0; }
/* Invisible bridge above the menu, covering the gap up to the button, so
   moving the mouse down to a link never leaves the dropdown. */
.dd-menu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; }
.dd.open .dd-menu { display: block; }
.dd-menu a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px;
  border-radius: 8px; text-decoration: none; color: var(--ink);
}
.dd-menu a:hover, .dd-menu a:focus-visible { background: #f6f2e8; outline: none; }
.dd-menu a b { font-size: 14px; font-weight: 600; }
.dd-menu a span { grid-column: 1; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.dd-menu a em {
  grid-column: 2; grid-row: 1; align-self: start; font-style: normal; font-size: 11px; font-weight: 600;
  background: #f1eee8; color: var(--ink-3); padding: 2px 8px; border-radius: 999px;
}
.dd-menu a[aria-current="page"] b::after { content: " ·  you're here"; font-weight: 500; color: var(--ink-3); font-size: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--gold); color: var(--black); border-color: #c99200; }
.btn-primary:hover { background: var(--gold-hover); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-dark { background: var(--black); color: var(--gold); border-color: var(--black); }
.btn-dark:hover { background: #2b2722; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 60px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow img { width: 18px; height: 18px; border-radius: 3px; }
.eyebrow .where, .eyebrow .live { white-space: nowrap; }
.eyebrow .live { display: inline-flex; align-items: center; gap: 6px; color: var(--red); }
.eyebrow .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
h1 {
  font-family: Archivo, sans-serif; font-weight: 800;
  font-size: clamp(34px, 4.8vw, 54px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 20px;
}
.hl { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); padding: 0 2px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fine { font-size: 13px; color: var(--ink-3); }

/* Report-style card (hero visual) */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 28px 56px -28px rgba(40,30,10,.32);
  overflow: hidden; font-size: 14px;
}
.card-bar { height: 5px; background: var(--paly); }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-kicker { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; margin-bottom: 4px; gap: 12px; }
.card-title { font-weight: 600; font-size: 15px; }
.card-body { padding: 4px 20px 6px; }
.card-foot { padding: 12px 20px 16px; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { font-weight: 600; }
.row-meta { color: var(--ink-3); font-size: 13px; grid-column: 1 / 2; }
.tag {
  grid-row: 1 / 3; grid-column: 2; align-self: center; white-space: nowrap;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f1eee8; color: var(--ink-2);
}
.tag.gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag.up { background: #e7f3eb; color: var(--good); }

/* ── Sections ────────────────────────────────────────────── */
section { padding: 80px 0; }
.tight-top { padding-top: 0; }
.kicker { width: 44px; height: 6px; background: var(--paly); background-size: 20px 6px; margin-bottom: 18px; border-radius: 1px; }
.section-title {
  font-family: Archivo, sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px;
}
.section-sub { color: var(--ink-2); font-size: 18px; max-width: 680px; margin-bottom: 40px; }

/* Towns strip */
.towns { padding-top: 40px; }
.towns-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.towns-list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: Archivo, sans-serif; font-weight: 600; font-size: 17px; color: var(--ink-2); }
.towns-list span + span::before { content: "·"; margin-right: 18px; color: var(--gold); font-weight: 800; }

/* Persona cards */
.personas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.persona {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s; position: relative;
}
a.persona:hover { border-color: var(--ink-3); box-shadow: 0 18px 36px -24px rgba(40,30,10,.4); transform: translateY(-2px); }
.persona-who { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.persona h3 { font-family: Archivo, sans-serif; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.persona p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.persona-stat { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.persona-stat b { font-family: Archivo, sans-serif; font-size: 28px; font-weight: 800; }
.persona-stat span { color: var(--ink-3); font-size: 13px; }
.persona-go { margin-top: 14px; font-weight: 600; font-size: 14px; }
.persona.soon .persona-go { color: var(--ink-3); }
.soon-badge {
  position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700;
  background: #f1eee8; color: var(--ink-3); padding: 3px 10px; border-radius: 999px;
}
.persona.featured { border-top: 4px solid var(--gold); }

/* Dark band */
.dark { background: var(--black); color: #f1eee8; position: relative; }
.dark::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--paly); }
.dark .section-sub { color: #aaa398; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { background: var(--dark-2); border-radius: var(--radius); padding: 28px; border: 1px solid #2e2a25; }
.compare-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: #8f887d; text-transform: uppercase; letter-spacing: .1em; }
.compare-card.win { border-color: #5a4400; }
.compare-card.win h3 { color: var(--gold); }
.compare-card ul { list-style: none; display: grid; gap: 10px; }
.compare-card li { padding-left: 26px; position: relative; }
.compare-card li::before { content: "–"; position: absolute; left: 4px; color: #6b655c; }
.compare-card.win li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 32px; height: 32px; border-radius: 6px; background: var(--black); color: var(--gold);
  display: grid; place-items: center; font-family: Archivo, sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-top: 3px solid var(--black); padding-top: 16px; }
.stat:nth-child(2) { border-top-color: var(--gold); }
.stat:nth-child(3) { border-top-color: var(--red); }
.stat-num { font-family: Archivo, sans-serif; font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat-label { color: var(--ink-2); font-size: 15px; }

/* Live preview table with trade tabs */
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); background: #f6f2e8; overflow-x: auto; }
.tab {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); background: none; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 8px 8px 0 0; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 -3px 0 var(--gold) inset; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px; }
.ptable td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable td.num { text-align: right; font-weight: 600; white-space: nowrap; }
.ptable .sub { color: var(--ink-3); font-size: 12px; font-weight: 400; }
.ptable .site { color: var(--gold-ink); font-size: 12px; font-weight: 600; }
.chg { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.chg.up { color: var(--good); } .chg.down { color: var(--red); }
.chg.new { background: var(--gold-soft); color: var(--gold-ink); padding: 2px 8px; border-radius: 999px; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.feature { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.feature i {
  font-style: normal; width: 32px; height: 32px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink);
  display: grid; place-items: center; font-weight: 800; font-family: Archivo, sans-serif;
}
.feature h3 { font-size: 16px; margin-bottom: 2px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* Pricing */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 28px 56px -36px rgba(40,30,10,.35); }
.price-card-bar { height: 6px; background: var(--paly); }
.price-card-inner { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.price { font-family: Archivo, sans-serif; font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.price span { font-family: Inter, sans-serif; font-size: 17px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-note { color: var(--ink-2); margin: 12px 0 24px; }
.includes { list-style: none; display: grid; gap: 12px; }
.includes li { padding-left: 30px; position: relative; }
.includes li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 4px;
  background: var(--black); color: var(--gold); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 780px; margin-top: 28px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin-top: 10px; }

/* Final CTA */
.final { background: var(--gold); text-align: center; }
.final .kicker { margin: 0 auto 18px; background: repeating-linear-gradient(90deg, var(--black) 0 10px, transparent 10px 20px); }
.final .section-sub { margin-left: auto; margin-right: auto; color: #3d3100; margin-bottom: 30px; }
.final .cta-row { justify-content: center; }
.final .btn-primary { background: var(--black); color: var(--gold); border-color: var(--black); }
.final .btn-primary:hover { background: #2b2722; }
.final .fine { color: #5a4800; margin-top: 4px; }

/* Request form (sample / early access) */
.req-box { max-width: 560px; margin: 0 auto; text-align: left; }
.req-form { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 24px 48px -28px rgba(40,30,10,.45); }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.req-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.req-grid label.full { grid-column: 1 / -1; }
.req-grid input, .req-grid textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fbfaf7;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.req-grid textarea { resize: vertical; min-height: 76px; }
.req-grid input:focus, .req-grid textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: #c99200; background: #fff; }
.req-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.req-form .btn { width: 100%; }
.final .req-form .btn-primary { background: var(--black); color: var(--gold); border-color: var(--black); }
.req-msg { font-size: 13px; color: var(--ink-3); margin-top: 10px; min-height: 1em; }
.req-msg.err { color: var(--red); }
.req-done { background: var(--surface); border-radius: var(--radius); padding: 28px; text-align: center; }
.req-done b { font-family: Archivo, sans-serif; font-size: 22px; }
.req-done p { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 560px) { .req-grid { grid-template-columns: 1fr; } }

footer { background: var(--black); color: #aaa398; padding: 32px 0 40px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .foot-brand { display: flex; align-items: center; gap: 10px; }
footer .foot-brand img { width: 20px; height: 20px; border-radius: 3px; }
footer a { text-decoration: none; margin-left: 18px; }
footer a:hover { color: #fff; }
footer .links a:first-child { margin-left: 0; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero-grid, .compare, .price-card-inner, .personas, .features { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 28px; }
  section { padding: 56px 0; }
  .tight-top { padding-top: 0; }
  .nav-links { gap: 14px; }
  .nav-links > a:not(.btn) { display: none; }
  .dd { position: static; }
  .dd-menu { left: 12px; right: 12px; width: auto; top: calc(100% + 2px); }
  .eyebrow .live { display: none; }
  .price-card-inner { padding: 26px; gap: 24px; }
  .towns-list { font-size: 15px; gap: 4px 12px; }
  .towns-list span + span::before { margin-right: 12px; }
  .ptable th:nth-child(4), .ptable td:nth-child(4) { display: none; }
  .ptable td, .ptable th { padding: 9px 10px; }
  .logo-sub { display: none; }
}
.dd-btn, .logo-name { white-space: nowrap; }
@media (max-width: 420px) {
  .nav-links { gap: 10px; }
  .logo { gap: 8px; }
  .logo img { width: 26px; height: 26px; }
  .logo-name { font-size: 16px; }
  .dd-btn { font-size: 13px; }
  .nav-links .btn-sm { padding: 8px 11px; font-size: 13px; }
}
