/* HARSIGHT UNITE — brand system
   forest #0F2E2E · cream #FBF8F1 · orange #E56B4C · ink #152929 · muted #5E6E68 */

:root {
  --forest: #0F2E2E;
  --forest-2: #143838;
  --forest-3: #1C4645;
  --cream: #F5F0E6;
  --cream-2: #EDE6D5;
  --orange: #E56B4C;
  --orange-soft: #F2A48D;
  --ink: #152929;
  --muted: #5E6E68;
  --line: #DDD6C7;
  --line-dark: rgba(251, 248, 241, 0.16);
  --white: #FFFFFF;

  --maxw: 1240px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(21, 41, 41, .06), 0 1px 3px rgba(21, 41, 41, .05);
  --shadow-md: 0 2px 4px rgba(21, 41, 41, .05), 0 8px 24px rgba(21, 41, 41, .07);

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
a { color: inherit; }

.num, table td.num, .kpi-value, .stat {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-dark { background: var(--forest); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-alt { background: var(--cream-2); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}
.section-dark .eyebrow { color: var(--orange-soft); }

.lede { font-size: 1.075rem; color: var(--muted); max-width: 68ch; }
.section-dark .lede { color: rgba(251,248,241,.78); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- fixed chrome: watermark banner + nav ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
body { padding-top: 91px; }

.demo-banner {
  background: var(--orange);
  color: #2A1108;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.4;
}
.demo-banner span { opacity: .8; font-weight: 500; }

/* ---------- nav ---------- */
.nav {
  background: var(--forest);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; }
.brand-text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  letter-spacing: .04em; color: var(--cream);
}
.brand-text em { font-style: normal; color: var(--orange); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-head); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; color: rgba(251,248,241,.72);
  text-decoration: none; padding: 8px 14px; border-radius: var(--radius);
  transition: color .12s ease, background-color .12s ease;
}
.nav-links a:hover { color: var(--cream); background: rgba(251,248,241,.07); }
.nav-links a.active { color: var(--forest); background: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .87rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--orange); color: #22120C; }
.btn-primary:hover { background: #D95C3D; }
.btn-ghost { border-color: rgba(251,248,241,.34); color: var(--cream); }
.btn-ghost:hover { background: rgba(251,248,241,.09); border-color: rgba(251,248,241,.6); }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { background: var(--forest-3); }

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card-dark {
  background: var(--forest-2); border-color: var(--line-dark); color: rgba(251,248,241,.78);
}
.card-dark h3 { color: var(--cream); }
.card-dark p { color: rgba(251,248,241,.72); }

/* ---------- KPI ---------- */
.kpi {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px;
  border-top: 3px solid var(--forest);
}
.kpi-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.kpi-value {
  font-family: var(--font-head); font-weight: 700; font-size: 2.15rem;
  line-height: 1; letter-spacing: -0.03em; color: var(--ink);
}
.kpi-value small { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.kpi-accent { border-top-color: var(--orange); }
.kpi-accent .kpi-value { color: var(--orange); }

/* ---------- charts ---------- */
.chart-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 24px 18px;
}
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.chart-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin: 0; }
.chart-sub { font-size: .82rem; color: var(--muted); margin: 0 0 16px; }
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 340px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  text-align: left; font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--cream);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid #EFEADF; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FCFAF5; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.row-flag { background: rgba(229,107,76,.07); }
tr.row-flag:hover { background: rgba(229,107,76,.11); }

.tag {
  display: inline-block; font-size: .69rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
  font-family: var(--font-head); white-space: nowrap;
}
.tag-orange { background: var(--orange); color: #22120C; }
.tag-quiet { background: var(--cream-2); color: var(--muted); border: 1px solid var(--line); }
.tag-green { background: #E2EDE7; color: #24503F; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 500; color: var(--muted);
  background: var(--white); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 100px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- page header ---------- */
.page-head { background: var(--forest); color: var(--cream); padding: 44px 0 40px; }
.page-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--cream); margin-bottom: 8px; }
.page-head p { color: rgba(251,248,241,.72); margin: 0; max-width: 72ch; }
.page-head .chip { background: rgba(251,248,241,.08); border-color: var(--line-dark); color: rgba(251,248,241,.85); }

/* ---------- footer ---------- */
.footer { background: var(--forest); color: rgba(251,248,241,.62); padding: 48px 0 40px; font-size: .84rem; }
.footer h4 {
  font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-soft); margin: 0 0 12px; font-weight: 700;
}
.footer a { color: rgba(251,248,241,.72); text-decoration: none; border-bottom: 1px solid rgba(251,248,241,.2); }
.footer a:hover { color: var(--cream); border-bottom-color: var(--orange); }
.footer-sources li { margin-bottom: 7px; line-height: 1.5; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .78rem; color: rgba(251,248,241,.45);
}

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 12px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
  .nav-links a { white-space: nowrap; font-size: .68rem !important; padding: 6px 6px !important; letter-spacing: 0; }
  .demo-banner { font-size: .64rem; letter-spacing: .06em; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 16px; height: 58px; gap: 8px; }
  .nav-links { gap: 0; margin-left: auto; }
  .nav-links a { padding: 7px 8px; font-size: .73rem; }
  .brand-text { font-size: .82rem; letter-spacing: .02em; }
  .demo-banner span { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .chart-box { height: 260px; }
}

/* ---- video section ---- */
.video-section { background: var(--cream-2); }
.video-row { display: flex; gap: 44px; align-items: center; }
.video-copy { flex: 1; min-width: 280px; max-width: 56ch; }
.video-shell { flex: 0 0 auto; width: 340px; max-width: 100%; transition: width .45s ease; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px rgba(15,46,46,.22); background: var(--forest); }
.video-shell.expanded { width: 620px; }
.video-shell video { display: block; width: 100%; height: auto; }
.video-partners { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: .9rem; font-weight: 600; }
@media (max-width: 900px) { .video-row { flex-direction: column; align-items: flex-start; } .video-shell, .video-shell.expanded { width: 100%; } }

/* ---- partner tiles ---- */
.partner-tiles { margin-top: 26px; }
.partner-tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.partner-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,46,46,.12); }
.partner-tile p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.partner-tile .tile-link { color: var(--orange); font-weight: 700; font-size: .92rem; }
.hars-lockup { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #2B5FA5; letter-spacing: .02em; }
.hars-lockup small { font-size: .62em; font-weight: 700; color: #5E6E68; letter-spacing: .12em; }

/* ---- password gate ---- */
.gate-overlay { position: fixed; inset: 0; z-index: 9999; background: var(--forest); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-card { width: 100%; max-width: 420px; text-align: center; }
.gate-card img { height: 34px; width: auto; margin-bottom: 26px; }
.gate-card h1 { color: var(--cream); font-size: 1.35rem; margin-bottom: 8px; }
.gate-card p { color: rgba(245,240,230,.65); font-size: .92rem; margin-bottom: 24px; }
.gate-card input { width: 100%; padding: 13px 16px; border-radius: 8px; border: 1px solid rgba(245,240,230,.25); background: rgba(245,240,230,.08); color: var(--cream); font-size: 1rem; text-align: center; letter-spacing: .08em; margin-bottom: 12px; outline: none; }
.gate-card input:focus { border-color: var(--orange); }
.gate-card button { width: 100%; padding: 13px 16px; border-radius: 8px; border: none; background: var(--orange); color: #152929; font-weight: 700; font-size: 1rem; cursor: pointer; }
.gate-card .gate-err { color: #F0A08C; font-size: .85rem; margin-top: 12px; min-height: 1.2em; }
