/* NYC Building X-Ray — shared stylesheet
   Plain CSS, system fonts, no frameworks. Mobile-first. */

:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --ink: #10151f;
  --ink-soft: #3d4657;
  --ink-faint: #6b7488;
  --line: #e3e7ee;
  --navy: #0a0f1a;
  --navy-2: #111a2e;
  --accent: #1d6ff2;
  --accent-deep: #1457c4;
  --scan: #22d3ee;
  --risk-high: #dc2626;
  --risk-high-bg: #fef2f2;
  --risk-elevated: #d97706;
  --risk-elevated-bg: #fffbeb;
  --risk-moderate: #b45309;
  --risk-low: #15803d;
  --risk-low-bg: #f0fdf4;
  --radius: 12px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p, li { max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 3px solid var(--scan);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--scan);
  opacity: 0.85;
}
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: #cbd5e6; font-size: 0.95rem; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--accent-deep);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; color: #fff; }
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn.dark:hover { background: var(--navy-2); }
.btn.small { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(34,211,238,0.14), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: #c3cede; max-width: 56ch; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-note { color: #8fa0bb; font-size: 0.95rem; margin-top: 1rem; }
.scanline {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--scan), transparent);
  opacity: 0.7;
  margin: 2.5rem 0 0;
}

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--navy); color: #e6ecf7; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lede { color: #aab8d0; }

.steps { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.checklist { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.1rem;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--risk-low-bg); color: var(--risk-low);
  font-weight: 700; font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #bbf7d0;
}
.checklist strong { color: var(--ink); }

