/* Homepage look for the inner pages that still run on styles.css. Load after styles.css; pages opt in with <body class="m">. */

:root {
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ink: #eef1f8;
  --ink-2: #c3c9d8;
  --on-gold: #ffffff;
  --gold-text: linear-gradient(100deg, #c7d2ff 0%, #6f86ff 45%, #2238d6 100%);
}

.m { font-family: var(--sans); background: #070b1a; line-height: 1.55; }
.m button, .m input, .m select, .m textarea { font-family: inherit; }
.m h1, .m h2, .m h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.m h3 { letter-spacing: -0.025em; font-weight: 700; }
.m .grad { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* glow behind the top of every page */
.m-glow { position: absolute; top: 0; left: 0; right: 0; height: 760px; overflow: hidden; pointer-events: none; z-index: -1; }
.m-glow::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%); }
.m-orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.m-orb.o1 { width: 620px; height: 620px; left: -180px; top: -300px; background: #4a63ff; opacity: .26; animation: m-drift 18s ease-in-out infinite alternate; }
.m-orb.o2 { width: 520px; height: 520px; right: -160px; top: -140px; background: #3b6dff; opacity: .24; animation: m-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes m-drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* nav */
.m-nav { position: sticky; top: 0; z-index: 50; color: var(--ink); background: rgba(7,11,26, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.m-nav-in { width: min(1200px, 92%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.m-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.m-brand img { display: block; filter: drop-shadow(0 0 10px rgba(47,75,255, .35)); }
.m-brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.m-links { display: flex; gap: 30px; font-size: 14px; }
.m-links a { opacity: .72; transition: opacity .15s; }
.m-links a:hover, .m-links a[aria-current="page"] { opacity: 1; }
.m-links a[aria-current="page"] { color: #8ea0ff; }
.m-end { display: flex; align-items: center; gap: 18px; }
.m-sign { font-size: 14px; opacity: .72; }
.m-sign:hover { opacity: 1; }
.m-burger { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.m-burger span, .m-burger span::before, .m-burger span::after { content: ''; display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.m-burger span::before { position: absolute; top: -5px; }
.m-burger span::after { position: absolute; top: 5px; }
.m-nav.open .m-burger span { background: transparent; }
.m-nav.open .m-burger span::before { transform: translateY(5px) rotate(45deg); }
.m-nav.open .m-burger span::after { transform: translateY(-5px) rotate(-45deg); }
.m-menu { display: none; }

/* buttons */
.m .btn { border-radius: 999px; font-family: var(--sans); font-weight: 600; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.m .btn:hover { transform: translateY(-1px); }
.m .btn-primary, .m .btn-primary:hover, .m-btn-nav { color: var(--on-gold); background: linear-gradient(180deg, #6f86ff, #4a63ff 55%, #2f4bff); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 10px 30px -8px rgba(47,75,255, .6), 0 0 60px -10px rgba(47,75,255, .45); }
.m .btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 14px 40px -8px rgba(47,75,255, .75), 0 0 80px -6px rgba(47,75,255, .55); }
.m .btn-ghost { color: var(--ink); border-color: rgba(255,255,255, .2); background: rgba(255,255,255, .04); backdrop-filter: blur(8px); }
.m .btn-ghost:hover { border-color: rgba(255,255,255, .5); background: rgba(255,255,255, .08); }
.m .btn-gold-outline { border-color: rgba(47,75,255,.6); color: #8ea0ff; background: rgba(47,75,255,.06); }
.m-btn-nav { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* page headers */
.m .page { padding-top: 84px; }
.m .page h1, .m .hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -0.05em; }
.m .page .lead, .m .lead { color: var(--ink-2); font-size: 18px; }
.m .eyebrow, .m .kicker, .m .eyebrow-mono { font: 500 12.5px var(--mono); letter-spacing: .02em; text-transform: none; color: #4a63ff; display: inline-flex; align-items: center; gap: 8px; }
.m .eyebrow::before, .m .eyebrow-mono::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 1; }
.m .eyebrow-mono .dot { display: none; }
.m .section-head h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; }
.m .crumbs { font: 500 12.5px var(--mono); }

/* big figures use the homepage's tight sans numerals */
.m .dash-num, .m .chart-value, .m .ring-num, .m .split-num, .m .scale-total, .m .big-num-card .dash-num { font-family: var(--sans); font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }

/* cards */
.m .card { border-radius: 20px; border-color: rgba(255,255,255,.09); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: 0 30px 60px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); }

/* legal and long-form documents */
.m .doc { padding: 12px 44px 36px; margin-top: 40px; }
.m .doc h2 { font-size: 21px; letter-spacing: -0.025em; margin: 0; padding: 30px 0 10px; border-top: 1px solid rgba(255,255,255,.08); }
.m .doc h2:first-child { border-top: 0; }
.m .doc p, .m .doc li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.m .doc a, .m .prose a { color: #8ea0ff; text-decoration: underline; text-underline-offset: 3px; }
.m .vs-scroll { overflow-x: auto; margin: 6px 0 10px; }
.m .vs-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.m .vs-table th, .m .vs-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--ink-2); }
.m .vs-table thead th { border-top: 0; font: 600 12.5px var(--mono); color: #4a63ff; }
.m .vs-table tbody th { font-weight: 600; color: var(--ink, #eef1f8); width: 24%; }
.m .vs-list { display: grid; gap: 12px; margin-top: 8px; }
.m .doc h3 { font-size: 16px; margin: 18px 0 4px; color: var(--ink); }
@media (max-width: 640px) {
  .m .vs-table { min-width: 0; }
  .m .vs-table thead { display: none; }
  .m .vs-table tr, .m .vs-table th, .m .vs-table td { display: block; width: auto; }
  .m .vs-table tbody th { width: auto; padding: 16px 0 6px; }
  .m .vs-table td { border-top: 0; padding: 4px 0 8px; }
  .m .vs-table td::before { display: block; font: 600 11.5px var(--mono); color: #4a63ff; }
  .m .vs-table td:nth-of-type(1)::before { content: 'Sovren'; }
  .m .vs-table td:nth-of-type(2)::before { content: var(--vs); }
}
.m .prose h2 { font-size: clamp(26px, 3.2vw, 36px); }
.m .prose p, .m .prose li { color: var(--ink-2); }

/* forms */
.m input:not([type=checkbox]):not([type=radio]):not([type=range]), .m select, .m textarea { border-radius: 12px; }
.m input:focus, .m select:focus, .m textarea:focus { border-color: rgba(111,134,255,.6); box-shadow: 0 0 0 3px rgba(111,134,255,.12); outline: none; }

/* footer */
.m-footer { background: #050815; color: #8a93a8; padding: 64px 0 40px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; }
.m-footer-in { width: min(1200px, 92%); margin: 0 auto; }
.m-foot-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.m-foot-cols p { margin-top: 14px; font-size: 14px; max-width: 300px; }
.m-foot-cols h2 { font: 500 12px var(--mono); color: var(--ink); letter-spacing: .02em; margin-bottom: 14px; }
.m-foot-cols div > a:not(.m-brand) { display: block; padding: 4px 0; font-size: 14px; }
.m-foot-cols div > a:not(.m-brand):hover { color: var(--ink); }
.m-risk { margin-top: 28px; font-size: 12px; line-height: 1.6; max-width: 900px; }
.m-risk a { color: var(--ink-2); text-decoration: underline; }
.m-copy { margin-top: 10px; font-size: 12px; }

@media (max-width: 1000px) {
  .m-links, .m-sign { display: none; }
  .m-burger { display: inline-flex; }
  .m-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #070b1a; border-bottom: 1px solid rgba(255,255,255,.09); padding: 6px 4% 18px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .m-nav.open .m-menu { opacity: 1; visibility: visible; transform: none; }
  .m-menu a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 16px; }
  .m-foot-cols { grid-template-columns: 1fr 1fr; }
  .m-foot-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .m .page { padding-top: 56px; }
  .m .doc { padding: 6px 22px 24px; }
  .m-end .m-btn-nav { padding: 7px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-orb { animation: none; }
}
@media print {
  .m-nav, .m-footer, .m-glow { display: none; }
}
