/* Note Systems, investor overview */

.inv dd,
.inv dl,
.inv figure,
.inv pre { margin: 0; }

.inv .brass { color: var(--brass); }
.inv .dim { color: var(--text-3); }

/* ---------- Hero ---------- */
.inv-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 8vw, 112px);
  overflow: hidden;
}

.inv-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(201, 169, 110, 0.10), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(255, 255, 255, 0.03), transparent 70%);
}

.inv-eyebrow {
  color: var(--brass);
  margin-bottom: 24px;
}

.inv-title {
  max-width: 14ch;
}

.inv-sub {
  max-width: 54ch;
  margin-top: 28px;
}

/* ---------- Sections ---------- */
.inv-section .section-head .t-h2 {
  margin-top: 16px;
}

.inv-takeaway {
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 62ch;
  color: var(--text-1);
}

.inv .footnote {
  margin-top: 28px;
}

.pad {
  padding: 28px 28px 32px;
}

.list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.list li {
  position: relative;
  padding-left: 18px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--brass);
}

.list.inline {
  margin-top: 40px;
  max-width: 72ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 14px;
}

.tag.up {
  border-color: rgba(61, 214, 140, 0.4);
  color: var(--up);
}

.card .tag + .t-label {
  margin-bottom: 4px;
}

.card .t-h3 {
  margin-top: 6px;
}

.card .list + .t-small {
  margin-top: 20px;
  color: var(--text-3);
}

/* ---------- Grids ---------- */
.two,
.three {
  display: grid;
  gap: 16px;
}

.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .three { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .two { grid-template-columns: 1fr; }
}

/* ---------- KPIs ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kpi {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 32px;
}

.kpi dd {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.kpi-val {
  display: block;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  color: var(--text-1);
}

.kpi-brass {
  color: var(--brass);
}

@media (max-width: 900px) {
  .kpis { grid-template-columns: 1fr; }
}

/* ---------- Series levels ---------- */
.levels {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-2);
}

.level-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.level-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.level-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.level-list dt {
  font-size: 13px;
  color: var(--text-2);
}

.level-list dd {
  font-size: 22px;
  color: var(--brass);
}

.levels .t-small {
  margin-top: 18px;
  color: var(--text-3);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.steps li {
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
}

.step-n {
  display: block;
  font-size: 12px;
  color: var(--brass);
  margin-bottom: 14px;
}

.steps .t-body {
  margin-top: 10px;
  font-size: 15px;
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Escrow ---------- */
.escrow {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 16px;
  align-items: stretch;
}

.code pre {
  margin: 20px 0 0;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-1);
  overflow-x: auto;
}

.code .t-small {
  margin-top: 20px;
}

.facts {
  display: grid;
  gap: 16px;
}

.facts div {
  padding: 22px 24px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-1);
}

.facts dd {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.facts.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

@media (max-width: 960px) {
  .escrow { grid-template-columns: 1fr; }
  .facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .facts.four { grid-template-columns: 1fr; }
}

/* ---------- Screenshots ---------- */
.shots,
.shots-4 {
  display: grid;
  gap: 16px;
}

.shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-3);
}

.shot figcaption b {
  color: var(--text-1);
  font-weight: 600;
  margin-right: 6px;
}

@media (max-width: 960px) {
  .shots-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shots,
  .shots-4 { grid-template-columns: 1fr; }
}

/* ---------- Engineering stats ---------- */
.stats6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stats6 div {
  background: var(--surface-1);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats6 dd {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
  color: var(--text-1);
}

.stats6 dt {
  order: 2;
  color: var(--text-3);
}

@media (max-width: 960px) {
  .stats6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .stats6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Fees ---------- */
.fee-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 16px;
}

.fee {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fee .kpi-val {
  font-size: clamp(34px, 3.4vw, 46px);
}

.fee .dim {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
}

.sweep {
  background: var(--surface-2);
  gap: 14px;
}

.sweep .t-body {
  font-size: 15px;
}

.sweep .t-body b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-right: 8px;
}

@media (max-width: 1080px) {
  .fee-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fee-row { grid-template-columns: 1fr; }
}

/* ---------- Tables ---------- */
.table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
  min-width: 640px;
}

