:root {
  --brand: #5254a8;
  --brand-dark: #3f4190;
  --brand-deep: #2d2f6b;
  --grey: #a7a9ac;
  --soft: #f5f5fa;
  --line: #e4e4ee;
  --text: #2b2b3a;
  --muted: #62647a;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid rgba(82, 84, 168, .45); outline-offset: 2px; }
.text-muted { color: var(--muted) !important; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .25rem; }

/* top bar */
.topbar { background: var(--brand-deep); color: #e8e8f5; font-size: .8125rem; padding: .4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* navbar */
.navbar { padding: .5rem 0; box-shadow: 0 1px 0 var(--line); }
.navbar-brand img { height: 44px; width: auto; }
.navbar .nav-link { color: var(--text); font-weight: 500; padding: .6rem .75rem; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--brand); }
.navbar-toggler { border-color: var(--line); }
.dropdown-menu { border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(45, 47, 107, .12); border-radius: .5rem; padding: .5rem; }
.dropdown-item { border-radius: .375rem; padding: .45rem .75rem; white-space: normal; }
.dropdown-item:hover { background: var(--soft); color: var(--brand); }
.dropdown-item.active, .dropdown-item:active { background: var(--brand); color: #fff; }
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .dropdown-menu { min-width: 15rem; }
}
@media (max-width: 991.98px) {
  .navbar-collapse { padding: .5rem 0 1rem; max-height: calc(100vh - 110px); overflow-y: auto; }
  .navbar .nav-link { border-bottom: 1px solid var(--line); }
  .dropdown-menu { border: 0; box-shadow: none; background: var(--soft); margin: .25rem 0 .5rem; }
  .navbar .btn-brand { display: block; }
}

/* buttons */
.btn { font-weight: 600; border-radius: .5rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* hero */
.hero { background: linear-gradient(180deg, var(--soft), #fff); }
.hero-title { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(2rem, 6vw, 3.5rem); color: var(--brand-deep); }
.hero img { border-radius: .75rem; box-shadow: 0 12px 32px rgba(45, 47, 107, .15); width: 100%; }

/* cards + tiles */
.card { border: 1px solid var(--line); border-radius: .75rem; box-shadow: none; }
.card h5 { color: var(--brand); font-weight: 600; }
.card ul li { margin-bottom: .4rem; }
a.tile {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 1.1rem 1.25rem; text-decoration: none; color: var(--text); font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
a.tile:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(45, 47, 107, .1); color: var(--brand); }
.tile-arrow { color: var(--brand); font-weight: 700; }

/* inner page title */
.page-title { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.page-title h1 { font-weight: 700; letter-spacing: -.01em; font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0; }
.page-title nav, .page-title nav a, .page-title nav .text-muted { color: rgba(255, 255, 255, .8) !important; text-decoration: none; }
.page-title nav a:hover { color: #fff !important; text-decoration: underline; }

/* content */
.prose { max-width: 50rem; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.75rem; color: var(--brand-deep); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose table { font-size: .95rem; }
.prose .table-responsive { margin: 1rem 0; }
.prose th { background: var(--soft); color: var(--brand-deep); }
details.faq { border: 1px solid var(--line); border-radius: .625rem; margin-bottom: .75rem; padding: .85rem 1rem; background: #fff; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style-position: outside; }
details.faq[open] { border-color: #c9caea; background: #fbfbfe; }
details.faq[open] summary { margin-bottom: .6rem; }
details.faq p:last-child { margin-bottom: 0; }

/* sidebar */
.side-nav { border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; background: var(--soft); }
.side-nav h6 { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--muted); margin-bottom: .6rem; }
.side-nav a { display: block; padding: .45rem .65rem; border-radius: .375rem; color: var(--text); text-decoration: none; font-size: .95rem; }
.side-nav a:hover { background: #fff; color: var(--brand); }
.side-nav a.active { background: var(--brand); color: #fff; font-weight: 600; }
@media (min-width: 992px) { .side-nav { position: sticky; top: 96px; } }

/* forms */
.form-card { border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; background: #fff; box-shadow: 0 4px 16px rgba(45, 47, 107, .06); }
@media (min-width: 768px) { .form-card { padding: 1.75rem; } }
.form-label { font-weight: 500; font-size: .9rem; }
.form-control { border-radius: .5rem; padding: .65rem .8rem; border-color: #d3d4e4; font-size: 1rem; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(82, 84, 168, .2); }
.form-card .btn { width: 100%; padding: .7rem 1.5rem; }
@media (min-width: 576px) { .form-card .btn { width: auto; } }

/* footer */
.site-footer { background: var(--brand-deep); color: #d9daf0; }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: .75rem; }
.site-footer a { color: #d9daf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: .4rem; }
.site-footer hr { border-color: rgba(255, 255, 255, .15); opacity: 1; }
.logo-chip { display: inline-block; background: #fff; border-radius: .5rem; padding: .35rem .75rem; }
.logo-chip img { display: block; height: 40px; width: auto; max-width: 100%; }
.logo-chip.powered { padding: .25rem .6rem; }
.logo-chip.powered img { height: 22px; }
.site-footer .logo-chip + p { max-width: 22rem; }
