/* ─────────────────────────────────────────────────────────────────────────────
   Shared layer for the public marketing pages (company, compliance, investors,
   strategies, loans).

   Layout concept: editorial and left-aligned on a 1160px measure, with full-bleed
   bands alternating ground and raised surfaces. Hierarchy comes from the type
   scale and the whitespace between sections, not from drawing a border around
   every block.

   Why this file exists: these pages were inheriting tokens.css, whose scale is
   built for the trading terminal — 13-14px body, 36px display, 24px rhythm. That
   density is right when you are operating a screen and wrong when you are reading
   one, and it is what made these pages feel cramped. The scale is redefined inside
   .nova-page, so every existing rule that already says var(--fs-md) or var(--sp-8)
   picks up the reading scale without being rewritten.
   ───────────────────────────────────────────────────────────────────────────── */

.nova-page {
  /* type: reading scale, not terminal scale */
  --fs-2xs: 12px;
  --fs-xs:  13px;
  --fs-sm:  15px;
  --fs-md:  17px;
  --fs-lg:  19px;
  --fs-xl:  clamp(22px, 2.2vw, 26px);
  --fs-2xl: clamp(27px, 3.2vw, 34px);
  --fs-3xl: clamp(34px, 4.4vw, 46px);
  --fs-4xl: clamp(42px, 6.2vw, 68px);

  --lh-sm: 1.5;
  --lh-md: 1.68;

  /* rhythm: generous between sections, tight within them */
  --sp-5:  14px;
  --sp-6:  20px;
  --sp-7:  28px;
  --sp-8:  40px;
  --sp-9:  56px;
  --sp-10: 80px;

  /* --accent was never defined in tokens.css, so every var(--accent, #2563eb)
     fell back to a blue that is not in this brand at all. */
  --accent: var(--live);
  --accent-ink: #04121f;

  --measure: 68ch;
  --page-w: 1160px;
  --band: 88px;

  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
}

/* ── bands and measure ──────────────────────────────────────────────────── */
.nova-page .np-band { padding-block: var(--band); }
.nova-page .np-band--raised { background: var(--bg-1); border-block: 1px solid var(--border); }
.nova-page .np-band--tight { padding-block: calc(var(--band) * .6); }
.nova-page .np-in {
  width: 100%;
  max-width: var(--page-w);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

/* ── type ───────────────────────────────────────────────────────────────── */
.nova-page h1, .nova-page h2, .nova-page h3 {
  color: var(--text-1);
  font-weight: 700;
  letter-spacing: -0.028em;      /* Inter needs negative tracking to read as display */
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
.nova-page h1 { font-size: var(--fs-4xl); }
.nova-page h2 { font-size: var(--fs-3xl); letter-spacing: -0.024em; }
.nova-page h3 { font-size: var(--fs-xl); letter-spacing: -0.018em; line-height: 1.3; }
.nova-page p  { margin: 0; max-width: var(--measure); }

/* the one structural device used across all these pages */
.nova-page .np-eyebrow {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.nova-page .np-lead {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 58ch;
}
.nova-page .np-head { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-8); }

/* ── de-boxing ──────────────────────────────────────────────────────────── */
/* A rule and space separate these as well as a border does, without making every
   paragraph look like its own object. */
.nova-page .np-rows { display: grid; }
.nova-page .np-rows > * {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  padding-block: var(--sp-7);
  border-top: 1px solid var(--border);
}
.nova-page .np-rows > *:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 860px) {
  .nova-page .np-rows > * { grid-template-columns: minmax(0, 22ch) minmax(0, 1fr); gap: var(--sp-8); }
}

/* ── figures ────────────────────────────────────────────────────────────── */
.nova-page .np-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.nova-page .np-fig { display: grid; gap: var(--sp-3); padding: var(--sp-7); background: var(--bg-1); min-width: 0; }
.nova-page .np-fig b { font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.nova-page .np-fig span { font-size: var(--fs-sm); color: var(--text-2); }
.nova-page .np-fig cite { font-size: var(--fs-2xs); font-style: normal; color: var(--text-3); line-height: 1.45; }

/* ── links and buttons ──────────────────────────────────────────────────── */
.nova-page .np-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  height: 48px; padding-inline: var(--sp-8);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: transparent; color: var(--text-1);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: border-color var(--dur-fast, .15s) var(--ease-standard, ease), background var(--dur-fast, .15s) var(--ease-standard, ease);
}
.nova-page .np-btn:hover { border-color: var(--text-3); background: var(--bg-2); }
.nova-page .np-btn--primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.nova-page .np-btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.nova-page .np-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── status marking, shared by compliance and company ───────────────────── */
.nova-page .np-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-pill, 999px);
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.nova-page .np-tag--now  { background: color-mix(in srgb, var(--live) 15%, transparent); color: var(--live); }
.nova-page .np-tag--plan { background: color-mix(in srgb, var(--warning-text) 14%, transparent); color: var(--warning-text); }

.nova-page .np-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nova-page .np-num { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .nova-page { --band: 56px; }
  .nova-page .np-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nova-page * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