.tbl th,
.tbl td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.tbl thead th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
}

.tbl tbody th {
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}

.tbl td {
  color: var(--text-2);
}

.tbl tbody tr:last-child th,
.tbl tbody tr:last-child td {
  border-bottom: 0;
}

.tbl tbody td:first-child {
  color: var(--text-1);
  font-weight: 500;
}

.compare .hl {
  color: var(--text-1);
  background: var(--brass-dim);
}

.compare thead .hl {
  color: var(--brass);
}

.compare {
  min-width: 860px;
}

/* ---------- NOTE mechanisms ---------- */
.mech {
  list-style: none;
}

.mech .t-body {
  font-size: 15px;
}

.formula {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--brass);
}

.callout {
  margin-top: 16px;
  background: var(--surface-2);
}

.callout .t-body {
  font-size: 17px;
  max-width: 78ch;
}

.callout b {
  color: var(--text-1);
}

/* ---------- Genesis bar ---------- */
.bar {
  display: flex;
  height: 44px;
  gap: 3px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.seg,
.sw {
  display: block;
  background: var(--line-strong);
}

.s1 { background: var(--brass); }
.s2 { background: #8F7A52; }
.s3 { background: #4F4A40; }
.s4 { background: #33312C; }
.s5 { background: var(--surface-2); }

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 20px;
  color: var(--text-2);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legend b {
  color: var(--text-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sw {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
}

.genesis > .t-small {
  margin-top: 20px;
  color: var(--text-3);
  max-width: 70ch;
}

/* ---------- Economics chart ---------- */
.econ {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  align-items: stretch;
}

.chart {
  margin: 0;
  padding: 28px 24px 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  fill: var(--text-1);
}

.chart .c {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--text-3);
}

.econ .card .t-small {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .econ { grid-template-columns: 1fr; }
}

/* ---------- Traction ---------- */
.traction {
  list-style: none;
  border-top: 1px solid var(--line);
}

.traction li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.traction .tag {
  margin: 0;
  justify-content: center;
}

.traction .t-body {
  color: var(--text-1);
}

@media (max-width: 560px) {
  .traction li { grid-template-columns: 72px 1fr; gap: 14px; }
}

/* ---------- Roadmap ---------- */
.roadmap {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.roadmap li {
  position: relative;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
}

.roadmap li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--text-3);
}

.roadmap li.now::before {
  width: 100%;
  background: var(--brass);
}

.roadmap li.now .t-h3 {
  color: var(--brass);
}

.roadmap .t-body {
  margin-top: 10px;
  font-size: 15px;
}

@media (max-width: 960px) {
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .roadmap { grid-template-columns: 1fr; }
}

/* ---------- Close ---------- */
.close {
  padding: clamp(36px, 5vw, 64px);
  background: var(--surface-2);
}

.close .t-h2 {
  max-width: 24ch;
}

.close .hero-actions {
  margin-top: 32px;
}

.close .t-small {
  margin-top: 36px;
  color: var(--text-3);
  max-width: 78ch;
}

.inv .security-link,
.inv #security .link {
  display: inline-block;
  margin-top: 24px;
}

/* ---------- Small screens ---------- */
.hide-lg { display: none; }

@media (max-width: 720px) {
  .compare { min-width: 0; }
  .compare .mid { display: none; }
  .hide-lg { display: block; margin-top: 16px; color: var(--text-3); }
  .tbl th, .tbl td { padding: 14px 10px; }
  .tbl { font-size: 14px; }
  .tbl thead th { font-size: 11px; letter-spacing: 0.06em; }
  .tbl tbody th { white-space: normal; }
}

@media (max-width: 600px) {
  .chart { padding: 20px 8px 12px; }
  .chart .v { font-size: 24px; }
  .chart .c { font-size: 17px; }
}
