/* Flent's BOSS — vision/v2 concept site.
   Visual language adapted from ../../solution/site/styles.css (same product
   family: same tokens, same status-pill / card / verdict-badge discipline)
   but this is its own site, pitched as the flagship BOSS product rather than
   a "BETA" prototype label. */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --border: #ddd8cc;
  --text: #1a1a1a;
  --text-dim: #6b6b63;
  --accent: #0f6e4f;
  --accent-bg: #e4f3ec;
  --negotiate: #a86a00;
  --negotiate-bg: #fbf0dc;
  --hold: #5b5b5b;
  --hold-bg: #ececec;
  --pass: #a3272c;
  --pass-bg: #fbe6e6;
  --confirmed: #0f6e4f;
  --assumed: #a86a00;
  --missing: #a3272c;
  --pending: #6b6b63;
  --link: #0f6e4f;
  --code-bg: #f1efe9;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a;
    --surface: #1d2023;
    --surface-2: #24272b;
    --border: #34383d;
    --text: #ececea;
    --text-dim: #9a9a94;
    --accent: #4fd39a;
    --accent-bg: #163329;
    --negotiate: #e8b04b;
    --negotiate-bg: #33290f;
    --hold: #b7b7b0;
    --hold-bg: #2a2a2a;
    --pass: #f08a8e;
    --pass-bg: #3a1c1d;
    --confirmed: #4fd39a;
    --assumed: #e8b04b;
    --missing: #f08a8e;
    --pending: #9a9a94;
    --link: #6fe0ae;
    --code-bg: #24272b;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a;
  --surface: #1d2023;
  --surface-2: #24272b;
  --border: #34383d;
  --text: #ececea;
  --text-dim: #9a9a94;
  --accent: #4fd39a;
  --accent-bg: #163329;
  --negotiate: #e8b04b;
  --negotiate-bg: #33290f;
  --hold: #b7b7b0;
  --hold-bg: #2a2a2a;
  --pass: #f08a8e;
  --pass-bg: #3a1c1d;
  --confirmed: #4fd39a;
  --assumed: #e8b04b;
  --missing: #f08a8e;
  --pending: #9a9a94;
  --link: #6fe0ae;
  --code-bg: #24272b;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.5;
}
body { padding: 0 0 6.5rem; }
a { color: var(--link); }
img { max-width: 100%; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }

.topbar {
  border-bottom: 1px solid var(--border); background: var(--surface);
  padding: 0.9rem 0; margin-bottom: 2rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.brand small { font-weight: 400; color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.nav a { margin-left: 1rem; text-decoration: none; font-size: 0.92rem; color: var(--text-dim); }
.nav a:hover, .nav a.active { color: var(--link); }

.vision-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-dim); background: var(--surface-2); border: 1px dashed var(--border);
  border-radius: 20px; padding: 0.2rem 0.65rem; white-space: nowrap;
}

