@import url('https://api.fontshare.com/v2/css?f[]=satoshi@500,700,900&display=swap');

:root {
  --front-ink: #1d1a20;
  --front-accent: #e2506f;
  --front-accent-deep: #a62f4b;
  --front-soft: #fff5f5;
  --front-line: #e8ebef;
}

/* The older mca stylesheet is still shared by a few public pages. Keep its
   component classes, but make their tokens inherit the current public palette
   whenever they are rendered inside the marketing shell. */
body.marketing-page {
  --x-green: var(--front-accent);
  --x-green-deep: var(--front-accent-deep);
  --x-green-soft: var(--front-soft);
  --mca-green: var(--front-accent);
  --surface: #fff;
  --surface-2: #fff;
  --surface-3: #fff;
  --paper: #fff;
  --line: var(--front-line);
  --line-soft: #f3f4f6;
  --accent-soft: var(--front-soft);
}

body.marketing-page,
body.marketing-home {
  font-family: 'Satoshi', system-ui, sans-serif;
  color: var(--front-ink);
}

/* Shared marketing navigation layout. The landing stylesheet adds only the
   homepage-specific transparent/dark-hero treatment on top of this shell. */
.top {
  position: relative;
  z-index: 20;
  background: #fff;
  border: 0;
  color: var(--front-ink);
}

.top-in {
  width: min(1280px, 100% - 2rem);
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: clamp(190px, 18vw, 240px);
  height: auto;
}

.links {
  display: flex;
  gap: 1.6rem;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.links a,
.login {
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  opacity: .88;
}

.nav-more {
  position: relative;
}

.nav-more summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  list-style: none;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  opacity: .88;
}

.nav-more summary::-webkit-details-marker,
.menu summary::-webkit-details-marker {
  display: none;
}

.nav-more[open] summary svg {
  transform: rotate(180deg);
}

.nav-more-panel {
  position: absolute;
  left: -.8rem;
  top: calc(100% + 1rem);
  width: 286px;
  max-height: calc(100svh - 90px);
  overflow-y: auto;
  background: var(--front-ink);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.nav-more-panel a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 8px;
  color: #fff;
}

.nav-more-panel a:hover {
  background: rgba(255, 255, 255, .08);
}

.nav-more-panel strong {
  font-size: .85rem;
  font-weight: 700;
}

.nav-more-panel small {
  display: block;
  font-size: .72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .65);
}

.nav-rule {
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin: .4rem .5rem;
}

.top-act {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.top .btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.menu {
  display: none;
  margin-left: auto;
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(29, 26, 32, .22);
  border-radius: 10px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.menu summary span {
  width: 18px;
  height: 2px;
  background: var(--front-ink);
  display: block;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 54px;
  width: min(300px, calc(100vw - 2rem));
  max-height: calc(100svh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--front-ink);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  padding: .5rem;
  display: grid;
}

.menu-panel a {
  padding: .8rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}

.menu-panel a:hover {
  background: rgba(255, 255, 255, .08);
}

.menu-account {
  display: grid;
  gap: .4rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: .5rem;
  padding-top: .5rem;
}

.menu-account .btn {
  padding: .6rem .8rem;
  min-height: 44px;
  font-size: .85rem;
  text-align: center;
  justify-content: center;
}

body.marketing-page .top {
  position: relative;
  z-index: 20;
  background: #fff;
  color: var(--front-ink);
  border-bottom: 1px solid var(--front-line);
}

body.marketing-page .brand img {
  filter: none;
}

body.marketing-page .links a,
body.marketing-page .login,
body.marketing-page .nav-more summary {
  color: var(--front-ink);
}

body.marketing-page .links a:hover,
body.marketing-page .login:hover,
body.marketing-page .nav-more summary:hover {
  color: var(--front-accent);
}

body.marketing-page .menu summary {
  border-color: rgba(29, 26, 32, .22);
}

body.marketing-page .menu summary span {
  background: var(--front-ink);
}

body.marketing-page .top .btn {
  background: var(--front-accent);
  color: #fff;
}

body.marketing-page .top .btn:hover {
  background: var(--front-accent-deep);
}

body.marketing-page a:not(.btn) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.marketing-page .text-primary,
body.marketing-page .text-success,
body.marketing-page .text-success-emphasis {
  color: var(--front-accent) !important;
}

body.marketing-page .bg-success-subtle {
  background-color: var(--front-soft) !important;
}

body.marketing-page .border-success {
  border-color: #ffbfbf !important;
}

body.marketing-page .bg-body-secondary,
body.marketing-page .bg-body-tertiary {
  background-color: #fff !important;
}

body.marketing-page .btn-action {
  --bs-btn-bg: var(--front-accent) !important;
  --bs-btn-border-color: var(--front-accent) !important;
  --bs-btn-hover-bg: var(--front-accent-deep) !important;
  --bs-btn-hover-border-color: var(--front-accent-deep) !important;
  background-color: var(--front-accent) !important;
  border-color: var(--front-accent) !important;
  color: #fff !important;
}

body.marketing-page .btn-action:hover,
body.marketing-page .btn-action:focus-visible {
  background-color: var(--front-accent-deep) !important;
  border-color: var(--front-accent-deep) !important;
}

body.marketing-page .sec-eyebrow,
body.marketing-page .sec-title .ital {
  color: var(--front-accent) !important;
}

body.marketing-page .sec-eyebrow::before {
  background: var(--front-accent) !important;
}

@media (max-width: 1100px) {
  .links,
  .top-act .login {
    display: none;
  }

  .menu {
    display: block;
    margin-left: 0;
  }

  .top-act {
    margin-left: auto;
  }

  .top-in {
    gap: 1rem;
  }
}

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin: 0 auto;
}

.foot {
  background: var(--front-ink);
  color: rgba(255, 255, 255, .65);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(5, minmax(0, 1fr));
  gap: 2rem;
}

.foot-brand img {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

.foot-home {
  display: inline-block;
}

.foot-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 38ch;
  margin: 1rem 0 0;
}

.foot-group {
  min-width: 0;
}

.foot-group h3 {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 1rem;
}

.foot-group nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  align-items: flex-start;
}

.foot-group a {
  display: block;
  color: inherit;
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.5;
  padding: .25rem 0;
}

.foot-group a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot-registration {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.foot-registration p {
  font-size: .8rem;
  line-height: 1.7;
  margin: 0;
}

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

  .foot-brand {
    grid-column: 1 / -1;
  }
}