/* ---------- Pricing cards ---------- */
.plans { display: grid; gap: 1.25rem; margin-top: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  display: flex; flex-direction: column;
  position: relative;
}
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 12px 32px rgba(29,111,242,0.10); }
.plan .tag {
  position: absolute; top: -0.85rem; left: 1.5rem;
  background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.plan h3 { margin: 0 0 0.2rem; font-size: 1.15rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.price { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.03em; margin: 0.4rem 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-faint); }
.plan .for { color: var(--ink-soft); margin: 0.3rem 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.plan ul li { padding-left: 1.7rem; position: relative; }
.plan ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }
.plan-note { margin-top: 1.2rem; color: var(--ink-faint); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { margin: 1.6rem 0 0; display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.faq-item h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.faq-item p { margin: 0.4rem 0 0; }
.faq-item p + p { margin-top: 0.6rem; }

/* ---------- Report page ---------- */
.report-meta {
  display: flex; gap: 0.7rem; flex-wrap: wrap;
  color: var(--ink-faint); font-size: 0.92rem; margin: 0.8rem 0 1.6rem;
}
.report-meta span {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.3rem 0.85rem;
}
.score-block {
  display: grid; gap: 1.5rem; align-items: center;
  background: var(--navy); color: #e8eefb;
  border-radius: 16px; padding: 2.2rem;
  margin: 1.8rem 0;
}
@media (min-width: 720px) { .score-block { grid-template-columns: auto 1fr; } }
.score-dial {
  width: 11rem; height: 11rem; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 10px solid var(--risk-high);
  background: var(--risk-high-bg);
  color: var(--ink);
  margin: 0 auto;
  flex: 0 0 auto;
}
.score-dial .num { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.score-dial .of { font-size: 0.85rem; color: var(--ink-faint); }
.risk-band {
  display: inline-block; font-weight: 800; letter-spacing: 0.08em; font-size: 0.85rem;
  text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.risk-band.high { background: var(--risk-high); color: #fff; }
.risk-band.elevated { background: var(--risk-elevated); color: #fff; }
.risk-band.moderate { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.risk-band.low { background: var(--risk-low-bg); color: var(--risk-low); border: 1px solid #bbf7d0; }
.score-block h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.6rem; }
.score-block p { color: #c3cede; margin: 0; }

.flag-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; }
.flag {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--ink-faint);
  border-radius: 10px; padding: 1.2rem 1.4rem;
}
.flag.sev-high { border-left-color: var(--risk-high); background: var(--risk-high-bg); }
.flag.sev-medium { border-left-color: var(--risk-elevated); }
.flag.sev-low { border-left-color: #94a3b8; }
.flag .sev {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 6px; padding: 0.15rem 0.55rem; margin-right: 0.5rem;
}
.sev-high .sev { background: var(--risk-high); color: #fff; }
.sev-medium .sev { background: var(--risk-elevated-bg); color: #92400e; border: 1px solid #fcd34d; }
.sev-low .sev { background: #f1f5f9; color: var(--ink-soft); border: 1px solid var(--line); }
.flag h3 { margin: 0.4rem 0 0.4rem; font-size: 1.05rem; }
.flag p { margin: 0; color: var(--ink-soft); }

.data-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 0.98rem; }
.data-table th, .data-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--navy); color: #fff; font-weight: 600; width: 34%; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

.q-list { counter-reset: q; list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.9rem; }
.q-list li {
  counter-increment: q;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.1rem 1.3rem 1.1rem 4rem;
  position: relative;
}
.q-list li::before {
  content: "Q" counter(q);
  position: absolute; left: 1.2rem; top: 1.05rem;
  background: var(--navy); color: var(--scan);
  font-weight: 800; font-size: 0.9rem;
  border-radius: 8px; padding: 0.2rem 0.55rem;
}

.gaps {
  background: #fff8e6; border: 1px solid #f5d67b; border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 1.6rem 0;
}
.gaps h3 { margin-top: 0; }
.method {
  color: var(--ink-faint); font-size: 0.9rem; font-family: var(--mono);
  border-top: 1px dashed var(--line); margin-top: 2.5rem; padding-top: 1.2rem;
}
.disclaimer {
  background: var(--navy); color: #c3cede; border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 1.6rem 0; font-size: 0.95rem;
}
.disclaimer strong { color: #fff; }

/* ---------- Request / CTA blocks ---------- */
.request-box {
  background: var(--surface); border: 2px solid var(--navy);
  border-radius: 16px; padding: 2.2rem; margin: 1.5rem 0;
}
.request-box .btn { font-size: 1.05rem; }
.beta-note {
  display: inline-block; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 0.25rem 0.8rem; margin-bottom: 0.8rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #8fa0bb; padding: 3rem 0 2rem; margin-top: 3rem; }
.site-footer a { color: #c3cede; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.trust-line { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.4rem; font-style: italic; color: #aab8d0; }
.trust-line strong { color: #fff; font-style: normal; }
.copyright { font-size: 0.85rem; color: #5f6d87; }

/* ---------- Misc ---------- */
.kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--accent); margin: 0 0 0.5rem;
}
.teaser-card {
  background: var(--navy); color: #e8eefb; border-radius: 16px; padding: 2rem;
  display: grid; gap: 1.2rem; align-items: center; margin: 1.6rem 0;
}
@media (min-width: 720px) { .teaser-card { grid-template-columns: auto 1fr auto; } }
.teaser-card h3 { color: #fff; margin: 0 0 0.3rem; }
.teaser-card p { color: #aab8d0; margin: 0; font-size: 0.95rem; }
.mini-dial {
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  border: 8px solid var(--risk-high); background: var(--risk-high-bg); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto; flex: 0 0 auto;
}
.mini-dial .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.mini-dial .of { font-size: 0.75rem; color: var(--ink-faint); }

.page-hero { background: var(--navy); color: #fff; padding: 3rem 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.3rem; }
.page-hero .lede { color: #aab8d0; }

.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }

.breadcrumb { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 0.8rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 0.8rem; }
  .nav a:not(.btn) { font-size: 0.88rem; }
  .site-header .btn.small { display: none; }
  .score-block, .request-box { padding: 1.5rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.7rem; font-size: 0.92rem; }
}
