@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --char: #0e1751;
  --char-2: #0a1140;
  --blue: #0e1751;
  --blue-2: #0e1751;
  --sky: #7fc7f5;
  --ink: #1d2330;
  --body: #3d4656;
  --muted: #6b7486;
  --line: #e3e7ee;
  --tint: #f3f7fb;
  --white: #ffffff;
  --warn-bg: #fff6d6;
  --warn-ink: #7a5600;
  --red: #c0392b;
  --green: #1e8a5a;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; font: 16px/1.65 Inter, system-ui, -apple-system, sans-serif; color: var(--body); background: var(--white); }
h1, h2, h3, h4 { font-family: Montserrat, Inter, sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* mockup ribbon */
.mock { background: var(--warn-bg); color: var(--warn-ink); font-size: .85rem; text-align: center; padding: 6px 16px; border-bottom: 1px solid #f0dd9a; }

/* header */
.site-head { background: var(--char); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.site-head .logo img { height: 40px; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: #dfe7f1; text-decoration: none; font-weight: 600; font-size: .88rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.nav a.cta { background: var(--sky); color: var(--char); }
.nav a.cta:hover { background: #a3d7f8; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(127,199,245,.35), transparent 60%), var(--char); color: #dfe7f1; padding: 72px 0 80px; }
.hero h1 { color: #fff; }
.hero .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero .seal { width: 100%; max-width: 360px; border-radius: 50%; justify-self: center; }
.tagline { font-family: Montserrat, sans-serif; color: var(--sky); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: #c9d4e2; max-width: 620px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: .98rem; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--sky); color: var(--char); }
.btn.primary:hover { background: #a3d7f8; }
.btn.ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn.ghost:hover { border-color: #fff; }
.btn.outline { border-color: var(--blue); color: var(--blue-2); background: #fff; }

/* page header (inner pages) */
.page-head { background: var(--char); color: #c9d4e2; padding: 48px 0 44px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.page-head h1 em { font-style: normal; color: var(--sky); }
.crumb { font-size: .85rem; color: var(--sky); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

section.block { padding: 64px 0; }
section.block.tint { background: var(--tint); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .num { font-family: Montserrat, sans-serif; font-weight: 800; color: var(--blue); font-size: .85rem; letter-spacing: .1em; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(127,199,245,.12); color: var(--blue-2); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; font-family: Montserrat, sans-serif; }

/* FINRA-style facts table */
.facts { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--ink); font-weight: 600; background: #fafcfe; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts .grp td { background: var(--char); color: #fff; font-family: Montserrat, sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

/* proposed / draft markers */
.prop { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.note { background: var(--warn-bg); border: 1px solid #f0dd9a; color: var(--warn-ink); border-radius: 10px; padding: 12px 16px; font-size: .92rem; }

/* prose pages */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.two { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--blue-2); }

/* modules list */
.modules { counter-reset: m; display: grid; gap: 14px; }
.module { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.module .n { width: 52px; height: 52px; border-radius: 12px; background: var(--char); color: var(--sky); display: grid; place-items: center; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.2rem; }

/* forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfd6e1; border-radius: 9px; font: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(127,199,245,.45); border-color: var(--blue); }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--body); }
.check input { width: auto; margin-top: 5px; }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* directory */
.search { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.results { margin-top: 24px; display: grid; gap: 12px; }
.result { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.result h3 { margin: 0 0 2px; }
.meta { color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.badge.active { background: #e4f5ec; color: var(--green); }
.badge.suspended { background: #fff1d6; color: #8a5a00; }
.badge.revoked, .badge.lapsed { background: #fde7e4; color: var(--red); }
.sample { font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px dashed #b9c2cf; border-radius: 6px; padding: 1px 6px; margin-left: 8px; }

/* footer */
.site-foot { background: var(--char-2); color: #9aa6b8; padding: 48px 0 32px; font-size: .9rem; margin-top: 0; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.site-foot a { color: #c9d4e2; text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.site-foot .fine { border-top: 1px solid #1f2a70; margin-top: 32px; padding-top: 20px; font-size: .8rem; line-height: 1.6; }

@media (max-width: 860px) {
  .hero .grid, .two { grid-template-columns: 1fr; }
  .hero .seal { max-width: 220px; }
  .toc { position: static; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .search { grid-template-columns: 1fr 1fr; }
  form .row { grid-template-columns: 1fr; }
  .site-head .logo img { height: 32px; }
  .site-head .wrap { padding-block: 12px; }
  .nav a { font-size: .82rem; padding: 6px 8px; }
  .mock .prop { white-space: normal; }
}
@media (max-width: 520px) {
  .search { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
}