h1 { font-size: 1.6rem; margin: 0 0 0.3rem; }
h2 { font-size: 1.05rem; margin: 0 0 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
h3 { font-size: 0.98rem; margin: 0 0 0.4rem; }
.subtle { color: var(--text-dim); font-size: 0.9rem; }
.lede { font-size: 1.02rem; color: var(--text); max-width: 640px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.3rem 1.4rem; margin-bottom: 1.3rem;
}

.subject-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.subject-card .verdict-badge { font-size: 1.1rem; }

.verdict-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.verdict-badge {
  font-weight: 800; font-size: 1.4rem; padding: 0.4rem 1rem; border-radius: 8px;
  letter-spacing: 0.02em; display: inline-block;
}
.verdict-ACQUIRE { background: var(--accent-bg); color: var(--accent); }
.verdict-NEGOTIATE { background: var(--negotiate-bg); color: var(--negotiate); }
.verdict-HOLD { background: var(--hold-bg); color: var(--hold); }
.verdict-PASS { background: var(--pass-bg); color: var(--pass); }
.confidence-pill {
  font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 20px; border: 1px solid var(--border);
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em;
}

.reasoning-list, .plain-list { margin: 0; padding-left: 1.2rem; }
.reasoning-list li, .plain-list li { margin-bottom: 0.55rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; }
td.wrap-cell { white-space: normal; min-width: 220px; }
th { color: var(--text-dim); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.03em; position: sticky; top: 0; background: var(--surface); }
tr.excluded td { color: var(--text-dim); }
tr.excluded td:first-child { text-decoration: none; }
tr.is-subject { background: var(--accent-bg); }
tr.is-subject td { color: var(--text); font-weight: 600; }

.status-pill {
  font-size: 0.7rem; padding: 0.14rem 0.55rem; border-radius: 12px; font-weight: 700;
  text-transform: none; letter-spacing: 0.01em; white-space: nowrap; display: inline-block;
}
.status-confirmed { background: var(--accent-bg); color: var(--confirmed); }
.status-assumed { background: var(--negotiate-bg); color: var(--assumed); }
.status-missing { background: var(--pass-bg); color: var(--missing); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.kpi-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; align-items: start; }
.kpi-grid .card { display: flex; flex-direction: column; }

/* Collapsed-by-default KPI cards on the dashboard — click header to expand. */
.kpi-card-collapsible { padding: 0; overflow: hidden; }
.kpi-card-header { padding: 1.3rem 1.4rem; cursor: pointer; }
.kpi-card-header:hover { background: var(--surface-2); }
.kpi-card-header:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.kpi-card-summary { margin-top: 0.5rem; font-size: 0.98rem; font-weight: 600; }
.kpi-chevron { color: var(--text-dim); font-size: 0.85rem; transition: transform 0.18s ease; flex-shrink: 0; }
.kpi-card-collapsible.expanded .kpi-chevron { transform: rotate(180deg); }
.kpi-card-body { display: none; padding: 0 1.4rem 1.3rem; }
.kpi-card-collapsible.expanded .kpi-card-body { display: block; }

.empty-state {
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px;
  padding: 0.9rem 1rem; color: var(--text-dim); font-size: 0.9rem;
}
.empty-state strong { color: var(--text); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.9rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; font-weight: 600; }

code, .mono { font-family: var(--mono); font-size: 0.85em; background: var(--code-bg); padding: 0.05rem 0.35rem; border-radius: 4px; }

footer.page-footer { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 3rem; }

/* real-data ticker, fixed at the bottom of every page */
.ticker-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--accent-bg); border-top: 1px solid var(--accent);
  overflow: hidden; white-space: nowrap; padding: 0.55rem 0;
}
.ticker-track {
  display: inline-flex; white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-block; padding: 0 3rem; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.01em; color: var(--accent); white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Hero landing page (index.html) */
.hero-wrap {
  min-height: 78vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem 1.5rem 7rem; text-align: center;
}
.hero-card { max-width: 640px; }
.hero-logo { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; margin-bottom: 1.6rem; }
.hero-logo b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.01em; }
.hero-card h1 { font-size: 2.15rem; margin: 0 0 0.8rem; }
.hero-tag { font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 0 0 1rem; }
.hero-sub { color: var(--text-dim); font-size: 0.98rem; max-width: 560px; margin: 0 auto 1.8rem; }
.hero-cta {
  display: inline-block; background: var(--accent); color: var(--bg); font-weight: 700;
  font-size: 1.05rem; padding: 0.75rem 1.8rem; border-radius: 10px; text-decoration: none;
}
.hero-cta:hover { opacity: 0.9; }
.hero-secondary { margin: 0.9rem 0 0; font-size: 0.85rem; }
.hero-secondary a { color: var(--text-dim); text-decoration: none; }
.hero-secondary a:hover { color: var(--link); text-decoration: underline; }
.hero-footnote { max-width: 480px; color: var(--text-dim); font-size: 0.8rem; margin: 2.2rem auto 0; }

/* Property switcher — small pill row under the topbar, toggles ?deal=. */
.deal-switcher { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.deal-pill {
  font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  text-decoration: none; white-space: nowrap;
}
.deal-pill:hover { border-color: var(--accent); color: var(--text); }
.deal-pill.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); font-weight: 700; }

/* Roadmap "journey" stepper */
.kpi-journey { display: flex; flex-direction: column; gap: 0; margin: 1.5rem 0; }
.kpi-step { border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; background: var(--surface); display: flex; gap: 1rem; }
.kpi-num {
  flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent-bg);
  color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.kpi-connector { width: 2.2rem; display: flex; justify-content: center; color: var(--text-dim); margin: 0.1rem 0; font-size: 1.2rem; }
.kpi-step-body { flex: 1; min-width: 0; }
.kpi-step-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 0.15rem; }
.kpi-step-desc { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 0.6rem; }
.kpi-step-source { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.6rem; }
.kpi-step-result { font-size: 0.95rem; margin-top: 0.3rem; }
.kpi-step-detail { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.35rem; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.tool-chip { border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem 0.9rem; background: var(--surface); }
.tool-chip .tname { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.tool-chip .tuse { color: var(--text-dim); font-size: 0.8rem; margin: 0.3rem 0 0.5rem; }

.callout { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; font-size: 0.9rem; background: var(--surface-2); }
.callout.guardrail { border-color: var(--missing); background: var(--pass-bg); }
.callout h4 { margin: 0 0 0.4rem; }

.download-row { display: flex; gap: 0.7rem; margin-top: 0.8rem; flex-wrap: wrap; }
.download-row a {
  font-size: 0.85rem; border: 1px solid var(--border); border-radius: 6px; padding: 0.45rem 0.85rem;
  text-decoration: none; font-weight: 600; background: var(--surface);
}
.download-row a:hover { border-color: var(--accent); }

.stat-tiles { display: flex; gap: 0.9rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.stat-tile {
  flex: 1 1 140px; border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.1rem;
  background: var(--surface);
}
.stat-tile .num { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-tile .lbl { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.35rem; }

.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.amenity-cat h4 { margin: 0 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-dim); }
.amenity-cat ul { list-style: none; margin: 0; padding: 0; }
.amenity-cat li { font-size: 0.88rem; padding: 0.25rem 0; border-bottom: 1px dashed var(--border); display: flex; justify-content: space-between; gap: 0.5rem; }
.amenity-cat li:last-child { border-bottom: none; }
.amenity-cat li .dist { color: var(--text-dim); flex-shrink: 0; }

.section-gap { margin-top: 2.2rem; }
.center-cta { text-align: center; margin: 2.5rem 0 1rem; }

/* Collapsible "full reasoning" — matches ../../solution/site/styles.css's
   details/summary rule so both sibling sites read the same way. */
details { margin-top: 0.6rem; }
summary { cursor: pointer; font-size: 0.88rem; color: var(--link); }
summary:hover { text-decoration: underline; }
.kpi-details-body { margin-top: 0.6rem; }
.kpi-details-body > * + * { margin-top: 0.5rem; }

/* Compact KPI presentation: title+pill, then 4 short lines, then details. */
.kpi-line { font-size: 0.9rem; margin-top: 0.4rem; }
.kpi-line strong { color: var(--text-dim); font-weight: 600; }
.kpi-subsection { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.kpi-subsection:first-of-type { margin-top: 0.8rem; padding-top: 0; border-top: none; }
.kpi-subsection-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.kpi-subsection-head h4 { margin: 0; }

/* Step-by-step calculation walkthrough — visible by default, not tucked
   behind "Full reasoning", since the whole point is showing the working. */
.calc-walkthrough {
  margin-top: 0.8rem; padding: 0.9rem 1rem; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.calc-step { font-size: 0.92rem; margin-top: 0.5rem; line-height: 1.5; }
.calc-step:first-child { margin-top: 0; }
.calc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 0.72rem; font-weight: 800; margin-right: 0.4rem;
}
.calc-highlight { font-size: 1.05em; padding: 0.05rem 0.35rem; border-radius: 4px; background: var(--accent-bg); color: var(--accent); }
.calc-highlight.calc-warn { background: var(--negotiate-bg); color: var(--negotiate); }
.calc-highlight.calc-good { background: var(--accent-bg); color: var(--accent); }

.kpi-headline-number { font-size: 1.5rem; font-weight: 800; }
.kpi-headline-number.positive { color: var(--accent); }

/* Human-directed policy call — distinct from the red insufficient_evidence
   treatment, since this is a deliberate human override, not a data gap. */
.badge-human-override {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--negotiate); background: var(--negotiate-bg); border-radius: 12px;
  padding: 0.15rem 0.6rem; white-space: nowrap; margin-left: 0.5rem;
}
.callout.human-directive { border-color: var(--negotiate); background: var(--negotiate-bg); }

/* Investment-case pitch summary — the "recruiter reads this in 15 seconds" panel. */
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .pitch-grid { grid-template-columns: 1fr; } }
.pitch-col h4 { margin: 0 0 0.5rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-dim); }
.pitch-col ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; }
.pitch-col li { margin-bottom: 0.45rem; }

/* Problem 2 — outcome feedback loop — real external links. */
.deal-links { display: flex; gap: 0.8rem; margin: 1rem 0; flex-wrap: wrap; }
.deal-link {
  flex: 1 1 220px; border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem;
  text-decoration: none; color: var(--text); background: var(--surface); display: block;
}
.deal-link:hover { border-color: var(--accent); }
.deal-link .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.deal-link h3 { margin: 0.3rem 0 0.3rem; font-size: 0.95rem; }
.deal-link p { margin: 0; color: var(--text-dim); font-size: 0.82rem; }

/* Capex demo page — per-room photo evidence. */
.demo-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.demo-photo-grid figure { margin: 0; }
.demo-photo-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.demo-photo-grid figcaption { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.3rem; text-align: center; }
.demo-room { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; background: var(--surface); }
.demo-finding { padding: 0.7rem 0; border-top: 1px dashed var(--border); }
.demo-finding:first-of-type { border-top: none; padding-top: 0; }
.demo-finding-range { font-weight: 700; margin-top: 0.3rem; }
.demo-finding-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.25rem; }
.demo-total { display: flex; gap: 1.4rem; flex-wrap: wrap; margin: 1rem 0; }
.demo-total .stat-tile { flex: 1 1 140px; }
